I would like to add a bulleted list of download links within my toctree.
Ideally, it would look something like this:
-
- download foo.py file
- download foo.ipynb file
-
- download bar.py file
- download bar.ipynb file
I've tried:
.. toctree::
foo
* :download:`download foo.py file <files/foo.py>`
* :download:`download foo.ipynb file <files/foo.ipynb>`
bar
* :download:`download bar.py file <files/bar.py>`
* :download:`download bar.ipynb file <files/bar.ipynb>`
But this fails since toctree
only expects references to documents:
WARNING: toctree contains reference to nonexisting document '* :download:`download foo.py file <files/foo.py>`'
The closest I've come is:
.. toctree::
foo
* :download:`download foo.py file <files/foo.py>`
* :download:`download foo.ipynb file <files/foo.ipynb>`
.. toctree::
bar
* :download:`download bar.py file <files/bar.py>`
* :download:`download bar.ipynb file <files/bar.ipynb>`
Which looks about like this:
download foo.py file
download foo.ipynb file
download bar.py file
download bar.ipynb file
This does not look great and I have many more documents in my actual toctree
. Is there any way to accomplish this?