All Projects → MrDogeBro → sphinx_rtd_dark_mode

MrDogeBro / sphinx_rtd_dark_mode

Licence: MIT license
Adds a toggleable dark mode to the Read the Docs theme for Sphinx.

Programming Languages

CSS
56736 projects
python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sphinx rtd dark mode

sphinxcontrib-django
This is a sphinx extension which improves the documentation of Django apps.
Stars: ✭ 37 (+27.59%)
Mutual labels:  sphinx, sphinx-doc, sphinx-extension
Readthedocs.org
The source code that powers readthedocs.org
Stars: ✭ 6,802 (+23355.17%)
Mutual labels:  docs, sphinx, sphinx-doc
gui-python-gtk
Repositório criado para documentar e centralizar conteúdos, dicas, tutoriais e exemplos de código sobre a construção de interfaces com a linguagem de programação Python (PyGObject) e o toolkit gráfico Gtk 4.
Stars: ✭ 85 (+193.1%)
Mutual labels:  sphinx, sphinx-doc
sphinx-hoverxref
Sphinx extension to show tooltips with content embedded when hover a reference.
Stars: ✭ 77 (+165.52%)
Mutual labels:  sphinx, sphinx-extension
sphinx-toolbox
Box of handy tools for Sphinx 🧰 📔
Stars: ✭ 55 (+89.66%)
Mutual labels:  sphinx, sphinx-extension
Jsx Lexer
a JSX lexer for pygments
Stars: ✭ 26 (-10.34%)
Mutual labels:  docs, sphinx
panda3d-docs
Sphinx documentation for Panda3D
Stars: ✭ 37 (+27.59%)
Mutual labels:  sphinx, sphinx-doc
autodoc pydantic
Seamlessly integrate pydantic models in your Sphinx documentation.
Stars: ✭ 60 (+106.9%)
Mutual labels:  sphinx, sphinx-extension
sphinx-theme
(Deprecated) Make Sphinx docs look like MDN
Stars: ✭ 27 (-6.9%)
Mutual labels:  sphinx, sphinx-doc
restbuilder
A Sphinx builder/writer to output reStructuredText (rst) files
Stars: ✭ 25 (-13.79%)
Mutual labels:  sphinx-doc, sphinx-extension
roll.urown.net
How to roll your own private self-hosted internet services.
Stars: ✭ 63 (+117.24%)
Mutual labels:  docs, sphinx
sphinxcontrib-programoutput
Sphinx extension for capturing program output
Stars: ✭ 29 (+0%)
Mutual labels:  sphinx, sphinx-extension
docs
Jina V1 Official Documentation. For the latest one, please check out https://docs.jina.ai
Stars: ✭ 21 (-27.59%)
Mutual labels:  docs, sphinx-doc
sphinx-jekyll-builder
sphinx builder that outputs jekyll compatible markdown files with frontmatter
Stars: ✭ 18 (-37.93%)
Mutual labels:  docs, sphinx
sphinx-revealjs
Presentation builder for Pythonista
Stars: ✭ 56 (+93.1%)
Mutual labels:  sphinx, sphinx-extension
sphinx-codeautolink
Automatic links from code examples to reference documentation
Stars: ✭ 41 (+41.38%)
Mutual labels:  sphinx, sphinx-extension
sphinx-wavedrom
A sphinx extension that allows including wavedrom diagrams by using its text-based representation
Stars: ✭ 26 (-10.34%)
Mutual labels:  sphinx, sphinx-extension
openapi
OpenAPI (fka Swagger) spec renderer for Sphinx.
Stars: ✭ 78 (+168.97%)
Mutual labels:  sphinx, sphinx-extension
sphinxcontrib-hdl-diagrams
Sphinx Extension which generates various types of diagrams from Verilog code.
Stars: ✭ 37 (+27.59%)
Mutual labels:  sphinx, sphinx-extension
sphinx-server
Sphinx documentation Docker image with Python server and support for PlantUML and more.
Stars: ✭ 62 (+113.79%)
Mutual labels:  sphinx, sphinx-doc

Sphinx RTD Theme Dark Mode

Build Status PyPi version PyPI pyversions PyPI download month License PRs Welcome

This Sphinx extension adds a toggleable dark mode to the Read the Docs theme. A little icon is added in the bottom right hand corner which allows the user to switch between light or dark mode.

Installation

Python 3.4 or higher is required

To install dark mode for the RTD theme, enter the following command into your terminal or command prompt.

# Linux/OSX
python3 -m pip install sphinx-rtd-dark-mode

# Windows
py -3 -m pip install sphinx-rtd-dark-mode

Using the Extension

To use the extension, you will need to add it to the extensions array in your config file (conf.py).

extensions = ["sphinx_rtd_dark_mode"]

You will also need to be using the Sphinx RTD theme for this to work. If your not, then the extension will change it for you as it only works for that theme.

Config

Below are the options that are customizeable for the extension. Currently, there is only one option available to configure.

Default Dark Mode

This lets you choose which theme the user sees when they load the docs for the first time ever. After the first time however, this setting has no effect as the users preference is stored in local storage within their browser. This option accepts a boolean for the value. If this option is true (the default option), users will start in dark mode when first visiting the site. If this option is false, users will start in light mode when they first visit the site.

# user starts in dark mode
default_dark_mode = True

# user starts in light mode
default_dark_mode = False

License

The Sphinx RTD Dark Mode module for Python is licensed under an MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].