blob: 637254466f0ed2d9c6250ad30ba777ef159c78f6 [file] [log] [blame]
DenisGNoonan81f1cae2024-05-10 16:24:53 +01001# ============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
marineMDed0b1822022-11-14 15:46:34 +010019project = "onap"
20release = "master"
21version = "master"
JohnKeeneye251d0c2023-02-20 18:00:44 +000022# 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.
24branch = 'latest'
25
elinuxhenrik3d854202020-09-22 15:48:10 +020026
marineMDed0b1822022-11-14 15:46:34 +010027author = "Open Network Automation Platform"
28# yamllint disable-line rule:line-length
29copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License"
Jessica Wagantall449c8be2020-02-06 13:25:49 -080030
marineMDed0b1822022-11-14 15:46:34 +010031pygments_style = "sphinx"
32html_theme = "sphinx_rtd_theme"
33html_theme_options = {
34 "style_nav_header_background": "white",
35 "sticky_navigation": "False" }
thmsdt568a2042024-08-14 10:25:46 +020036html_logo = "_static/logo_onap_2024.png"
marineMDed0b1822022-11-14 15:46:34 +010037html_favicon = "_static/favicon.ico"
38html_static_path = ["_static"]
39html_show_sphinx = False
JohnKeeneye251d0c2023-02-20 18:00:44 +000040html_extra_path = ["offeredapis/openapitoolgen"]
marineMDed0b1822022-11-14 15:46:34 +010041
42extensions = [
43 'sphinx.ext.intersphinx',
44 'sphinx.ext.graphviz',
45 'sphinxcontrib.blockdiag',
46 'sphinxcontrib.seqdiag',
47 'sphinxcontrib.swaggerdoc',
halil.cakal36079072022-11-16 13:24:44 +000048 'sphinxcontrib.plantuml',
49 'sphinxcontrib.redoc',
50 'sphinx_tabs.tabs'
Jessica Wagantall449c8be2020-02-06 13:25:49 -080051]
52
halil.cakal36079072022-11-16 13:24:44 +000053redoc = [
54 {
55 'name': 'PMS API',
56 'page': 'offeredapis/pms-api',
57 'spec': './offeredapis/swagger/pms-api.json',
58 'embed': True,
59 },
60 {
raviteja.karumuri1203af82024-09-05 15:18:32 +010061 'name': 'PMS API V3',
62 'page': 'offeredapis/pms-api-v3',
63 'spec': './offeredapis/swagger/pms-api-v3.json',
64 'embed': True,
65 },
66 {
halil.cakal36079072022-11-16 13:24:44 +000067 'name': 'A1 ADAPTER API',
68 'page': 'offeredapis/a1-adapter-api',
69 'spec': './offeredapis/swagger/a1-adapter-api.json',
70 'embed': True,
71 }
72 ]
73
74redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'
75
Jessica Wagantall449c8be2020-02-06 13:25:49 -080076intersphinx_mapping = {}
marineMDed0b1822022-11-14 15:46:34 +010077doc_url = 'https://docs.onap.org/projects'
78master_doc = 'index'
79
80exclude_patterns = ['.tox']
81
82spelling_word_list_filename='spelling_wordlist.txt'
83spelling_lang = "en_GB"
84
DenisGNoonan81f1cae2024-05-10 16:24:53 +010085html_extra_path = [
raviteja.karumuri1203af82024-09-05 15:18:32 +010086 'offeredapis/openapitoolgen'
DenisGNoonan81f1cae2024-05-10 16:24:53 +010087]
88
marineMDed0b1822022-11-14 15:46:34 +010089#
90# Example:
91# intersphinx_mapping['onap-aai-aai-common'] = ('{}/onap-aai-aai-common/en/%s'.format(doc_url) % branch, None)
92#
Jessica Wagantall449c8be2020-02-06 13:25:49 -080093
94html_last_updated_fmt = '%d-%b-%y %H:%M'
95
96def setup(app):
Jessica Wagantallfc3b6b32020-10-01 16:20:24 -070097 app.add_css_file("css/ribbon.css")
marineMDed0b1822022-11-14 15:46:34 +010098
99linkcheck_ignore = [
raviteja.karumuri1203af82024-09-05 15:18:32 +0100100 r'http://localhost:\d+/',
101 './a1-adapter-api.html', #Generated file that doesn't exist at link check.
102 './pms-api.html', #Generated file that doesn't exist at link check.
103 './pms-api-v3.html' #Generated file that doesn't exist at link check.
raviteja.karumuri7e9f04c2024-09-18 11:05:26 +0100104]