diff options
author | lapentafd <francesco.lapenta@est.tech> | 2023-05-25 12:05:12 +0100 |
---|---|---|
committer | Adheli Tavares <adheli.tavares@est.tech> | 2023-05-25 13:22:13 +0000 |
commit | d7443e560835028c84b4f8b49fa506b820bad796 (patch) | |
tree | 8cb38f41e4c197ab614896aa5211a7055d2fcaa3 /docs | |
parent | 4453ae3019777a432fb78d11c7a5d6a52b0859e9 (diff) |
Updating parent/doc configuration script to use variables
Issue-ID: POLICY-4127
Change-Id: I85e4309a0acd2c33f179ff0590eced2568d4d170
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/docs/conf.py b/docs/conf.py index a43b3055..41f7e7b1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,6 +2,10 @@ project = "onap" release = "master" version = "master" +# Map to 'latest' if this file is used in 'latest' (master) 'doc' branch. +# Change to {releasename} after you have created the new 'doc' branch. +branch = 'latest' + author = "Open Network Automation Platform" # yamllint disable-line rule:line-length copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License" @@ -33,7 +37,7 @@ redoc = [ { 'name': 'Policy API', 'page': 'api/local-swagger', - 'spec': 'https://raw.githubusercontent.com/onap/policy-api/master/main/src/main/resources/openapi/openapi.yaml', + 'spec': 'https://raw.githubusercontent.com/onap/policy-api/' + release + '/main/src/main/resources/openapi/openapi.yaml', 'opts': { 'suppress-warnings': True, 'hide-hostname': True, @@ -42,7 +46,7 @@ redoc = [ { 'name': 'Policy PAP', 'page': 'pap/local-swagger', - 'spec': 'https://raw.githubusercontent.com/onap/policy-pap/master/main/src/main/resources/openapi/openapi.yaml', + 'spec': 'https://raw.githubusercontent.com/onap/policy-pap/' + release + '/main/src/main/resources/openapi/openapi.yaml', 'opts': { 'suppress-warnings': True, 'hide-hostname': True, @@ -51,7 +55,7 @@ redoc = [ { 'name': 'Policy XACML', 'page': 'xacml/local-swagger', - 'spec': 'https://raw.githubusercontent.com/onap/policy-xacml-pdp/master/main/src/main/resources/openapi/openapi.yaml', + 'spec': 'https://raw.githubusercontent.com/onap/policy-xacml-pdp/' + release + '/main/src/main/resources/openapi/openapi.yaml', 'opts': { 'suppress-warnings': True, 'hide-hostname': True, @@ -60,7 +64,7 @@ redoc = [ { 'name': 'Policy DROOLS', 'page': 'drools/local-swagger', - 'spec': 'https://raw.githubusercontent.com/onap/policy-drools-pdp/master/feature-healthcheck/src/main/resources/openapi/openapi.yaml', + 'spec': 'https://raw.githubusercontent.com/onap/policy-drools-pdp/' + release + '/feature-healthcheck/src/main/resources/openapi/openapi.yaml', 'opts': { 'suppress-warnings': True, 'hide-hostname': True, @@ -69,7 +73,7 @@ redoc = [ { 'name': 'Policy ACM-R', 'page': 'clamp/acm/api-protocol/local-swagger', - 'spec': 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/openapi.yaml', + 'spec': 'https://raw.githubusercontent.com/onap/policy-clamp/' + release + '/runtime-acm/src/main/resources/openapi/openapi.yaml', 'opts': { 'suppress-warnings': True, 'hide-hostname': True, @@ -77,13 +81,6 @@ redoc = [ }, ] -# -# Map to 'latest' if this file is used in 'latest' (master) 'doc' branch. -# Change to {releasename} after you have created the new 'doc' branch. -# - -branch = 'latest' - intersphinx_mapping = {} doc_url = 'https://docs.onap.org/projects' master_doc = 'index' |