on master help sign in
Trying to sort out the nav bar
commit6a3913b2b625724fbd67554b3cc1e3eb428f45de authorOllie Charles <ollie@ocharles.org.uk> dateSat 3 Apr 2021, 17:00 (6 years ago) parentfe6fdf4
2 files changed+20−14
docs/conf.py+9−5 docs/index.rst+11−9
docs/conf.py+9−5
@@ -7,7 +7,7 @@ sys.path.insert(0, os.path.abspath('.'))
77
88version = "1.0.0"
99
10−extensions = ['sphinx.ext.extlinks', 'sphinx.ext.todo']
10+extensions = ['sphinx.ext.extlinks', 'sphinx.ext.todo', 'sphinx_rtd_theme']
1111
1212templates_path = ['_templates']
1313source_suffix = '.rst'
@@ -23,10 +23,14 @@ primary_domain = 'haskell'
2323
2424exclude_patterns = ['.build', "*.gen.rst"]
2525
26+html_theme = 'sphinx_rtd_theme'
27+html_theme_options = {
28+ 'logo_only': True,
29+ 'navigation_depth': 5,
30+}
31+html_context = {}
32+
2633# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
2734on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
2835
29−if not on_rtd: # only import and set the theme if we're building docs locally
30− import sphinx_rtd_theme
31− html_theme = 'sphinx_rtd_theme'
32− html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
36+todo_include_todos = True
docs/index.rst+11−9
@@ -17,22 +17,24 @@ The main objectives of Rel8 are:
1717* *Familiar*: writing Rel8 queries should feel like normal Haskell programming.
1818
1919.. toctree::
20− :maxdepth: 3
21− :caption: Getting Started
20+ :caption: Getting Started
21+ :maxdepth: 2
2222
23− tutorial
23+ tutorial
2424
2525.. toctree::
26− :caption: Rel8 concepts
26+ :caption: Rel8 concepts
27+ :maxdepth: 1
2728
28− concepts/dbtype
29− concepts/expr
30− concepts/tables
29+ concepts/dbtype
30+ concepts/expr
31+ concepts/tables
3132
3233.. toctree::
33− :caption: Tips and tricks
34+ :caption: Tips and tricks
35+ :maxdepth: 1
3436
35− cookbook
37+ cookbook
3638
3739
3840More Resources