Add support for storyboard

Also, add html_last_updated_fmt, which openstackdocstheme has been
adding to everything.

Change-Id: Ie3f8f4f095c4244c51615c9dcfd903305a02f017
This commit is contained in:
Monty Taylor 2017-07-10 14:57:28 -05:00 committed by Ben Nemec
parent b73d89dc9f
commit 4f9fc77118
5 changed files with 17 additions and 6 deletions

View File

@ -3,6 +3,7 @@
"service": "replace with the service it implements",
"repo_group": "openstack",
"repo_name": "replace with the name for the git repo",
"launchpad_project": "replace with the name of the project on launchpad",
"bug_tracker": ['Launchpad', 'Storyboard'],
"bug_project": "replace with the name of the project on Launchpad or the ID from Storyboard",
"project_short_description": "OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package."
}

View File

@ -12,6 +12,10 @@ submitted for review via the Gerrit tool:
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
Bugs should be filed on {{ cookiebutter.bug_tracker }}
https://bugs.launchpad.net/{{ cookiecutter.launchpad_project }}
{%- if cookiecutter.bug_tracker == 'Launchpad' -%}
https://bugs.launchpad.net/{{ cookiecutter.bug_project }}
{%- elif cookiecutter.bug_tracker == 'Storyboard' -%}
https://storyboard.openstack.org/#!/project/{{ cookiecutter.bug_project }}
{%- endif -%}

View File

@ -11,7 +11,11 @@ Note that this is a hard requirement.
* Free software: Apache license
* Documentation: https://docs.openstack.org/{{ cookiecutter.repo_name }}/latest
* Source: https://git.openstack.org/cgit/{{cookiecutter.repo_group}}/{{ cookiecutter.repo_name }}
* Bugs: https://bugs.launchpad.net/{{cookiecutter.launchpad_project}}
{%- if cookiecutter.bug_tracker == 'Launchpad' -%}
* Bugs: https://bugs.launchpad.net/{{ cookiecutter.bug_project }}
{%- elif cookiecutter.bug_tracker == 'Storyboard' -%}
* Bugs: https://storyboard.openstack.org/#!/project/{{ cookiecutter.bug_project }}
{%- endif -%}
Features
--------

View File

@ -42,8 +42,9 @@ copyright = u'2017, OpenStack Developers'
# openstackdocstheme options
repository_name = '{{cookiecutter.repo_group}}/{{cookiecutter.repo_name}}'
bug_project = '{{cookiecutter.launchpad_project}}'
bug_project = '{{cookiecutter.bug_project}}'
bug_tag = ''
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True

View File

@ -57,8 +57,9 @@ copyright = u'2017, OpenStack Developers'
# openstackdocstheme options
repository_name = '{{cookiecutter.repo_group}}/{{cookiecutter.repo_name}}'
bug_project = '{{cookiecutter.launchpad_project}}'
bug_project = '{{cookiecutter.bug_project}}'
bug_tag = ''
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the