blob: e78ac0c30c4a066920ca77ee2746ae2357b7028e [file] [log] [blame]
Jessica Wagantalle05eb922020-02-06 15:07:46 -08001from docs_conf.conf import *
2
3branch = 'latest'
ChrisC295b20c2020-11-17 11:35:34 +01004doc_onap_url = 'https://docs.onap.org'
Jessica Wagantalle05eb922020-02-06 15:07:46 -08005master_doc = 'index'
6
7linkcheck_ignore = [
8 'http://localhost',
9]
10
11intersphinx_mapping = {}
12
ChrisC295b20c2020-11-17 11:35:34 +010013intersphinx_mapping['onap-doc'] = ('{}/en/%s'.format(doc_onap_url) % branch, None)
14
Tomasz Wrobelac69ef12021-05-18 16:04:25 +020015
16def prepare_rst_epilog():
17 git_branch = branch
18 if git_branch == 'latest':
19 git_branch = 'master'
20 return """
21.. |sdc-helm-validator-open-api| replace:: SDC Helm Validator OpenAPI.yaml
22.. _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}
23""".format(branch=git_branch)
24
25rst_epilog = prepare_rst_epilog()
26
Jessica Wagantalle05eb922020-02-06 15:07:46 -080027html_last_updated_fmt = '%d-%b-%y %H:%M'
28
29def setup(app):
lf-jobbuilderf8e4b3a2020-05-28 14:28:13 -070030 app.add_stylesheet("css/ribbon.css")
Tomasz Wrobelac69ef12021-05-18 16:04:25 +020031
32