Commit
Fix Sphinx config
Daniel Moch committed 5 years ago
(
Tree)
Diffstat
{{cookiecutter.project_slug}}/docs/source/conf.py | 18 ++++++++--------
{{cookiecutter.project_slug}}/docs/source/conf.py
21 |
21 |
# -- Project information ----------------------------------------------------- |
22 |
22 |
|
23 |
23 |
project = '{{ cookiecutter.project_slug }}' |
24 |
|
-copyright = '2018, {{ cookiecutter.full_name }}' |
|
24 |
+copyright = '{% now 'local', '%Y' %}, {{ cookiecutter.full_name }}' |
25 |
25 |
author = '{{ cookiecutter.full_name }}' |
26 |
26 |
|
27 |
27 |
# The short X.Y version |
28 |
|
-version = '{{ cookiecutter.project_slug }}.__version__' |
|
28 |
+version = {{ cookiecutter.project_slug }}.__version__ |
29 |
29 |
# The full version, including alpha/beta/rc tags |
30 |
|
-release = '{{ cookiecutter.project_slug }}.__version__' |
|
30 |
+release = {{ cookiecutter.project_slug }}.__version__ |
31 |
31 |
|
32 |
32 |
|
33 |
33 |
# -- General configuration --------------------------------------------------- |
|
|
. . . |
102 |
102 |
# -- Options for HTMLHelp output --------------------------------------------- |
103 |
103 |
|
104 |
104 |
# Output file base name for HTML help builder. |
105 |
|
-htmlhelp_basename = 'cookiecutterproject_slugdoc' |
|
105 |
+htmlhelp_basename = '{{ cookiecutter.project_slug }}doc' |
106 |
106 |
|
107 |
107 |
|
108 |
108 |
# -- Options for LaTeX output ------------------------------------------------ |
|
|
. . . |
129 |
129 |
# (source start file, target name, title, |
130 |
130 |
# author, documentclass [howto, manual, or own class]). |
131 |
131 |
latex_documents = [ |
132 |
|
- (master_doc, 'cookiecutterproject_slug.tex', '\\{\\{ cookiecutter.project\\_slug \\}\\} Documentation', |
133 |
|
- '\\{\\{ cookiecutter.full\\_name \\}\\}', 'manual'), |
|
132 |
+ (master_doc, '{{ cookiecutter.project_slug }}.tex', '{{ cookiecutter.project_slug | replace('_', ' ') | title }} Documentation', |
|
133 |
+ '{{ cookiecutter.full_name }}', 'manual'), |
134 |
134 |
] |
135 |
135 |
|
136 |
136 |
|
|
|
. . . |
139 |
139 |
# One entry per manual page. List of tuples |
140 |
140 |
# (source start file, name, description, authors, manual section). |
141 |
141 |
man_pages = [ |
142 |
|
- (master_doc, 'cookiecutterproject_slug', '{{ cookiecutter.project_slug }} Documentation', |
|
142 |
+ (master_doc, '{{ cookiecutter.project_slug }}', '{{ cookiecutter.project_slug | replace('_', ' ') | title }} Documentation', |
143 |
143 |
[author], 1) |
144 |
144 |
] |
145 |
145 |
|
|
|
. . . |
150 |
150 |
# (source start file, target name, title, author, |
151 |
151 |
# dir menu entry, description, category) |
152 |
152 |
texinfo_documents = [ |
153 |
|
- (master_doc, 'cookiecutterproject_slug', '{{ cookiecutter.project_slug }} Documentation', |
154 |
|
- author, 'cookiecutterproject_slug', 'One line description of project.', |
|
153 |
+ (master_doc, '{{ cookiecutter.project_slug }}', '{{ cookiecutter.project_slug | replace('_', ' ') | title }} Documentation', |
|
154 |
+ author, '{{ cookiecutter.project_slug }}', '{{ cookiecutter.project_short_description }}', |
155 |
155 |
'Miscellaneous'), |
156 |
156 |
] |