You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to achieve multisite using this extension (not sure if I got it right by saying multisite, or if it should be multi-project).
Here is my requirement. I need multiple sites for a single project (pointed to single GitHub repo). i.e., After building the project on ReadtheDocs, the URL should look something like this:
https:// rtd.com/en/site1/latest
https:// rtd.com/en/site2/latest
https:// rtd.com/jp/site1/latest (For a translated site)
https:// rtd.com/jp/site2/latest (For a translated site)
I have my conf.py file like:
# Define the projects that will share this configuration file.
multiproject_projects = {
"default":{
"path": "."
},
"site1": {
"path": "multisites/site1",
# Set `use_config_file` to false
# to avoid including the files twice.
"use_config_file": False,
"project": "Read the Docs user documentation for site1"
}
}
current_project = get_project(multiproject_projects)
# Set all values directly
# -----------------------
if current_project == 'default':
# File: docs/conf.py
from conf import *
elif current_project == 'site1':
# File: docs/multisites/site1/conf.py
from multisites.site1.conf import *
When I run the below command, I get the following error:
$ PROJECT=site1 make clean html
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
File "/home/sachin/.local/lib/python3.8/site-packages/sphinx/config.py", line 347, in eval_config_file
exec(code, namespace)
File "/home/sachin/Workspace/Sootballs/rr_sootballs/internal/rr_pa_amr_docs/docs/conf.py", line 143, in <module>
from multisites.site1.conf import *
ModuleNotFoundError: No module named 'multisites'
I also tried with: from site1.conf import *
What is the right way to give the path to conf.py?
The text was updated successfully, but these errors were encountered:
I am trying to achieve multisite using this extension (not sure if I got it right by saying multisite, or if it should be multi-project).
Here is my requirement. I need multiple sites for a single project (pointed to single GitHub repo). i.e., After building the project on ReadtheDocs, the URL should look something like this:
I have my
conf.py
file like:When I run the below command, I get the following error:
I also tried with:
from site1.conf import *
What is the right way to give the path to
conf.py
?The text was updated successfully, but these errors were encountered: