Thank you all for the comments.
I managed using a quite ugly solution but does the job: I edited the
layout.html
and included a hidden full toctree using:
{{ toctree(maxdepth=-1|toint, collapse=False,includehidden=True|tobool)
}}
This way, I can inspect the output HTML and fetch the
I was checking your script but you indeed pass a tree already defined in an
XML. My problem is to *get that tree*, I could write by hand a table of
content but it will change as soon as somebody changes the documentation
and additionally the documentation is constantly growing...the idea is to
Hi Leif, thank you very much!
I will give it a try! :)
On Friday, February 1, 2019 at 7:48:41 PM UTC+1, Leif Hancox-Li wrote:
>
> I think you can write a script to do this. I wrote a script to do the
> reverse: Convert HTML files and an XML table of contents into RST files
> with the correct
Hi Michael, thank you very much for your reply,
I am already using wkhtmltopdf to build PDF from HTMLs. Also, I already
tried the singlehtml and indeed works but the problem is that it increases
so much the build time that it makes kind of impossible to work locally to
test. Using singlehtml
I am working on a tool which converts the *exported HTML* Sphinx
documentation into PDF. The main issue comes with the structure of the PDF,
without the full tree there is no easy way to know which index.html should
go after the other, and build a logical PDF.
Is there a way to get the whole