Skip to content

Commit e11d3bd

Browse files
authored
Merge branch 'master' into blendify/kbd
2 parents e063bba + ba1cbb1 commit e11d3bd

File tree

46 files changed

+559
-547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+559
-547
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ commands:
66
parameters:
77
version:
88
type: string
9+
sphinx-version:
10+
type: string
11+
default: "16,17,18,20,21,22,23,24,30,31,32,33,34,latest"
912
steps:
1013
- checkout
1114
- run: pip install --user tox
12-
- run: tox -e "<<parameters.version>>-sphinx{16,17,18,20,21,22,23,24,30,31,32}"
15+
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
1316

1417
jobs:
1518
py27:

.github/ISSUE_TEMPLATE.md renamed to .github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'Bug, Needed: replication'
6+
assignees: ''
7+
8+
---
19

210
### Problem
311

docs/_templates/layout.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{%- extends "!layout.html" %}
22

3-
{#
3+
{#-
44

55
This template exists as a way to implement a version menu without changing what
66
the theme normally renders the menu on local builds and on builds on Read the
77
Docs. This is for local testing purposes only.
88

99
#}
1010

11-
{% block footer %}
12-
{% if not READTHEDOCS %}
13-
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
11+
{%- block footer %}
12+
{%- if not READTHEDOCS %}
13+
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}">
1414
<span class="rst-current-version" data-toggle="rst-current-version">
1515
<span class="fa fa-book"> Read the Docs</span>
1616
v: latest
@@ -19,15 +19,15 @@
1919
<div class="rst-other-versions">
2020
<dl>
2121
<dt>{{ _('Versions') }}</dt>
22-
{% if test_versions %}
23-
{% for version in test_versions %}
22+
{%- if test_versions %}
23+
{%- for version in test_versions %}
2424
<dd><a href="#">{{ version }}</a></dd>
25-
{% endfor %}
26-
{% else %}
25+
{%- endfor %}
26+
{%- else %}
2727
<dd><a href="#">latest</a></dd>
2828
<dd><a href="#">1.0</a></dd>
2929
<dd><a href="#">1.1</a></dd>
30-
{% endif %}
30+
{%- endif %}
3131
</dl>
3232
<dl>
3333
<dt>{{ _('Downloads') }}</dt>
@@ -36,7 +36,7 @@
3636
<dd><a href="#">HTML</a></dd>
3737
</dl>
3838
<dl>
39-
{# Translators: The phrase "Read the Docs" is not translated #}
39+
{#- Translators: The phrase "Read the Docs" is not translated #}
4040
<dt>{{ _('On Read the Docs') }}</dt>
4141
<dd>
4242
<a href="#">{{ _('Project Home') }}</a>
@@ -51,5 +51,5 @@
5151
</dl>
5252
</div>
5353
</div>
54-
{% endif %}
55-
{% endblock %}
54+
{%- endif %}
55+
{%- endblock %}

docs/changelog.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,35 @@ Changelog
55
master
66
======
77

8-
Other Changes
9-
-------------
8+
v0.5.1
9+
======
10+
11+
:Date: January 4, 2021
12+
13+
Fixes
14+
-----
1015

11-
* The ``canonical_url`` option was deprecated in favor of Sphinx's ``html_baseurl``.
16+
* Set ``url_root`` properly on index (#1025)
17+
* Do not load ``language_data.js`` in non-search pages (#1021)
18+
* Hide the search box on any ``singlehtml`` like builder (#975)
19+
* Fix ``vcs_pageview_mode`` template parameter (#1010)
20+
* Mark nex/prev icons as aria-hidden (#1007)
21+
* Use well-formed XML syntax (#1006)
22+
* Footer: show both ``commit`` and ``last_updated`` if available (#897)
23+
* Search page: don't show "edit on" links (#935)
1224

1325
New Features
1426
------------
1527

1628
* New theme option to enable anonymous ip addresses when using Google Analytics (#889)
1729

30+
Other Changes
31+
-------------
32+
33+
* The ``canonical_url`` option was deprecated in favor of Sphinx's ``html_baseurl`` (#1003)
34+
* Add ``contentinfo`` block to ``footer.html`` template (#896)
35+
* Make Copyright template match sphinx's basic (#933)
36+
* Packaging: include ``bin/preinstall.js`` (#1005)
1837

1938
v0.5.0
2039
======

docs/conf.py

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,18 @@
44
import os
55
import re
66

7-
# If we are building locally, or the build on Read the Docs looks like a PR
8-
# build, prefer to use the version of the theme in this repo, not the installed
9-
# version of the theme.
10-
def is_development_build():
11-
# PR builds have an interger version
12-
re_version = re.compile(r'^[\d]+$')
13-
if 'READTHEDOCS' in os.environ:
14-
version = os.environ.get('READTHEDOCS_VERSION', '')
15-
if re_version.match(version):
16-
return True
17-
return False
18-
return True
19-
20-
if is_development_build():
21-
sys.path.insert(0, os.path.abspath('..'))
7+
# Prefer to use the version of the theme in this repo
8+
# and not the installed version of the theme.
9+
sys.path.insert(0, os.path.abspath('..'))
2210
sys.path.append(os.path.abspath('./demo/'))
2311

2412
import sphinx_rtd_theme
2513
from sphinx.locale import _
2614

2715
project = u'Read the Docs Sphinx Theme'
2816
slug = re.sub(r'\W+', '-', project.lower())
29-
version = '0.5.0'
30-
release = '0.5.0'
17+
version = '0.5.1'
18+
release = '0.5.1'
3119
author = u'Dave Snider, Read the Docs, Inc. & contributors'
3220
copyright = author
3321
language = 'en'
@@ -52,8 +40,8 @@ def is_development_build():
5240
pygments_style = 'default'
5341

5442
intersphinx_mapping = {
55-
'rtd': ('https://docs.readthedocs.io/en/latest/', None),
56-
'sphinx': ('http://www.sphinx-doc.org/en/stable/', None),
43+
'rtd': ('https://docs.readthedocs.io/en/stable/', None),
44+
'sphinx': ('https://www.sphinx-doc.org/en/stable/', None),
5745
}
5846

5947
html_theme = 'sphinx_rtd_theme'

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To release a new version of the theme, core team will take the following steps:
9696
(with regards to alpha release and development versions). The version
9797
increment should reflect these releases and any potentially breaking changes.
9898
#. New versions are by default ``alpha`` releases. If this is a release candidate,
99-
run ``bump2version --allow-dirty releast`` to update the release to an ``rc``
99+
run ``bump2version --allow-dirty release`` to update the release to an ``rc``
100100
release. If this is a final release, run the command again.
101101
#. Update the changelog (``docs/changelog.rst``) with the version information.
102102
#. Run ``python setup.py update_translations`` to compile new translation files

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "sphinx_rtd_theme",
33
"main": "js/theme.js",
4-
"version": "0.5.0",
5-
"private": true,
4+
"version": "0.5.1",
65
"scripts": {
76
"dev": "webpack-dev-server --open --config webpack.dev.js",
87
"build": "webpack --config webpack.prod.js",

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.5.0
2+
current_version = 0.5.1
33
commit = false
44
tag = false
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<dev>\d+))?

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def run(self):
8585

8686
setup(
8787
name='sphinx_rtd_theme',
88-
version='0.5.0',
88+
version='0.5.1',
8989
url='https://github.com/readthedocs/sphinx_rtd_theme',
9090
license='MIT',
9191
author='Dave Snider, Read the Docs, Inc. & contributors',

0 commit comments

Comments
 (0)