1 |
commit: 81f8d870c8696e4fb37fefee9458c5caa1ebf1ad |
2 |
Author: Max Magorsch <max <AT> magorsch <DOT> de> |
3 |
AuthorDate: Sat Jan 18 23:58:37 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 19 10:51:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/policy-guide.git/commit/?id=81f8d870 |
7 |
|
8 |
Use a Sphinx theme based on Tyrian |
9 |
|
10 |
A Sphinx theme based on Tyrian is used. The theme is automatically |
11 |
installed and applied when using tox. If you are not using tox. please |
12 |
refer to the documentaion of the theme for further installation |
13 |
instructions. |
14 |
|
15 |
Signed-off-by: Max Magorsch <max <AT> magorsch.de> |
16 |
Closes: https://github.com/gentoo/policy-guide/pull/4 |
17 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
18 |
|
19 |
conf.py | 9 +++++++-- |
20 |
tox.ini | 1 + |
21 |
2 files changed, 8 insertions(+), 2 deletions(-) |
22 |
|
23 |
diff --git a/conf.py b/conf.py |
24 |
index 34b7273..e91b613 100644 |
25 |
--- a/conf.py |
26 |
+++ b/conf.py |
27 |
@@ -73,13 +73,18 @@ pygments_style = 'sphinx' |
28 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
29 |
# a list of builtin themes. |
30 |
# |
31 |
-html_theme = 'alabaster' |
32 |
+html_theme = 'tyrian_sphinx_theme' |
33 |
|
34 |
# Theme options are theme-specific and customize the look and feel of a theme |
35 |
# further. For a list of options available for each theme, see the |
36 |
# documentation. |
37 |
# |
38 |
-# html_theme_options = {} |
39 |
+html_theme_options = { |
40 |
+ 'sidebar' : 'right', |
41 |
+ 'navigationlinks_top' : 'none', |
42 |
+ 'navigationlinks_bottom' : 'long', |
43 |
+ 'navigationlinks_navbar' : 'none' |
44 |
+} |
45 |
|
46 |
# Add any paths that contain custom static files (such as style sheets) here, |
47 |
# relative to this directory. They are copied after the builtin static files, |
48 |
|
49 |
diff --git a/tox.ini b/tox.ini |
50 |
index 1873355..2261cc5 100644 |
51 |
--- a/tox.ini |
52 |
+++ b/tox.ini |
53 |
@@ -5,6 +5,7 @@ skipsdist = True |
54 |
[testenv] |
55 |
deps = |
56 |
sphinx |
57 |
+ git+https://github.com/mmagorsc/tyrian_sphinx_theme/#egg=tyrian_sphinx_theme |
58 |
whitelist_externals = |
59 |
make |