Skip to content

Commit 46a30df

Browse files
authored
Merge branch 'master' into davidfischer/declare-package-main
2 parents 80860e3 + ebbf3d1 commit 46a30df

File tree

11 files changed

+48
-27
lines changed

11 files changed

+48
-27
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Read the Docs Sphinx Theme
1717
:alt: Documentation Status
1818

1919
The ``sphinx_rtd_theme`` is a sphinx_ theme designed to look modern and be mobile-friendly.
20-
This theme is primary focused to be used on readthedocs.org_ but can work with your
20+
This theme is primarily focused to be used on readthedocs.org_ but can work with your
2121
own sphinx projects. To read more and see a working demo_ head over to readthedocs.org_.
2222

2323
.. _sphinx: http://www.sphinx-doc.org

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sphinx-rtd-theme",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"homepage": "https://github.com/rtfd/sphinx_rtd_theme",
55
"authors": [
66
"Dave Snider, Read the Docs, Inc. & contributors <[email protected]>"

docs/changelog.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
Changelog
44
*********
55

6-
master
6+
v0.4.1
77
======
88

9+
:Date: July 27, 2018
10+
911

1012
New Features
1113
-------------

docs/contributing.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@ you should do the following:
8080
#. Commit that change.
8181
#. Tag the release in git: ``git tag $NEW_VERSION``.
8282
#. Push the tag to GitHub: ``git push --tags origin``.
83-
#. Upload the package to PyPI: ``python setup.py sdist bdist_wheel upload``.
83+
#. Upload the package to PyPI:
84+
85+
.. code:: bash
86+
87+
$ rm -rf dist/
88+
$ python setup.py sdist bdist_wheel
89+
$ twine upload --sign --identity [email protected] dist/*
90+
8491
#. In the ``readthedocs.org`` repo, edit the ``bower.json`` file to point at the correct version
8592
(``sphinx-rtd-theme": "https://github.com/rtfd/sphinx-rtd-theme.git#$NEW_VERSION"``).
8693
#. In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sphinx_rtd_theme",
33
"main": "js/theme.js",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"private": true,
66
"devDependencies": {
77
"bower": "^1.8.4",

sass/_theme_layout.sass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Set uniform (but not relative) base font size
2+
html
3+
font-size: $base-font-size
4+
15
.wy-affix
26
position: fixed
37
top: $gutter

sphinx_rtd_theme/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66
from os import path
77

8-
__version__ = '0.4.0'
8+
__version__ = '0.4.1'
99
__version_full__ = __version__
1010

1111

sphinx_rtd_theme/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<p>
1717
{%- if show_copyright %}
1818
{%- if hasdoc('copyright') %}
19-
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
19+
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}{% endtrans %}
2020
{%- else %}
21-
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
21+
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}{% endtrans %}
2222
{%- endif %}
2323
{%- endif %}
2424

sphinx_rtd_theme/layout.html

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -188,20 +188,28 @@
188188

189189
{% if not embedded %}
190190

191-
<script type="text/javascript">
192-
var DOCUMENTATION_OPTIONS = {
193-
URL_ROOT:'{{ url_root }}',
194-
VERSION:'{{ release|e }}',
195-
LANGUAGE:'{{ language }}',
196-
COLLAPSE_INDEX:false,
197-
FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
198-
HAS_SOURCE: {{ has_source|lower }},
199-
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
200-
};
201-
</script>
202-
{%- for scriptfile in script_files %}
203-
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
204-
{%- endfor %}
191+
{# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #}
192+
{% if sphinx_version >= "1.8.0" %}
193+
<script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
194+
{%- for scriptfile in script_files %}
195+
{{ js_tag(scriptfile) }}
196+
{%- endfor %}
197+
{% else %}
198+
<script type="text/javascript">
199+
var DOCUMENTATION_OPTIONS = {
200+
URL_ROOT:'{{ url_root }}',
201+
VERSION:'{{ release|e }}',
202+
LANGUAGE:'{{ language }}',
203+
COLLAPSE_INDEX:false,
204+
FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
205+
HAS_SOURCE: {{ has_source|lower }},
206+
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
207+
};
208+
</script>
209+
{%- for scriptfile in script_files %}
210+
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
211+
{%- endfor %}
212+
{% endif %}
205213

206214
{% endif %}
207215

sphinx_rtd_theme/static/css/theme.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)