on master help sign in
Trying to sort out the nav bar
6a3913bOllie Charles
docs/conf.py+9−5
@@ -7,7 +7,7 @@ sys.path.insert(0, os.path.abspath('.'))
7
7
8version = "1.0.0"
8version = "1.0.0"
9
9
10−extensions = ['sphinx.ext.extlinks', 'sphinx.ext.todo']
10+extensions = ['sphinx.ext.extlinks', 'sphinx.ext.todo', 'sphinx_rtd_theme']
11
11
12templates_path = ['_templates']
12templates_path = ['_templates']
13source_suffix = '.rst'
13source_suffix = '.rst'
@@ -23,10 +23,14 @@ primary_domain = 'haskell'
23
23
24exclude_patterns = ['.build', "*.gen.rst"]
24exclude_patterns = ['.build', "*.gen.rst"]
25
25
26+html_theme = 'sphinx_rtd_theme'
27+html_theme_options = {
28+ 'logo_only': True,
29+ 'navigation_depth': 5,
30+}
31+html_context = {}
32+
26# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
33# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
27on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
34on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
28
35
29−if not on_rtd: # only import and set the theme if we're building docs locally
36+todo_include_todos = True
30− import sphinx_rtd_theme
31− html_theme = 'sphinx_rtd_theme'
32− html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
docs/index.rst+11−9
@@ -17,22 +17,24 @@ The main objectives of Rel8 are:
17* *Familiar*: writing Rel8 queries should feel like normal Haskell programming.
17* *Familiar*: writing Rel8 queries should feel like normal Haskell programming.
18
18
19.. toctree::
19.. toctree::
20− :maxdepth: 3
21− :caption: Getting Started
20+ :caption: Getting Started
21+ :maxdepth: 2
22
22
23− tutorial
23+ tutorial
24
24
25.. toctree::
25.. toctree::
26− :caption: Rel8 concepts
26+ :caption: Rel8 concepts
27+ :maxdepth: 1
27
28
28− concepts/dbtype
29+ concepts/dbtype
29− concepts/expr
30+ concepts/expr
30− concepts/tables
31+ concepts/tables
31
32
32.. toctree::
33.. toctree::
33− :caption: Tips and tricks
34+ :caption: Tips and tricks
35+ :maxdepth: 1
34
36
35− cookbook
37+ cookbook
36
38
37
39
38More Resources
40More Resources