Skip to content

[Request] To convert this theme into a generic sphinx theme #13

Open
@MrinalJain17

Description

@MrinalJain17

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"

Activity

dgasmith

dgasmith commented on Feb 27, 2019

@dgasmith

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?

adamjstewart

adamjstewart commented on Sep 22, 2021

@adamjstewart

I believe fixing #143 is also required to make this a generic theme.

ain-soph

ain-soph commented on Oct 4, 2021

@ain-soph
Contributor

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dgasmith@adamjstewart@ain-soph@MrinalJain17

        Issue actions

          [Request] To convert this theme into a generic sphinx theme · Issue #13 · pytorch/pytorch_sphinx_theme