blob: 07f9c67cdc215b0a38c6d6efe5889100ee60aea6 [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" }
36html_logo = "_static/logo_onap_2017.png"
37html_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 {
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
68redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js'
69
Jessica Wagantall449c8be2020-02-06 13:25:49 -080070intersphinx_mapping = {}
marineMDed0b1822022-11-14 15:46:34 +010071doc_url = 'https://docs.onap.org/projects'
72master_doc = 'index'
73
74exclude_patterns = ['.tox']
75
76spelling_word_list_filename='spelling_wordlist.txt'
77spelling_lang = "en_GB"
78
DenisGNoonan81f1cae2024-05-10 16:24:53 +010079html_extra_path = [
80 'offeredapis/openapitoolgen/offeredapis/pms-api'
81]
82
marineMDed0b1822022-11-14 15:46:34 +010083#
84# Example:
85# intersphinx_mapping['onap-aai-aai-common'] = ('{}/onap-aai-aai-common/en/%s'.format(doc_url) % branch, None)
86#
Jessica Wagantall449c8be2020-02-06 13:25:49 -080087
88html_last_updated_fmt = '%d-%b-%y %H:%M'
89
90def setup(app):
Jessica Wagantallfc3b6b32020-10-01 16:20:24 -070091 app.add_css_file("css/ribbon.css")
marineMDed0b1822022-11-14 15:46:34 +010092
93linkcheck_ignore = [
PatrikBuhr9f1d9492023-04-17 13:00:15 +020094 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.
marineMDed0b1822022-11-14 15:46:34 +010097]