@@ -30,10 +30,16 @@ project = {{ project | repr }}
30
30
copyright = {{ copyright | repr }}
31
31
author = {{ author | repr }}
32
32
33
+ {%- if version %}
34
+
33
35
# The short X.Y version
34
36
version = {{ version | repr }}
37
+ {%- endif %}
38
+ {%- if release %}
39
+
35
40
# The full version, including alpha/beta/rc tags
36
41
release = {{ release | repr }}
42
+ {%- endif %}
37
43
38
44
39
45
# -- General configuration ---------------------------------------------------
@@ -50,24 +56,28 @@ extensions = [
50
56
# Add any paths that contain templates here, relative to this directory.
51
57
templates_path = ['{{ dot }}templates']
52
58
59
+ {% if suffix != '.rst' -%}
53
60
# The suffix(es) of source filenames.
54
61
# You can specify multiple suffix as a list of string:
55
62
#
56
63
# source_suffix = ['.rst', '.md']
57
64
source_suffix = {{ suffix | repr }}
58
65
59
- {% if master_doc != 'index' -%}
66
+ {% endif -%}
67
+ {% if master != 'index' -%}
60
68
# The master toctree document.
61
69
master_doc = {{ master | repr }}
62
70
63
71
{% endif -%}
72
+ {% if language -%}
64
73
# The language for content autogenerated by Sphinx. Refer to documentation
65
74
# for a list of supported languages.
66
75
#
67
76
# This is also used if you do content translation via gettext catalogs.
68
77
# Usually you set "language" from the command line for these cases.
69
78
language = {{ language | repr }}
70
79
80
+ {% endif -%}
71
81
# List of patterns, relative to source directory, that match files and
72
82
# directories to ignore when looking for source files.
73
83
# This pattern also affects html_static_path and html_extra_path.
@@ -81,44 +91,10 @@ exclude_patterns = [{{ exclude_patterns }}]
81
91
#
82
92
html_theme = 'alabaster'
83
93
84
- # Theme options are theme-specific and customize the look and feel of a theme
85
- # further. For a list of options available for each theme, see the
86
- # documentation.
87
- #
88
- # html_theme_options = {}
89
-
90
94
# Add any paths that contain custom static files (such as style sheets) here,
91
95
# relative to this directory. They are copied after the builtin static files,
92
96
# so a file named "default.css" will overwrite the builtin "default.css".
93
97
html_static_path = ['{{ dot }}static']
94
-
95
- # Custom sidebar templates, must be a dictionary that maps document names
96
- # to template names.
97
- #
98
- # The default sidebars (for documents that don't match any pattern) are
99
- # defined by theme itself. Builtin themes are using these templates by
100
- # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
101
- # 'searchbox.html']``.
102
- #
103
- # html_sidebars = {}
104
-
105
-
106
- # -- Options for Epub output -------------------------------------------------
107
-
108
- # Bibliographic Dublin Core info.
109
- epub_title = project
110
-
111
- # The unique identifier of the text. This can be a ISBN number
112
- # or the project homepage.
113
- #
114
- # epub_identifier = ''
115
-
116
- # A unique identification for the text.
117
- #
118
- # epub_uid = ''
119
-
120
- # A list of files that should not be packed into the epub file.
121
- epub_exclude_files = ['search.html']
122
98
{%- if extensions %}
123
99
124
100
@@ -138,4 +114,3 @@ intersphinx_mapping = {'https://docs.python.org/': None}
138
114
# If true, `todo` and `todoList` produce output, else they produce nothing.
139
115
todo_include_todos = True
140
116
{%- endif %}
141
-
0 commit comments