DenisGNoonan | 81f1cae | 2024-05-10 16:24:53 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=============================================== |
| 2 | # Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. |
| 3 | # Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. |
| 4 | # ======================================================================== |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # ============LICENSE_END================================================= |
| 17 | # |
| 18 | |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 19 | project = "onap" |
| 20 | release = "master" |
| 21 | version = "master" |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 22 | # Map to 'latest' if this file is used in 'latest' (master) 'doc' branch. |
| 23 | # Change to {releasename} after you have created the new 'doc' branch. |
| 24 | branch = 'latest' |
| 25 | |
elinuxhenrik | 3d85420 | 2020-09-22 15:48:10 +0200 | [diff] [blame] | 26 | |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 27 | author = "Open Network Automation Platform" |
| 28 | # yamllint disable-line rule:line-length |
| 29 | copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License" |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 30 | |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 31 | pygments_style = "sphinx" |
| 32 | html_theme = "sphinx_rtd_theme" |
| 33 | html_theme_options = { |
| 34 | "style_nav_header_background": "white", |
| 35 | "sticky_navigation": "False" } |
| 36 | html_logo = "_static/logo_onap_2017.png" |
| 37 | html_favicon = "_static/favicon.ico" |
| 38 | html_static_path = ["_static"] |
| 39 | html_show_sphinx = False |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 40 | html_extra_path = ["offeredapis/openapitoolgen"] |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 41 | |
| 42 | extensions = [ |
| 43 | 'sphinx.ext.intersphinx', |
| 44 | 'sphinx.ext.graphviz', |
| 45 | 'sphinxcontrib.blockdiag', |
| 46 | 'sphinxcontrib.seqdiag', |
| 47 | 'sphinxcontrib.swaggerdoc', |
halil.cakal | 3607907 | 2022-11-16 13:24:44 +0000 | [diff] [blame] | 48 | 'sphinxcontrib.plantuml', |
| 49 | 'sphinxcontrib.redoc', |
| 50 | 'sphinx_tabs.tabs' |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 51 | ] |
| 52 | |
halil.cakal | 3607907 | 2022-11-16 13:24:44 +0000 | [diff] [blame] | 53 | redoc = [ |
| 54 | { |
| 55 | 'name': 'PMS API', |
| 56 | 'page': 'offeredapis/pms-api', |
| 57 | 'spec': './offeredapis/swagger/pms-api.json', |
| 58 | 'embed': True, |
| 59 | }, |
| 60 | { |
| 61 | 'name': 'A1 ADAPTER API', |
| 62 | 'page': 'offeredapis/a1-adapter-api', |
| 63 | 'spec': './offeredapis/swagger/a1-adapter-api.json', |
| 64 | 'embed': True, |
| 65 | } |
| 66 | ] |
| 67 | |
| 68 | redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js' |
| 69 | |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 70 | intersphinx_mapping = {} |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 71 | doc_url = 'https://docs.onap.org/projects' |
| 72 | master_doc = 'index' |
| 73 | |
| 74 | exclude_patterns = ['.tox'] |
| 75 | |
| 76 | spelling_word_list_filename='spelling_wordlist.txt' |
| 77 | spelling_lang = "en_GB" |
| 78 | |
DenisGNoonan | 81f1cae | 2024-05-10 16:24:53 +0100 | [diff] [blame] | 79 | html_extra_path = [ |
| 80 | 'offeredapis/openapitoolgen/offeredapis/pms-api' |
| 81 | ] |
| 82 | |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 83 | # |
| 84 | # Example: |
| 85 | # intersphinx_mapping['onap-aai-aai-common'] = ('{}/onap-aai-aai-common/en/%s'.format(doc_url) % branch, None) |
| 86 | # |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 87 | |
| 88 | html_last_updated_fmt = '%d-%b-%y %H:%M' |
| 89 | |
| 90 | def setup(app): |
Jessica Wagantall | fc3b6b3 | 2020-10-01 16:20:24 -0700 | [diff] [blame] | 91 | app.add_css_file("css/ribbon.css") |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 92 | |
| 93 | linkcheck_ignore = [ |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 94 | r'http://localhost:\d+/', |
| 95 | './a1-adapter-api.html', #Generated file that doesn't exist at link check. |
| 96 | './pms-api.html' #Generated file that doesn't exist at link check. |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 97 | ] |