pytorch_sphinx_theme
pytorch_sphinx_theme copied to clipboard
[Request] To convert this theme into a generic sphinx theme
As of now, there are only a handful of themes for sphinx
that are both functional and visually pleasing. The theme developed for the new layout of pytorch
docs and tutorials (for version 1.0) is quite elegant, and it would be great if this theme could be converted into a generic sphinx theme, making it possible for anyone to use it.
Or perhaps, if there is a workaround to do this?
For example,
If I wanted to use the pytorch_sphinx_theme
, I could
pip install pytorch_sphinx_theme
Then in my conf.py
,
html_theme = "pytorch_sphinx_theme"
Poking through the source code it doesn't appear to have many PyTorch specific end points. I haven't tried this and just started to look into trying this out as a theme as well. What are the issues with including this in other projects?
I believe fixing #143 is also required to make this a generic theme.
Maybe you could take a look at my recent work, which removes all pytorch-related things and support many customizations. It also removes all other unnecessary items to make it a pure doc template.
https://github.com/ain-soph/trojanzoo_sphinx_theme
demo
https://ain-soph.github.io/trojanzoo_sphinx_theme/
https://ain-soph.github.io/alsplot/