Browse Source

Inherit openstackdocstheme for governance.o.o

The top site at governance.openstack.org was using an
old oslosphinx-based theme. Inherit from openstackdocstheme
instead, in the same way as the TC site.

Change-Id: I434ad5327b5ce4cec0eec66e54d3834bcc91b657
changes/35/607135/1
Thierry Carrez 8 months ago
parent
commit
30c257b4f2

+ 8
- 0
doc/source/_themes/governance/sidebartoc_menu.html View File

@@ -0,0 +1,8 @@
1
+<button href="#" type="button" data-toggle="dropdown" class="btn docs-sidebar-release-select">OpenStack Governance<i class="fa fa-caret-down"></i></button>
2
+    <ul class="dropdown-menu docs-sidebar-dropdown" role="menu" aria-labelledby="dLabel">
3
+      <li role="presentation"><a role="menuitem" tabindex="-1" href="https://wiki.openstack.org/wiki/Governance/Foundation">Board of Directors</a></li>
4
+      <li role="presentation"><a role="menuitem" tabindex="-1" href="https://governance.openstack.org/tc/">Technical Committee</a></li>
5
+      <li role="presentation"><a role="menuitem" tabindex="-1" href="https://governance.openstack.org/uc/">User Committee</a></li>
6
+      <li role="presentation"><a role="menuitem" tabindex="-1" href="https://governance.openstack.org/sigs/">SIGs</a></li>
7
+      <li role="presentation"><a role="menuitem" tabindex="-1" href="https://governance.openstack.org/election/">Elections</a></li>
8
+    </ul>

+ 2
- 0
doc/source/_themes/governance/theme.conf View File

@@ -0,0 +1,2 @@
1
+[theme]
2
+inherit = openstackdocs

+ 8
- 5
doc/source/conf.py View File

@@ -31,7 +31,7 @@ sys.path.insert(0, os.path.join(os.path.abspath('.'), '_exts'))
31 31
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32 32
 extensions = [
33 33
     'sphinx.ext.extlinks',
34
-    'oslosphinx',
34
+    'openstackdocstheme',
35 35
 ]
36 36
 
37 37
 todo_include_todos = True
@@ -98,19 +98,22 @@ modindex_common_prefix = []
98 98
 
99 99
 # The theme to use for HTML and HTML Help pages.  See the documentation for
100 100
 # a list of builtin themes.
101
-html_theme = 'nature'
101
+html_theme = 'governance'
102 102
 
103 103
 # Theme options are theme-specific and customize the look and feel of a theme
104 104
 # further.  For a list of options available for each theme, see the
105 105
 # documentation.
106
-#html_theme_options = {}
106
+html_theme_options = {
107
+    'display_global_toc_section': False,
108
+    'root_title': 'OpenStack Governance'
109
+}
107 110
 
108 111
 # Add any paths that contain custom themes here, relative to this directory.
109
-#html_theme_path = []
112
+html_theme_path = ['_themes']
110 113
 
111 114
 # The name for this set of Sphinx documents.  If None, it defaults to
112 115
 # "<project> v<release> documentation".
113
-#html_title = None
116
+html_title = 'OpenStack Governance'
114 117
 
115 118
 # A shorter title for the navigation bar.  Default is the same as html_title.
116 119
 #html_short_title = None

+ 2
- 2
test-requirements.txt View File

@@ -2,5 +2,5 @@
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4 4
 # needed for doc build
5
-sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 # BSD
6
-oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
5
+openstackdocstheme>=1.25.1  # Apache-2.0
6
+sphinx>=1.5.0  # BSD

Loading…
Cancel
Save