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
Following the instructions about conditional text in Sphinx, I created three different build subdirectories in one project to generate three custom contents from the same source (e.g. source-file -> output1 for users, output2 for admins, output3 for developers).
I'm currently stuck on how to generate three different TOCs for each subdirectory within my project.
In the current scenario, the build command generates a single TOC for all three subdirectories and overwrites the former TOC.
My project consists of a single source directory and three different build directories. My tree structure looks like this:
As you can see, I have a custom landing page in the _templates folder (i.e., index.html), and a Jinja template (layout.html) extending my default layout.
Here's an extract of my conf.py:
# The master toctree document. Tell Sphinx about the location of our table of contents.
root_doc = 'contents'
# Tell Sphinx that we still want to generate the index page, but with a custom template.
html_additional_pages = {'index': 'index.html'}
Is there a possibility to set multiple values for the root_doc and specify each path within the corresponding subdirectory, or any other workaround to achieve this?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Following the instructions about conditional text in Sphinx, I created three different
build
subdirectories in one project to generate three custom contents from the same source (e.g. source-file -> output1 for users, output2 for admins, output3 for developers).I'm currently stuck on how to generate three different TOCs for each subdirectory within my project.
In the current scenario, the build command generates a single TOC for all three subdirectories and overwrites the former TOC.
My project consists of a single
source
directory and three differentbuild
directories. My tree structure looks like this:As you can see, I have a custom landing page in the _templates folder (i.e., index.html), and a Jinja template (layout.html) extending my default layout.
Here's an extract of my
conf.py
:Is there a possibility to set multiple values for the
root_doc
and specify each path within the corresponding subdirectory, or any other workaround to achieve this?Thank you for your help!
The text was updated successfully, but these errors were encountered: