Skip to content

Create a jupyterhub-sphinx-theme for all JupyterHub read-the-docs sites #524

@manics

Description

@manics

Proposed change

Create a new Python package jupyterhub-sphinx-theme that includes a set of default Sphinx themes and plugins, and some configuration that can be applied across all JupyterHub read-the-docs sites.

Alternative options

Do nothing

Who would use this feature?

Everyone editing documentation on JupyterHub RTD projects.

(Optional): Suggest a solution

This was suggested by @choldgraf as part of some exploratory work on adding opengraph tags in jupyterhub/zero-to-jupyterhub-k8s#2717 and pydata/pydata-sphinx-theme#664

if we define a jupyterhub theme we could also consider defining some extensions that are automatically installed in all of our repositories (e.g. sphinx-copybutton) or some theme styles to standardize (e.g. the primary color could be jupyter orange). Another option would be to use a single-page theme like the Sphinx Book Theme and then define a topbar in the jupyterhub theme that is shared between all projects. This is what the Dask project does as well as the 2i2c docs. I actually have a PR open in the book theme to make this easier to do, would love comments if you think it'd be helpful: executablebooks/sphinx-book-theme#559

We could start by iterating on https://github.com/jupyterhub/zero-to-jupyterhub-k8s , then when we've got a stable configuration think about making it into a package?

If jupyterhub-sphinx-theme pins all dependencies exactly we can then leave the theme unpinned in all JupyterHub projects, and manage updates in one place.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions