OSDN Git Service

guide: Change the theme to 'nature'
authorAkihiro Motoki <amotoki@gmail.com>
Sat, 13 Mar 2021 22:55:43 +0000 (07:55 +0900)
committerAkihiro Motoki <amotoki@gmail.com>
Sat, 13 Mar 2021 23:01:53 +0000 (08:01 +0900)
The bootstrap theme does not have a page. It is a good theme,
but it is better to have a page TOC, so this commit changes the theme.

Also updates the year in the copyright notice.

guide/conf.py

index bdf51a5..7e431fa 100644 (file)
@@ -50,7 +50,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'Linux JM Guide'
-copyright = u'2016, Linux JM project'
+copyright = u'2016-2021, Linux JM project'
 author = u'Linux JM project'
 
 # The version info for the project you're documenting, acts as replacement for
@@ -111,20 +111,27 @@ todo_include_todos = False
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-# html_theme = 'alabaster'
-html_theme = 'bootstrap'
+html_theme = 'nature'
+# html_theme = 'pyramid'
+# html_theme = 'bootstrap'
 
 # 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
 # documentation.
 #html_theme_options = {}
-html_theme_options = {
-    'bootswatch_theme': 'cosmo',
-    'navbar_links': [
-        (u'JM トップへ', 'http://linuxjm.osdn.jp/', 1),
-    ],
-    'navbar_sidebarrel': False,
-}
+if html_theme == 'bootstrap':
+    html_theme_options = {
+        'bootswatch_theme': 'cosmo',
+        'navbar_site_name': '目次',
+        'navbar_pagenav_name': 'ページ',
+        'navbar_links': [
+            (u'JM トップへ', 'http://linuxjm.osdn.jp/', 1),
+        ],
+        'navbar_sidebarrel': False,
+        'globaltoc_depth': -1,
+    }
+else:
+    html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.
 #html_theme_path = []