Closed sachin-suresh-rapyuta closed 1 year ago
You can combine different solutions to get this done:
sphinx-build -t first_pdf -b simplepdf sources/ build/
conf.py
if a tag is set:
# Untested, pseudo code
if "first_pdf" in tags:
simplepdf_vars = {version_A}
else:
simplepdf_vars = {version_B}
That's it.
Or you could have a different conf.py
and select via: sphinx-build -c another_conf.py -b simplepdf sources/
How to define tags? For example, if I simply:
tags.add('footag')
even after importing them by: from sphinx.util.tags import Tags
, I get the error:
"tags" is not defined PylancereportUndefinedVariable
For such common details please ask this question in the related Sphinx community. They will be able to help you much better and faster than I can.
You can combine different solutions to get this done:
This would be a nice addition to the config vars docs section, maybe like a Note or Tip
Yes trying this out. Having some issues in the "only" directive or still unsure how to use the conditional outputting.
You can combine different solutions to get this done:
This would be a nice addition to the config vars docs section, maybe like a Note or Tip
Would be happy to see if you have achieved this or did something similar.
I want to generate 2 PDFs from a single
conf.py
file. Is there such flexibility?2 PDFs with different
top-right-content
orcover-bg
.