[Python-Dev] RFC: New/update the Docs Sphinx theme: responsive, edit page links,

17 views
Skip to first unread message

Wes Turner

unread,
Sep 22, 2021, 3:38:27 PM9/22/21
to Python-Dev, Python-Ideas, do...@python.org, python...@python.org
Where would be the best place to discuss or just improve the CPython docs sphinx theme? What would Python need in a {PyData,} Sphinx theme fork:

- [ ] ENH: add <edit on github> links to every docs page
- [ ] ENH: responsive breakpoints for mobile devices
- [ ] ENH: responsive fonts

- [ ] ENH: toggle-able dark theme

- [ ] ENH: interactive code examples (in WASM with pyodide like JupyterLite)

- [ ] ENH?: Two sidebars: {Global TOC} {Content} {Document TOC}

The PyData theme [bandwagon, feature justification, maintenance burden justification]

```quote
Other sites that are using this theme:
```

The sphinx-book-theme theme (Jupyter Book theme) has a few possibly necessary features for the {CPython, Devguide, *} docs:

```quote
A Sphinx theme with a clean design, support for interactive content, and a modern book-like look and feel.

Flexible content layout: Inspired by beautiful online books, such as the Edward Tufte CSS guide

Visual classes designed for Jupyter Notebooks: Cell inputs, outputs, and interactive functionality are all supported.

Launch buttons for online interactivity: For pages that are built with computational material, connect your site to an online BinderHub for interactive content.

Bootstrap 4: To style visual elements and add functionality.

International: All text integrated in the theme is translated to the specified Sphinx language.
```

```python
html_theme = 'python_docs_theme'
```

# The theme used by the documentation is stored separately, so we need
# to install that as well.
python-docs-theme
```


What are some better ways to add {Source RST, Source, Edit, History, and Annotate} links to every sphinx doc page than sphinxcontrib-srclinks?
- sphinxcontrib-srclinks: Source RST, Source, Edit, History, and Annotate, Clone URL
  - [ ] copy clone URL to clipboard button
- pydata-theme: 'Edit this page' on the document TOC sidebar
- sphinx-book-theme: {gh, bb, gl} icon > 'Suggest edit'

- [ ] ENH: add collapsible sidebar to whatever is chosen as a suitable replacement for the current non-responsive theme

Senthil Kumaran

unread,
Sep 24, 2021, 12:58:58 AM9/24/21
to Wes Turner, Python-Dev
Replying to Python-Dev. I hope you found the list and got feedback from
the documentation maintainers. Python devguide
https://devguide.python.org/ was using an updated theme, and I assume
that docs will get updated soon a responsive. There have been plenty
discussions on this front.


Thank you,
Senthil
_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/pytho...@python.org/message/XIJ7KMLDAVMVCGILH5TJY2IPOANV7TW6/
Code of Conduct: http://python.org/psf/codeofconduct/
Reply all
Reply to author
Forward
0 new messages