@@ -30,10 +30,16 @@ project = {{ project | repr }}
3030copyright = {{ copyright | repr }}
3131author = {{ author | repr }}
3232
33+ {%- if version %}
34+
3335# The short X.Y version
3436version = {{ version | repr }}
37+ {%- endif %}
38+ {%- if release %}
39+
3540# The full version, including alpha/beta/rc tags
3641release = {{ release | repr }}
42+ {%- endif %}
3743
3844
3945# -- General configuration ---------------------------------------------------
@@ -50,24 +56,28 @@ extensions = [
5056# Add any paths that contain templates here, relative to this directory.
5157templates_path = ['{{ dot }}templates']
5258
59+ {% if suffix != '.rst' -%}
5360# The suffix(es) of source filenames.
5461# You can specify multiple suffix as a list of string:
5562#
5663# source_suffix = ['.rst', '.md']
5764source_suffix = {{ suffix | repr }}
5865
59- {% if master_doc != 'index' -%}
66+ {% endif -%}
67+ {% if master != 'index' -%}
6068# The master toctree document.
6169master_doc = {{ master | repr }}
6270
6371{% endif -%}
72+ {% if language -%}
6473# The language for content autogenerated by Sphinx. Refer to documentation
6574# for a list of supported languages.
6675#
6776# This is also used if you do content translation via gettext catalogs.
6877# Usually you set "language" from the command line for these cases.
6978language = {{ language | repr }}
7079
80+ {% endif -%}
7181# List of patterns, relative to source directory, that match files and
7282# directories to ignore when looking for source files.
7383# This pattern also affects html_static_path and html_extra_path.
@@ -81,44 +91,10 @@ exclude_patterns = [{{ exclude_patterns }}]
8191#
8292html_theme = 'alabaster'
8393
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-
9094# Add any paths that contain custom static files (such as style sheets) here,
9195# relative to this directory. They are copied after the builtin static files,
9296# so a file named "default.css" will overwrite the builtin "default.css".
9397html_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']
12298{%- if extensions %}
12399
124100
@@ -138,4 +114,3 @@ intersphinx_mapping = {'https://docs.python.org/': None}
138114# If true, `todo` and `todoList` produce output, else they produce nothing.
139115todo_include_todos = True
140116{%- endif %}
141-
0 commit comments