Browse Source

Switch from oslosphinx to openstackdocstheme

Change-Id: Ie58f20d819cbcdeb020403ba42d3dba3c958ba25
Akihiro Motoki 1 year ago
parent
commit
3b7dbd6ff8
3 changed files with 18 additions and 5 deletions
  1. 9
    1
      doc/source/conf.py
  2. 8
    3
      releasenotes/source/conf.py
  3. 1
    1
      test-requirements.txt

+ 9
- 1
doc/source/conf.py View File

@@ -22,9 +22,14 @@ sys.path.insert(0, os.path.abspath('../..'))
22 22
 extensions = [
23 23
     'sphinx.ext.autodoc',
24 24
     'sphinx.ext.doctest',
25
-    'oslosphinx'
25
+    'openstackdocstheme',
26 26
 ]
27 27
 
28
+# openstackdocstheme options
29
+repository_name = 'openstack/futurist'
30
+bug_project = 'futurist'
31
+bug_tag = ''
32
+
28 33
 # autodoc generation is a bit aggressive and a nuisance when doing heavy
29 34
 # text edit cycles.
30 35
 # execute "export SPHINX_DEBUG=1" in your terminal to disable
@@ -56,6 +61,9 @@ pygments_style = 'sphinx'
56 61
 # html_theme_path = ["."]
57 62
 # html_theme = '_theme'
58 63
 # html_static_path = ['static']
64
+html_theme = 'openstackdocs'
65
+
66
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
59 67
 
60 68
 # Output file base name for HTML help builder.
61 69
 htmlhelp_basename = '%sdoc' % project

+ 8
- 3
releasenotes/source/conf.py View File

@@ -35,10 +35,15 @@
35 35
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
36 36
 # ones.
37 37
 extensions = [
38
-    'oslosphinx',
38
+    'openstackdocstheme',
39 39
     'reno.sphinxext',
40 40
 ]
41 41
 
42
+# openstackdocstheme options
43
+repository_name = 'openstack/futurist'
44
+bug_project = 'futurist'
45
+bug_tag = ''
46
+
42 47
 # Add any paths that contain templates here, relative to this directory.
43 48
 templates_path = ['_templates']
44 49
 
@@ -109,7 +114,7 @@ pygments_style = 'sphinx'
109 114
 
110 115
 # The theme to use for HTML and HTML Help pages.  See the documentation for
111 116
 # a list of builtin themes.
112
-html_theme = 'default'
117
+html_theme = 'openstackdocs'
113 118
 
114 119
 # Theme options are theme-specific and customize the look and feel of a theme
115 120
 # further.  For a list of options available for each theme, see the
@@ -147,7 +152,7 @@ html_static_path = ['_static']
147 152
 
148 153
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
149 154
 # using the given strftime format.
150
-# html_last_updated_fmt = '%b %d, %Y'
155
+html_last_updated_fmt = '%Y-%m-%d %H:%M'
151 156
 
152 157
 # If true, SmartyPants will be used to convert quotes and dashes to
153 158
 # typographically correct entities.

+ 1
- 1
test-requirements.txt View File

@@ -11,7 +11,7 @@ doc8 # Apache-2.0
11 11
 coverage!=4.4,>=4.0 # Apache-2.0
12 12
 python-subunit>=0.0.18 # Apache-2.0/BSD
13 13
 sphinx>=1.6.2 # BSD
14
-oslosphinx>=4.7.0 # Apache-2.0
14
+openstackdocstheme>=1.11.0 # Apache-2.0
15 15
 oslotest>=1.10.0 # Apache-2.0
16 16
 testrepository>=0.0.18 # Apache-2.0/BSD
17 17
 testscenarios>=0.4 # Apache-2.0/BSD

Loading…
Cancel
Save