Skip to content

Commit

Permalink
Merge branch 'master' into blendify/kbd
Browse files Browse the repository at this point in the history
  • Loading branch information
Blendify committed Apr 3, 2021
2 parents 9b600e3 + aa28eec commit a5b0dc2
Show file tree
Hide file tree
Showing 13 changed files with 1,309 additions and 1,697 deletions.
4 changes: 3 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
version: 2

python:
version: 3
version: 3.8
install:
- requirements: docs/requirements.txt
- method: pip
path: .

sphinx:
configuration: docs/conf.py
34 changes: 34 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,40 @@ Changelog
master
======

v1.0.0
======

Incompatible Changes
--------------------

* The minimum supported python version is now 2.7 or 3.4 and greater (#1093)
* The minimum supported Sphinx version is now 1.6 (#1091)

Deprecated
----------

* Support for sphinx's html4 writer is deprecated and will be removed in version 2.0 (#1091)

Other Changes
-------------

* Update npm development dependencies (#1096)
* Don't require npm to build from source (#1039)
* Use regular toctree instead of toc for singlehtml builder (#507)
* Templates: Cleanup Whitespace (#1060)

Fixes
-----

* Javascript: Add support for deep toc levels (#1089)
* Use Proper Sass Syntax (#1069)
* Nav: Fix right padding on level2+ (#1068)
* Fix Nav Buttons Size (#1067)
* Fix: wrap inline literals (#1050)
* Fix aria label (#1056)
* Respect tab order for prev/next buttons (#1051)
* Nav: Don't toggle terminal nodes (#1049)

v0.5.1
======

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

intersphinx_mapping = {
'rtd': ('https://docs.readthedocs.io/en/stable/', None),
'sphinx': ('https://www.sphinx-doc.org/en/stable/', None),
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
}

html_theme = 'sphinx_rtd_theme'
Expand Down
80 changes: 40 additions & 40 deletions docs/configuring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,49 +37,49 @@ documentation navigation.

.. confval:: collapse_navigation

With this enabled, navigation entries are not expandable -- the ``[+]``
icons next to each entry are removed.

:type: boolean
:default: ``True``

With this enabled, navigation entries are not expandable -- the ``[+]``
icons next to each entry are removed.
.. note::
Setting :confval:`collapse_navigation` to ``False`` and using a high value
for :confval:`navigation_depth` on projects with many files and a deep file
structure can cause long compilation times and can result in HTML files that
are significantly larger in file size.

.. confval:: sticky_navigation

Scroll the navigation with the main page content as you scroll the page.

:type: boolean
:default: ``True``

Scroll the navigation with the main page content as you scroll the page.

.. confval:: navigation_depth

:type: integer
:default: ``4``

The maximum depth of the table of contents tree. Set
this to ``-1`` to allow unlimited depth.

.. confval:: includehidden
:type: integer
:default: ``4``

:type: boolean
:default: ``True``
.. confval:: includehidden

Specifies if the navigation includes hidden table(s) of contents -- that is,
any :rst:dir:`sphinx:toctree` directive that is marked with the ``:hidden:``
option.

.. confval:: titles_only

:type: boolean
:default: False
:default: ``True``

.. confval:: titles_only

When enabled, page subheadings are not included in the
navigation.

.. note::
Setting :confval:`collapse_navigation` to ``False`` and using a high value
for :confval:`navigation_depth` on projects with many files and a deep file
structure can cause long compilation times and can result in HTML files that
are significantly larger in file size.
:type: boolean
:default: False

.. _table of contents configuration options: http://www.sphinx-doc.org/en/stable/templating.html#toctree

Expand All @@ -96,28 +96,28 @@ Miscellaneous options

.. confval:: analytics_id

:type: string

If specified, Google Analytics' javascript is included in your pages.
Set the value to the ID provided to you by google (like ``UA-XXXXXXX``).

:type: string

.. confval:: analytics_anonymize_ip

Anonymize visitor IP addresses in Google Analytics.

:type: boolean
:default: ``False``

Anonymize visitor IP addresses in Google Analytics.

.. confval:: canonical_url

:type: URL

This will specify a `canonical URL`_ meta link element to tell search
engines which URL should be ranked as the primary URL for your
documentation. This is important if you have multiple URLs that your
documentation is available through. The URL points to the root path of the
documentation and requires a trailing slash.

:type: URL

.. deprecated:: 0.6.0

Use :confval:`sphinx:html_baseurl` instead.
Expand All @@ -126,51 +126,52 @@ Miscellaneous options

.. confval:: display_version

If ``True``, the version number is shown at the top of the sidebar.

:type: boolean
:default: ``True``

If ``True``, the version number is shown at the top of the sidebar.

.. confval:: logo_only

:type: boolean
:default: ``False``

Only display the logo image, do not display the project name at the top of
the sidebar

.. confval:: prev_next_buttons_location
:type: boolean
:default: ``False``

:type: string
:default: ``bottom``
.. confval:: prev_next_buttons_location

Location to display :guilabel:`Next` and :guilabel:`Previous` buttons. This
can be either ``bottom``, ``top``, ``both`` , or ``None``.

:type: string
:default: ``bottom``

.. confval:: style_external_links

Add an icon next to external links.

:type: boolean
:default: ``False``

Add an icon next to external links.

.. confval:: vcs_pageview_mode

:type: string
:default: ``blob`` or ``view``

Changes how to view files when using ``display_github``, ``display_gitlab``,
etc. When using GitHub or GitLab this can be: ``blob`` (default), ``edit``,
or ``raw``. On Bitbucket, this can be either: ``view`` (default) or
``edit``.

:type: string
:default: ``blob`` or ``view``

.. confval:: style_nav_header_background

Changes the background of the search area in the navigation bar. The value
can be anything valid in a CSS `background` property.

:type: string
:default: ``#2980B9``

Changes the background of the search area in the navigation bar. The value
can be anything valid in a CSS `background` property.

File-wide metadata
==================
Expand All @@ -190,7 +191,6 @@ The following options can be used as :ref:`file-wide metadata

Force the :guilabel:`Edit on GitLab` button to use the configured URL.


Other configuration
===================

Expand Down
10 changes: 5 additions & 5 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ To release a new version of the theme, core team will take the following steps:
#. Update the changelog (``docs/changelog.rst``) with the version information.
#. Run ``python setup.py update_translations`` to compile new translation files
and update Transifex.
#. Run ``python setup.py build`` to rebuild all the theme assets and the Python
#. Run ``python setup.py build_assets`` to rebuild all the theme assets and the Python
package.
#. Commit these changes.
#. Tag the release in git: ``git tag $NEW_VERSION``.
#. Push the tag to GitHub: ``git push --tags origin``.
#. Upload the package to PyPI:

.. code:: console
.. code:: console
$ rm -rf dist/
$ python setup.py sdist bdist_wheel
$ twine upload --sign --identity security@readthedocs.org dist/*
$ rm -rf dist/
$ python setup.py sdist bdist_wheel
$ twine upload --sign --identity security@readthedocs.org dist/*
.. _PEP440: https://www.python.org/dev/peps/pep-0440/
22 changes: 18 additions & 4 deletions docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ In your ``conf.py`` file:
.. note::
Adding this theme as an extension is what enables localization of theme
strings in your translated output. If these strings are not translated in
your output, either we lack the localized strings for your locale, or you
are using an old version of the theme.

Adding this theme as an extension is what enables localization of theme
strings in your translated output. If these strings are not translated in
your output, either we lack the localized strings for your locale, or you
are using an old version of the theme.

Via Git or Download
===================

.. warning::

Installing directly from the repo is deprecated.
Static assets won't be included in the repo in a future release.

Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into your documentation at
``docs/_themes/sphinx_rtd_theme`` then add the following two settings to your Sphinx
``conf.py`` file:
Expand All @@ -39,3 +45,11 @@ Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into you
html_theme = "sphinx_rtd_theme"
html_theme_path = ["_themes", ]
Compatibility
=============

``sphinx_rtd_theme`` depends on at least Sphinx 1.6 although,
we recommend at least Sphinx 2 to take advantage of the html5 writer.
The html4 writer is still supported however,
it is deprecated and support will be removed in the near future.
Loading

0 comments on commit a5b0dc2

Please sign in to comment.