Skip to content

New theme based on Bootstrap 4: contributing (parts) upstream? #201

@jorisvandenbossche

Description

@jorisvandenbossche

We have been working on a Bootstrap-based sphinx theme recently: https://github.com/pandas-dev/pandas-sphinx-theme

We originally wanted to start from this theme, but in the end started from "scratch" (while still looking at the source code here) because we wanted to use bootstrap 4, add some additional features and also ended up with a different layout.
However, I think it would still be interesting to see if this project would welcome some changes to be contributed to this repo.

Some general remarks about this theme:

  • We have a different default layout as the layouts included in this repo (there is a navbar, and two sidebars). This will certainly not be a suitable layout for all documentation (it was originally developed for a doc site with a lot of pages).
    I think it would be interesting to see if it is easy to refactor the layout in this repo with the infrastructure (as explained above) of our new theme.

So I might be "cutting right to the chase" here without much prior context, but some questions:

  • Would there be interest in those elements described above?
  • Would there be interest in the layout described above? A possible question here is to what extent it is possible for a single package to distribute different sets of layouts (there is no one layout that rules them all ;))

Personally, I would be happy to see efforts combined. But, it might well be that the more complex layout and some other elements (version dropdowns, ..) in our new theme are "out of scope" for this theme, or that the approach is too different to combine, .. Even then, it might still make sense to see if certain common parts could be shared if there is interest. And at least I wanted to make you aware of the efforts going on in the other package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions