File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# git-pw documentation build configuration file
4
4
5
+ try :
6
+ import sphinx_rtd_theme
7
+ has_rtd_theme = True
8
+ except ImportError :
9
+ has_rtd_theme = False
10
+
5
11
# -- General configuration ------------------------------------------------
6
12
7
13
# If your documentation needs a minimal Sphinx version, state it here.
46
52
# Usually you set "language" from the command line for these cases.
47
53
language = None
48
54
49
- # List of patterns, relative to source directory, that match files and
50
- # directories to ignore when looking for source files.
51
- # This patterns also effect to html_static_path and html_extra_path
52
- exclude_patterns = []
53
-
54
55
# The name of the Pygments (syntax highlighting) style to use.
55
56
pygments_style = 'sphinx'
56
57
65
66
# The theme to use for HTML and HTML Help pages. See the documentation for
66
67
# a list of builtin themes.
67
68
#
68
- html_theme = 'default'
69
-
70
- # Theme options are theme-specific and customize the look and feel of a theme
71
- # further. For a list of options available for each theme, see the
72
- # documentation.
73
- #
74
- # html_theme_options = {}
75
-
76
- # Add any paths that contain custom static files (such as style sheets) here,
77
- # relative to this directory. They are copied after the builtin static files,
78
- # so a file named "default.css" will overwrite the builtin "default.css".
79
- html_static_path = []
69
+ if has_rtd_theme :
70
+ html_theme = 'sphinx_rtd_theme'
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ sphinx>=1.5,<2.0
3
3
sphinx-click>=1.0,<2.0
4
4
click-man>=0.2,<0.3
5
5
reno>=2.0,<3.0
6
+ sphinx_rtd_theme==0.3.1
You can’t perform that action at this time.
0 commit comments