Make it easier to build doc & subsites 40/12340/1
authorJohnKeeney <john.keeney@est.tech>
Fri, 15 Dec 2023 23:02:36 +0000 (23:02 +0000)
committerJohnKeeney <john.keeney@est.tech>
Fri, 15 Dec 2023 23:02:41 +0000 (23:02 +0000)
Change-Id: Ib294b2844edf439a3ad8f07da80e23e73494f0a1
Signed-off-by: JohnKeeney <john.keeney@est.tech>
Issue-ID: NONRTRIC-958

docs/conf.py

index 8cfc568..f806a4b 100644 (file)
 from docs_conf.conf import *
 
 branch = 'latest'
+subsitesbranch = 'latest' # set this to latest for the first build on a new branch. Then change in next commit. 
+
 baseurl = 'https://docs.o-ran-sc.org/projects/'
 selfurl = '%s/o-ran-sc-nonrtric-plt-ranpm/en/%s' %(baseurl, branch)
+subsitesurl = '%s/o-ran-sc-nonrtric-plt-ranpm/en/%s' %(baseurl, subsitesbranch)
 
 linkcheck_ignore = [
     'http://localhost.*',
@@ -40,9 +43,9 @@ extensions = [
 intersphinx_mapping = {}
 intersphinx_mapping['nonrtric'] = ('%s/o-ran-sc-nonrtric/en/%s' %(baseurl, branch), None)
 ## Note there is a circular dependency here - sub-project pages must exist before they can be checked
-intersphinx_mapping['influxlogger'] = ('%s/influxlogger' % selfurl, None)
-intersphinx_mapping['datafilecollector'] = ('%s/datafilecollector' % selfurl, None)
-intersphinx_mapping['pmproducer'] = ('%s/pmproducer' % selfurl, None)
-intersphinx_mapping['pm-file-converter'] = ('%s/pm-file-converter' % selfurl, None)
+intersphinx_mapping['influxlogger'] = ('%s/influxlogger' %subsitesurl, None)
+intersphinx_mapping['datafilecollector'] = ('%s/datafilecollector' %subsitesurl, None)
+intersphinx_mapping['pmproducer'] = ('%s/pmproducer' %subsitesurl, None)
+intersphinx_mapping['pm-file-converter'] = ('%s/pm-file-converter' %subsitesurl, None)
 
 intersphinx_disabled_reftypes = ["*"]