Sphinx theme for readthedocs.org
Go to file
Aaron Carlisle 836467e4b9 Add compatibility for sphinx4
Sphinx 4.x moves javascript and css declarations to `script_files` and `css_files`. This patch fixes duplicatd link and script tags when using sphinx4

Sphinx 4.x changes the default setting of html_codeblock_linenos_style to 'inline' and deprecates `html_codeblock_linenos_style`. The css for `.hll` to make the hightling span the full line cause the line number and code to be split on seperate lines. I could not get the highlight to span the full line so it was removed completely. I also made line numbers not selectible by the user.

This changes also adds the needed changes to the tox testing enviorment alhough, sphinx4 is not officially released to pypi yet. You will need to test these changes locally using: `pip install git+https://github.com/sphinx-doc/sphinx@master`
2021-04-10 16:50:34 -04:00
.circleci Add compatibility for sphinx4 2021-04-10 16:50:34 -04:00
.github Update issue templates (#1062) 2021-03-01 09:39:40 -05:00
.tx Update transifex usage 2020-05-06 13:24:14 -06:00
bin Add a bit more error logging to preinstall check 2019-07-26 09:35:10 -06:00
docs Add Missing version bumps for 0.5.2 (#1120) 2021-04-08 20:40:33 -04:00
sphinx_rtd_theme Add compatibility for sphinx4 2021-04-10 16:50:34 -04:00
src Add compatibility for sphinx4 2021-04-10 16:50:34 -04:00
tests Tests: Remove test for sphinx version no longer supported (#1071) 2021-03-11 10:01:14 -05:00
.gitattributes Fix line endings (#709) 2018-12-18 14:45:19 -05:00
.gitignore Remove Modernizr, keep html5shiv (Webpack edition) 2019-10-25 14:54:52 +02:00
.readthedocs.yml Don't require npm to build from source (#1039) 2021-03-15 10:12:50 -05:00
Apache-License-2.0.txt Bundle Roboto Slab as a real web font (not just ttf) (#642) 2018-05-24 11:33:57 -04:00
babel.cfg Updated Babel configurations 2018-04-17 00:48:40 -04:00
LICENSE Replace the name 'Dave Snider' with RTD (#572) 2018-03-19 07:56:34 -04:00
MANIFEST.in Packaging: include bin/preinstall.js 2020-10-07 16:29:11 -05:00
OFL-License.txt Change Lato font to webfont (version 2.015) (#639) 2018-05-24 11:49:40 -04:00
package-lock.json Merge Release 0.5.2 Changelog into master (#1114) 2021-04-05 13:14:49 -04:00
package.json Merge Release 0.5.2 Changelog into master (#1114) 2021-04-05 13:14:49 -04:00
README.rst CI: switch to circleci (#1020) 2020-11-25 18:51:19 -05:00
setup.cfg Add Missing version bumps for 0.5.2 (#1120) 2021-04-08 20:40:33 -04:00
setup.py Fix backport of requirements (#1118) 2021-04-06 18:06:31 -05:00
tox.ini Add compatibility for sphinx4 2021-04-10 16:50:34 -04:00
webpack.common.js Remove Modernizr, keep html5shiv (Webpack edition) 2019-10-25 14:54:52 +02:00
webpack.dev.js Make webpack dev server config to be more useful 2020-05-01 20:38:10 -06:00
webpack.prod.js Run webpack js through Prettier JS formatter 2019-07-26 15:35:35 -06:00

**************************
Read the Docs Sphinx Theme
**************************

.. image:: https://img.shields.io/pypi/v/sphinx_rtd_theme.svg
   :target: https://pypi.python.org/pypi/sphinx_rtd_theme
   :alt: Pypi Version
.. image:: https://circleci.com/gh/readthedocs/sphinx_rtd_theme.svg?style=svg
   :alt: Build Status
   :target: https://circleci.com/gh/readthedocs/sphinx_rtd_theme
.. image:: https://img.shields.io/pypi/l/sphinx_rtd_theme.svg
   :target: https://pypi.python.org/pypi/sphinx_rtd_theme/
   :alt: License
.. image:: https://readthedocs.org/projects/sphinx-rtd-theme/badge/?version=latest
  :target: http://sphinx-rtd-theme.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

This Sphinx_ theme was designed to provide a great reader experience for
documentation users on both desktop and mobile devices. This theme is used
primarily on `Read the Docs`_ but can work with any Sphinx project. You can find
a working demo of the theme in the `theme documentation`_

.. _Sphinx: http://www.sphinx-doc.org
.. _Read the Docs: http://www.readthedocs.org
.. _theme documentation: https://sphinx-rtd-theme.readthedocs.io/en/latest/

Installation
============

This theme is distributed on PyPI_ and can be installed with ``pip``:

.. code:: console

   $ pip install sphinx-rtd-theme

To use the theme in your Sphinx project, you will need to add the following to
your ``conf.py`` file:

.. code:: python

    import sphinx_rtd_theme

    extensions = [
        ...
        "sphinx_rtd_theme",
    ]

    html_theme = "sphinx_rtd_theme"

For more information read the full documentation on `installing the theme`_

.. _PyPI: https://pypi.python.org/pypi/sphinx_rtd_theme
.. _installing the theme: https://sphinx-rtd-theme.readthedocs.io/en/latest/installing.html

Configuration
=============

This theme is highly customizable on both the page level and on a global level.
To see all the possible configuration options, read the documentation on
`configuring the theme`_.

.. _configuring the theme: https://sphinx-rtd-theme.readthedocs.io/en/latest/configuring.html

Contributing
============

If you would like to help modify or translate the theme, you'll find more
information on contributing in our `contributing guide`_.

.. _contributing guide: https://sphinx-rtd-theme.readthedocs.io/en/latest/contributing.html