Jessica Wagantall | e05eb92 | 2020-02-06 15:07:46 -0800 | [diff] [blame] | 1 | from docs_conf.conf import * |
| 2 | |
| 3 | branch = 'latest' |
ChrisC | 295b20c | 2020-11-17 11:35:34 +0100 | [diff] [blame] | 4 | doc_onap_url = 'https://docs.onap.org' |
Jessica Wagantall | e05eb92 | 2020-02-06 15:07:46 -0800 | [diff] [blame] | 5 | master_doc = 'index' |
| 6 | |
| 7 | linkcheck_ignore = [ |
| 8 | 'http://localhost', |
| 9 | ] |
| 10 | |
| 11 | intersphinx_mapping = {} |
| 12 | |
ChrisC | 295b20c | 2020-11-17 11:35:34 +0100 | [diff] [blame] | 13 | intersphinx_mapping['onap-doc'] = ('{}/en/%s'.format(doc_onap_url) % branch, None) |
| 14 | |
Tomasz Wrobel | ac69ef1 | 2021-05-18 16:04:25 +0200 | [diff] [blame^] | 15 | |
| 16 | def 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 | |
| 25 | rst_epilog = prepare_rst_epilog() |
| 26 | |
Jessica Wagantall | e05eb92 | 2020-02-06 15:07:46 -0800 | [diff] [blame] | 27 | html_last_updated_fmt = '%d-%b-%y %H:%M' |
| 28 | |
| 29 | def setup(app): |
lf-jobbuilder | f8e4b3a | 2020-05-28 14:28:13 -0700 | [diff] [blame] | 30 | app.add_stylesheet("css/ribbon.css") |
Tomasz Wrobel | ac69ef1 | 2021-05-18 16:04:25 +0200 | [diff] [blame^] | 31 | |
| 32 | |