I'm using Sphinx to build a documentation website and have been very
impressed with it.
The documentation I am using consists of mostly rst files but there
are also some pdf files which I would like to include on the website.
Is there a way that I can tell sphinx to include pdfs in the TOC and
copy them to the relevant directory when it builds the html?
Thanks
Nick
Not to directly put them in the TOC, but you can use the :download: role
to automatically copy them to the build directory.
You can then either list the PDF downloads in a separate bullet list, or
mention them via :download: somewhere, and then add links to them in the
toctree as well.
cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEARECAAYFAkuBT8EACgkQN9GcIYhpnLCY6wCfch3YyY6/yyRd3X8ZQ2WsPbc5
+7oAoIKRkmz3NljJR+qNQ8PIBHbqUWVw
=gkcr
-----END PGP SIGNATURE-----