cookiecutter-flit

A Cookiecutter template for a Flit package
git clone git://git.danielmoch.com/cookiecutter-flit.git
Log | Files | Refs | LICENSE

commit e9c004c366c98a7b2898c06a07f68376de20fa4c
parent 9b36510d2575a465b4c49c8f6225e342a1977465
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue,  4 Sep 2018 05:57:26 -0400

Fix Sphinx config

Diffstat:
M{{cookiecutter.project_slug}}/docs/source/conf.py | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/{{cookiecutter.project_slug}}/docs/source/conf.py b/{{cookiecutter.project_slug}}/docs/source/conf.py @@ -21,13 +21,13 @@ # -- Project information ----------------------------------------------------- project = '{{ cookiecutter.project_slug }}' -copyright = '2018, {{ cookiecutter.full_name }}' +copyright = '{% now 'local', '%Y' %}, {{ cookiecutter.full_name }}' author = '{{ cookiecutter.full_name }}' # The short X.Y version -version = '{{ cookiecutter.project_slug }}.__version__' +version = {{ cookiecutter.project_slug }}.__version__ # The full version, including alpha/beta/rc tags -release = '{{ cookiecutter.project_slug }}.__version__' +release = {{ cookiecutter.project_slug }}.__version__ # -- General configuration --------------------------------------------------- @@ -102,7 +102,7 @@ # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. -htmlhelp_basename = 'cookiecutterproject_slugdoc' +htmlhelp_basename = '{{ cookiecutter.project_slug }}doc' # -- Options for LaTeX output ------------------------------------------------ @@ -129,8 +129,8 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'cookiecutterproject_slug.tex', '\\{\\{ cookiecutter.project\\_slug \\}\\} Documentation', - '\\{\\{ cookiecutter.full\\_name \\}\\}', 'manual'), + (master_doc, '{{ cookiecutter.project_slug }}.tex', '{{ cookiecutter.project_slug | replace('_', ' ') | title }} Documentation', + '{{ cookiecutter.full_name }}', 'manual'), ] @@ -139,7 +139,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'cookiecutterproject_slug', '{{ cookiecutter.project_slug }} Documentation', + (master_doc, '{{ cookiecutter.project_slug }}', '{{ cookiecutter.project_slug | replace('_', ' ') | title }} Documentation', [author], 1) ] @@ -150,7 +150,7 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'cookiecutterproject_slug', '{{ cookiecutter.project_slug }} Documentation', - author, 'cookiecutterproject_slug', 'One line description of project.', + (master_doc, '{{ cookiecutter.project_slug }}', '{{ cookiecutter.project_slug | replace('_', ' ') | title }} Documentation', + author, '{{ cookiecutter.project_slug }}', '{{ cookiecutter.project_short_description }}', 'Miscellaneous'), ]