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
# target_node is found, but fignumber is not assigned.
# Maybe it is defined in orphaned document.
raiseValueErrorfromexc
Since your document is an orphan document, it appears that you won't be able to use it like that. Now, I think that you actually need to create two "projects" and include them as follows:
In main, you'll find everything you want that should be rendered as the "first" document so you won't export index as a PDF itself, but only main/index.rst. I haven't tested it but it should render properly (although you'll still have a huge document index containing all merged documents together, but this is fine for the HTML output I think).
With the above structure, the numref would work as intended (you will have two distinct figure numbers for the same figure depending on whether you consult the standalone PDF for performance or the merged PDF for index but this is fine).
@picnixz Thanks for the suggestions. I really prefer to keep these two documents separate (while both of them are part of the HTML version of the documentation).
My current workaround is to generate my documentation in PDF format by running make for PDF twice. Second time I am using make -D root_doc=performance.
Describe the bug
I want to produce two PDF documents
Please note that the main document does not reference the report document in its TOC.
When I run
sphinx-build
then I get the warningAnd the report document does not reference the figure properly. However, section reference still works.
If I run
sphinx-build
2nd time with-D root_doc=performance
option, then the figure reference works.How to Reproduce
The files to reproduce the issue attached
doc.zip
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: