diff options
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2021-05-18 16:04:25 +0200 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2021-05-21 10:18:10 +0000 |
commit | ac69ef1da7e87ee2602b3790ec680be4c1f74cf3 (patch) | |
tree | c87fdcdb7e07efe07dfd1137bd1cb4714dc051c2 /docs/conf.py | |
parent | 4224d9be19ab8b558340ea58fa507fb9867d19bf (diff) |
Add Documentation of SDC-Helm-Validator container
Issue-ID: SDC-3185
Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
Change-Id: I85972698bb4e0b42694acf1d97980e45cda0d81d
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py index 4b24057691..e78ac0c30c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,7 +12,21 @@ intersphinx_mapping = {} intersphinx_mapping['onap-doc'] = ('{}/en/%s'.format(doc_onap_url) % branch, None) + +def prepare_rst_epilog(): + git_branch = branch + if git_branch == 'latest': + git_branch = 'master' + return """ +.. |sdc-helm-validator-open-api| replace:: SDC Helm Validator OpenAPI.yaml +.. _sdc-helm-validator-open-api: https://gerrit.onap.org/r/gitweb?p=sdc/sdc-helm-validator.git;a=blob_plain;f=OpenAPI.yaml;hb=refs/heads/{branch} +""".format(branch=git_branch) + +rst_epilog = prepare_rst_epilog() + html_last_updated_fmt = '%d-%b-%y %H:%M' def setup(app): app.add_stylesheet("css/ribbon.css") + + |