Skip to content

Commit 4688389

Browse files
authored
Merge branch 'master' into Blendify/fix-717
2 parents 03b4ef6 + 3db4e2f commit 4688389

18 files changed

+1362
-1747
lines changed

.readthedocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
version: 2
22

33
python:
4-
version: 3
4+
version: 3.8
55
install:
66
- requirements: docs/requirements.txt
7+
- method: pip
8+
path: .
79

810
sphinx:
911
configuration: docs/conf.py

docs/changelog.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,50 @@ Changelog
55
master
66
======
77

8+
v1.0.0
9+
======
10+
11+
Incompatible Changes
12+
--------------------
13+
14+
* The minimum supported python version is now 2.7 or 3.4 and greater (#1093)
15+
* The minimum supported Sphinx version is now 1.6 (#1091)
16+
17+
Deprecated
18+
----------
19+
20+
* Support for sphinx's html4 writer is deprecated and will be removed in version 2.0 (#1091)
21+
22+
Other Changes
23+
-------------
24+
25+
* Update npm development dependencies (#1096)
26+
* Don't require npm to build from source (#1039)
27+
* Use regular toctree instead of toc for singlehtml builder (#507)
28+
* Templates: Cleanup Whitespace (#1060)
29+
30+
Fixes
31+
-----
32+
33+
* Javascript: Add support for deep toc levels (#1089)
34+
* Use Proper Sass Syntax (#1069)
35+
* Nav: Fix right padding on level2+ (#1068)
36+
* Fix Nav Buttons Size (#1067)
37+
* Fix: wrap inline literals (#1050)
38+
* Fix aria label (#1056)
39+
* Respect tab order for prev/next buttons (#1051)
40+
* Nav: Don't toggle terminal nodes (#1049)
41+
42+
v0.5.2
43+
======
44+
45+
:Date: April 5, 2021
46+
47+
.. note:: This commit will not be in ``master``, but was branched directly off ``0.5.1`` to minimize issues.
48+
The next full release will contain all PR's previously merged.
49+
50+
* Depend on docutils < 0.17 (#1113)
51+
852
v0.5.1
953
======
1054

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
sys.path.append(os.path.abspath('./demo/'))
1111

1212
import sphinx_rtd_theme
13+
from sphinx_rtd_theme import __version__ as theme_version
14+
from sphinx_rtd_theme import __version_full__ as theme_version_full
1315
from sphinx.locale import _
1416

1517
project = u'Read the Docs Sphinx Theme'
1618
slug = re.sub(r'\W+', '-', project.lower())
17-
version = '0.5.1'
18-
release = '0.5.1'
19+
version = theme_version
20+
release = theme_version_full
1921
author = u'Dave Snider, Read the Docs, Inc. & contributors'
2022
copyright = author
2123
language = 'en'
@@ -41,7 +43,7 @@
4143

4244
intersphinx_mapping = {
4345
'rtd': ('https://docs.readthedocs.io/en/stable/', None),
44-
'sphinx': ('https://www.sphinx-doc.org/en/stable/', None),
46+
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
4547
}
4648

4749
html_theme = 'sphinx_rtd_theme'

docs/configuring.rst

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -37,49 +37,49 @@ documentation navigation.
3737

3838
.. confval:: collapse_navigation
3939

40+
With this enabled, navigation entries are not expandable -- the ``[+]``
41+
icons next to each entry are removed.
42+
4043
:type: boolean
4144
:default: ``True``
4245

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

4652
.. confval:: sticky_navigation
4753

54+
Scroll the navigation with the main page content as you scroll the page.
55+
4856
:type: boolean
4957
:default: ``True``
5058

51-
Scroll the navigation with the main page content as you scroll the page.
52-
5359
.. confval:: navigation_depth
5460

55-
:type: integer
56-
:default: ``4``
57-
5861
The maximum depth of the table of contents tree. Set
5962
this to ``-1`` to allow unlimited depth.
6063

61-
.. confval:: includehidden
64+
:type: integer
65+
:default: ``4``
6266

63-
:type: boolean
64-
:default: ``True``
67+
.. confval:: includehidden
6568

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

70-
.. confval:: titles_only
71-
7273
:type: boolean
73-
:default: False
74+
:default: ``True``
75+
76+
.. confval:: titles_only
7477

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

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

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

@@ -96,28 +96,28 @@ Miscellaneous options
9696

9797
.. confval:: analytics_id
9898

99-
:type: string
100-
10199
If specified, Google Analytics' javascript is included in your pages.
102100
Set the value to the ID provided to you by google (like ``UA-XXXXXXX``).
103101

102+
:type: string
103+
104104
.. confval:: analytics_anonymize_ip
105105

106+
Anonymize visitor IP addresses in Google Analytics.
107+
106108
:type: boolean
107109
:default: ``False``
108110

109-
Anonymize visitor IP addresses in Google Analytics.
110-
111111
.. confval:: canonical_url
112112

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

119+
:type: URL
120+
121121
.. deprecated:: 0.6.0
122122

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

127127
.. confval:: display_version
128128

129+
If ``True``, the version number is shown at the top of the sidebar.
130+
129131
:type: boolean
130132
:default: ``True``
131133

132-
If ``True``, the version number is shown at the top of the sidebar.
133-
134134
.. confval:: logo_only
135135

136-
:type: boolean
137-
:default: ``False``
138-
139136
Only display the logo image, do not display the project name at the top of
140137
the sidebar
141138

142-
.. confval:: prev_next_buttons_location
139+
:type: boolean
140+
:default: ``False``
143141

144-
:type: string
145-
:default: ``bottom``
142+
.. confval:: prev_next_buttons_location
146143

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

147+
:type: string
148+
:default: ``bottom``
149+
150150
.. confval:: style_external_links
151151

152+
Add an icon next to external links.
153+
152154
:type: boolean
153155
:default: ``False``
154156

155-
Add an icon next to external links.
156-
157157
.. confval:: vcs_pageview_mode
158158

159-
:type: string
160-
:default: ``blob`` or ``view``
161-
162159
Changes how to view files when using ``display_github``, ``display_gitlab``,
163160
etc. When using GitHub or GitLab this can be: ``blob`` (default), ``edit``,
164161
or ``raw``. On Bitbucket, this can be either: ``view`` (default) or
165162
``edit``.
166163

164+
:type: string
165+
:default: ``blob`` or ``view``
166+
167167
.. confval:: style_nav_header_background
168168

169+
Changes the background of the search area in the navigation bar. The value
170+
can be anything valid in a CSS `background` property.
171+
169172
:type: string
170173
:default: ``#2980B9``
171174

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

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

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

193-
194194
Other configuration
195195
===================
196196

docs/contributing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ To release a new version of the theme, core team will take the following steps:
101101
#. Update the changelog (``docs/changelog.rst``) with the version information.
102102
#. Run ``python setup.py update_translations`` to compile new translation files
103103
and update Transifex.
104-
#. Run ``python setup.py build`` to rebuild all the theme assets and the Python
104+
#. Run ``python setup.py build_assets`` to rebuild all the theme assets and the Python
105105
package.
106106
#. Commit these changes.
107107
#. Tag the release in git: ``git tag $NEW_VERSION``.
108108
#. Push the tag to GitHub: ``git push --tags origin``.
109109
#. Upload the package to PyPI:
110110

111-
.. code:: console
111+
.. code:: console
112112
113-
$ rm -rf dist/
114-
$ python setup.py sdist bdist_wheel
115-
$ twine upload --sign --identity [email protected] dist/*
113+
$ rm -rf dist/
114+
$ python setup.py sdist bdist_wheel
115+
$ twine upload --sign --identity [email protected] dist/*
116116
117117
.. _PEP440: https://www.python.org/dev/peps/pep-0440/

docs/installing.rst

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,20 @@ In your ``conf.py`` file:
2323
2424
2525
.. note::
26-
Adding this theme as an extension is what enables localization of theme
27-
strings in your translated output. If these strings are not translated in
28-
your output, either we lack the localized strings for your locale, or you
29-
are using an old version of the theme.
26+
27+
Adding this theme as an extension is what enables localization of theme
28+
strings in your translated output. If these strings are not translated in
29+
your output, either we lack the localized strings for your locale, or you
30+
are using an old version of the theme.
3031

3132
Via Git or Download
3233
===================
3334

35+
.. warning::
36+
37+
Installing directly from the repo is deprecated.
38+
Static assets won't be included in the repo in a future release.
39+
3440
Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into your documentation at
3541
``docs/_themes/sphinx_rtd_theme`` then add the following two settings to your Sphinx
3642
``conf.py`` file:
@@ -39,3 +45,11 @@ Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into you
3945
4046
html_theme = "sphinx_rtd_theme"
4147
html_theme_path = ["_themes", ]
48+
49+
Compatibility
50+
=============
51+
52+
``sphinx_rtd_theme`` depends on at least Sphinx 1.6 although,
53+
we recommend at least Sphinx 2 to take advantage of the html5 writer.
54+
The html4 writer is still supported however,
55+
it is deprecated and support will be removed in the near future.

0 commit comments

Comments
 (0)