@@ -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.
@@ -101,24 +111,6 @@ html_static_path = ['{{ dot }}static']
101
111
# 'searchbox.html']``.
102
112
#
103
113
# 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
114
{%- if extensions %}
123
115
124
116
@@ -138,4 +130,3 @@ intersphinx_mapping = {'https://docs.python.org/': None}
138
130
# If true, `todo` and `todoList` produce output, else they produce nothing.
139
131
todo_include_todos = True
140
132
{%- endif %}
141
-
0 commit comments