PatrikBuhr | 608883c | 2023-04-06 13:17:36 +0200 | [diff] [blame] | 1 | # ============LICENSE_START=============================================== |
PatrikBuhr | 32de6c4 | 2023-04-20 06:42:23 +0200 | [diff] [blame] | 2 | # Copyright (C) 2021-2023 Nordix Foundation. All rights reserved. |
PatrikBuhr | 608883c | 2023-04-06 13:17:36 +0200 | [diff] [blame] | 3 | # ======================================================================== |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # ============LICENSE_END================================================= |
| 16 | # |
| 17 | |
| 18 | from docs_conf.conf import * |
| 19 | |
| 20 | #branch configuration |
| 21 | |
| 22 | branch = 'latest' |
| 23 | |
| 24 | language = 'en' |
| 25 | |
| 26 | linkcheck_ignore = [ |
| 27 | 'http://localhost.*', |
| 28 | 'http://127.0.0.1.*', |
| 29 | 'https://gerrit.o-ran-sc.org.*', |
| 30 | './pm-producer-api.html', #Generated file that doesn't exist at link check. |
| 31 | ] |
| 32 | |
| 33 | extensions = ['sphinxcontrib.redoc', 'sphinx.ext.intersphinx',] |
| 34 | |
| 35 | redoc = [ |
| 36 | { |
| 37 | 'name': 'PM Producer API', |
| 38 | 'page': 'pm-producer-api', |
| 39 | 'spec': '../api/api.json', |
PatrikBuhr | 32de6c4 | 2023-04-20 06:42:23 +0200 | [diff] [blame] | 40 | 'embed': True, |
PatrikBuhr | 608883c | 2023-04-06 13:17:36 +0200 | [diff] [blame] | 41 | } |
| 42 | ] |
| 43 | |
| 44 | redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js' |
| 45 | |
| 46 | #intershpinx mapping with other projects |
| 47 | intersphinx_mapping = {} |
| 48 | |
| 49 | intersphinx_mapping['nonrtric'] = ('https://docs.o-ran-sc.org/projects/o-ran-sc-nonrtric/en/%s' % branch, None) |