Fix offeredapi documentation
[policy/parent.git] / docs / conf.py
1 project = "onap"
2 release = "master"
3 version = "master"
4
5 author = "Open Network Automation Platform"
6 # yamllint disable-line rule:line-length
7 copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License"
8
9 pygments_style = "sphinx"
10 html_theme = "sphinx_rtd_theme"
11 html_theme_options = {
12   "style_nav_header_background": "white",
13   "sticky_navigation": "False" }
14 html_logo = "_static/logo_onap_2017.png"
15 html_favicon = "_static/favicon.ico"
16 html_static_path = ["_static"]
17 html_show_sphinx = False
18
19 extensions = [
20     'sphinx.ext.intersphinx',
21     'sphinx.ext.graphviz',
22     'sphinxcontrib.blockdiag',
23     'sphinxcontrib.seqdiag',
24     'sphinxcontrib.swaggerdoc',
25     'sphinxcontrib.plantuml',
26     'sphinx_toolbox.collapse',
27     'sphinxcontrib.redoc'
28 ]
29
30 redoc_uri = 'https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js'
31
32 redoc = [
33     {
34         'name': 'Policy API',
35         'page': 'api/local-swagger',
36         'spec': 'https://raw.githubusercontent.com/onap/policy-api/master/main/src/main/resources/openapi/openapi.yaml',
37         'opts': {
38             'suppress-warnings': True,
39             'hide-hostname': True,
40         }
41     },
42     {
43         'name': 'Policy PAP',
44         'page': 'pap/local-swagger',
45         'spec': 'https://raw.githubusercontent.com/onap/policy-pap/master/main/src/main/resources/openapi/openapi.yaml',
46         'opts': {
47             'suppress-warnings': True,
48             'hide-hostname': True,
49         }
50     },
51     {
52         'name': 'Policy XACML',
53         'page': 'xacml/local-swagger',
54         'spec': 'https://raw.githubusercontent.com/onap/policy-xacml-pdp/master/main/src/main/resources/openapi/openapi.yaml',
55         'opts': {
56             'suppress-warnings': True,
57             'hide-hostname': True,
58         }
59     },
60     {
61         'name': 'Policy DROOLS',
62         'page': 'drools/local-swagger',
63         'spec': 'https://raw.githubusercontent.com/onap/policy-drools-pdp/master/feature-healthcheck/src/main/resources/openapi/openapi.yaml',
64         'opts': {
65             'suppress-warnings': True,
66             'hide-hostname': True,
67         }
68     },
69     {
70         'name': 'Policy ACM-R',
71         'page': 'clamp/acm/api-protocol/local-swagger',
72         'spec': 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/openapi.yaml',
73         'opts': {
74             'suppress-warnings': True,
75             'hide-hostname': True,
76         }
77     },
78 ]
79
80 #
81 # Map to 'latest' if this file is used in 'latest' (master) 'doc' branch.
82 # Change to {releasename} after you have created the new 'doc' branch.
83 #
84
85 branch = 'latest'
86
87 intersphinx_mapping = {}
88 doc_url = 'https://docs.onap.org/projects'
89 master_doc = 'index'
90
91 exclude_patterns = ['.tox']
92
93 spelling_word_list_filename='spelling_wordlist.txt'
94 spelling_lang = "en_GB"
95
96 #
97 # Example:
98 # intersphinx_mapping['onap-aai-aai-common'] = ('{}/onap-aai-aai-common/en/%s'.format(doc_url) % branch, None)
99 #
100
101 html_last_updated_fmt = '%d-%b-%y %H:%M'
102
103 def setup(app):
104     app.add_css_file("css/ribbon.css")
105
106 linkcheck_ignore = [
107   r'http://localhost:\d+/',
108   r'.(.*?)/local-swagger.html(.*?)'
109 ]