Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cookiecutter.json → src/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"version": "0.1.0",
"github_organization": "<my-github-organization>",
"license": ["Apache Software License 2.0", "MIT license", "BSD license", "ISC license", "GNU General Public License v3 or later", "Not open source"],
"apidoc": ["no", "yes"],
"full_name": "John Smith",
"email": "yourname@esciencecenter.nl",
"copyright_holder": "Netherlands eScience Center",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False

{% if cookiecutter.apidoc == "yes" %}
# -- Run apidoc plug-in manually, as readthedocs doesn't support it -------
# See https://github.com/rtfd/readthedocs.org/issues/1139
def run_apidoc(_):
Expand Down Expand Up @@ -110,7 +109,6 @@ def run_apidoc(_):

def setup(app):
app.connect("builder-inited", run_apidoc)
{% endif %}

# -- Options for HTML output ----------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ Welcome to {{ cookiecutter.package_name }}'s documentation!
:maxdepth: 2
:caption: Contents:

{% if cookiecutter.apidoc == 'yes' %}
API Reference
=============

.. toctree::
:maxdepth: 2

{{ cookiecutter.package_name }} <apidocs/{{ cookiecutter.package_name }}.rst>
{% endif %}

Indices and tables
==================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if cookiecutter.apidoc == "yes" %}"""Documentation about {{ cookiecutter.package_name }}"""{% endif %}
"""Documentation about {{ cookiecutter.package_name }}"""
import logging
from .__version__ import __version__

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%-if cookiecutter.apidoc == "yes" %}"""Documentation about the {{ cookiecutter.package_name }} module."""{% endif %}
"""Documentation about the {{ cookiecutter.package_name }} module."""
import logging


Expand Down