Browse Source

Fixed docs

rparedis 3 years ago
parent
commit
095812131c
2 changed files with 10 additions and 5 deletions
  1. 7 3
      doc/conf.py
  2. 3 2
      docs.bat

+ 7 - 3
doc/conf.py

@@ -14,6 +14,7 @@
 
 import os
 import sys
+import sphinx_theme
 sys.path.insert(0, os.path.abspath('..'))
 
 
@@ -88,7 +89,11 @@ pygments_style = None
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 
-html_theme = 'catalyst_sphinx_theme'
+# html_theme = 'catalyst_sphinx_theme'
+html_theme = 'nature'
+# html_theme_path = [sphinx_theme.get_html_theme_path('stanford-theme')]
+
+html_sidebars = { '**': ['globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html'] }
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
@@ -100,7 +105,7 @@ html_theme = 'catalyst_sphinx_theme'
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ['_static']
-html_css_files = ['style.css']
+html_css_files = []
 html_js_files = ['math.js']
 
 # Custom sidebar templates, must be a dictionary that maps document names
@@ -111,7 +116,6 @@ html_js_files = ['math.js']
 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
 # 'searchbox.html']``.
 #
-# html_sidebars = {}
 
 html_show_sourcelink = False
 

+ 3 - 2
docs.bat

@@ -1,4 +1,5 @@
 @echo off
+set PYTHONPATH=%PYTHONPATH%;%cd%\src
 cd doc
-set PYTHONPATH=%PYTHONPATH%:../src
-make html
+make html
+cd ..