Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Do not know how to turn on search for Material theme, might need to
override the layout.html

Example from here
readthedocs/sphinx_rtd_theme#761
  • Loading branch information
kumare3 committed Feb 24, 2021
1 parent e9ae892 commit 72f6d6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rsts/_static/algolia.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.wy-nav-side { overflow: visible; }
.wy-side-scroll { overflow: inherit; }
6 changes: 6 additions & 0 deletions rsts/_static/algolia.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docsearch({
apiKey: 'af11c512aa92422933b48828d28dbe5f',
indexName: 'flyte',
inputSelector: '#md-search__form input[type=text]',
debug: false // Set debug to true if you want to inspect the dropdown
});
5 changes: 3 additions & 2 deletions rsts/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
import os
import re
# import sys
# sys.path.insert(0, os.path.abspath('.'))

Expand All @@ -25,7 +26,7 @@
# The short X.Y version
version = u''
# The full version, including alpha/beta/rc tags
release = u'0.10.0'
release = re.sub('^v', '', os.popen('git describe').read().strip())

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit 72f6d6b

Please sign in to comment.