Skip to content

Commit 2c31b73

Browse files
authoredOct 12, 2022
Release 1.1.0b1 + 1.1.0b2 (bump versions with bump2version) (#1352)
* Bump to 1.1.0 using bump2version * Use PEP440 and make it a beta, i.e. "1.1.0b1" * Auto-generated package-lock.json but with version bumps * Bump to 1.1.0b2, rebuild assets
1 parent c6fa4e7 commit 2c31b73

File tree

40 files changed

+302
-330
lines changed

40 files changed

+302
-330
lines changed
 

‎docs/changelog.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Changelog
55
Development version (|development_version|)
66
===========================================
77

8-
.. |development_version| replace:: 1.1.0alpha1
8+
.. |development_version| replace:: 1.1.0b2
99

10-
.. _release-1.1.0alpha1:
10+
.. _release-1.1.0b2:
1111

12-
1.1.0alpha1
13-
===========
12+
1.1.0b2
13+
=======
1414

1515
Dependency Changes
1616
------------------

‎package-lock.json

+55-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
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": "1.0.1alpha1",
4+
"version": "1.1.0b2",
55
"scripts": {
66
"dev": "webpack-dev-server --open --config webpack.dev.js",
77
"build": "webpack --config webpack.prod.js",

‎setup.cfg

+51-50
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
[bumpversion]
2+
current_version = 1.1.0b2
3+
commit = false
4+
tag = false
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<dev>\d+))?
6+
serialize =
7+
{major}.{minor}.{patch}{release}{dev}
8+
{major}.{minor}.{patch}
9+
110
[metadata]
211
name = sphinx_rtd_theme
312
url = https://github.com/readthedocs/sphinx_rtd_theme
@@ -6,67 +15,59 @@ author = Dave Snider, Read the Docs, Inc. & contributors
615
author_email = dev@readthedocs.org
716
description = Read the Docs theme for Sphinx
817
long_description = file: README.rst
9-
project_urls =
10-
Homepage = https://sphinx-rtd-theme.readthedocs.io/
11-
Source Code = https://github.com/readthedocs/sphinx_rtd_theme
12-
Issue Tracker = https://github.com/readthedocs/sphinx_rtd_theme/issues
13-
classifiers =
14-
Framework :: Sphinx
15-
Framework :: Sphinx :: Theme
16-
Development Status :: 5 - Production/Stable
17-
License :: OSI Approved :: MIT License
18-
Environment :: Console
19-
Environment :: Web Environment
20-
Intended Audience :: Developers
21-
Programming Language :: Python :: 2.7
22-
Programming Language :: Python :: 3
23-
Programming Language :: Python :: 3.6
24-
Programming Language :: Python :: 3.7
25-
Programming Language :: Python :: 3.8
26-
Programming Language :: Python :: 3.9
27-
Programming Language :: Python :: 3.10
28-
Operating System :: OS Independent
29-
Topic :: Documentation
30-
Topic :: Software Development :: Documentation
18+
project_urls =
19+
Homepage = https://sphinx-rtd-theme.readthedocs.io/
20+
Source Code = https://github.com/readthedocs/sphinx_rtd_theme
21+
Issue Tracker = https://github.com/readthedocs/sphinx_rtd_theme/issues
22+
classifiers =
23+
Framework :: Sphinx
24+
Framework :: Sphinx :: Theme
25+
Development Status :: 5 - Production/Stable
26+
License :: OSI Approved :: MIT License
27+
Environment :: Console
28+
Environment :: Web Environment
29+
Intended Audience :: Developers
30+
Programming Language :: Python :: 2.7
31+
Programming Language :: Python :: 3
32+
Programming Language :: Python :: 3.6
33+
Programming Language :: Python :: 3.7
34+
Programming Language :: Python :: 3.8
35+
Programming Language :: Python :: 3.9
36+
Programming Language :: Python :: 3.10
37+
Operating System :: OS Independent
38+
Topic :: Documentation
39+
Topic :: Software Development :: Documentation
40+
3141
[options]
3242
include_package_data = True
3343
zip_safe = False
3444
packages = sphinx_rtd_theme
3545
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
36-
install_requires =
37-
sphinx >=1.6,<6
38-
docutils <0.18
39-
Jinja2 <3.1
40-
tests_require =
41-
pytest
46+
install_requires =
47+
sphinx >=1.6,<6
48+
docutils <0.18
49+
Jinja2 <3.1
50+
tests_require =
51+
pytest
4252

4353
[options.extras_require]
44-
dev =
45-
transifex-client
46-
sphinxcontrib-httpdomain
47-
bump2version
48-
wheel
54+
dev =
55+
transifex-client
56+
sphinxcontrib-httpdomain
57+
bump2version
58+
wheel
4959

5060
[options.entry_points]
51-
sphinx.html_themes =
52-
sphinx_rtd_theme = sphinx_rtd_theme
61+
sphinx.html_themes =
62+
sphinx_rtd_theme = sphinx_rtd_theme
5363

5464
[options.package_data]
55-
sphinx_rtd_theme =
56-
theme.conf
57-
*.html
58-
static/css/*.css
59-
static/css/fonts/*.*
60-
static/js/*.js
61-
62-
[bumpversion]
63-
current_version = 1.0.1alpha1
64-
commit = false
65-
tag = false
66-
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<dev>\d+))?
67-
serialize =
68-
{major}.{minor}.{patch}{release}{dev}
69-
{major}.{minor}.{patch}
65+
sphinx_rtd_theme =
66+
theme.conf
67+
*.html
68+
static/css/*.css
69+
static/css/fonts/*.*
70+
static/js/*.js
7071

7172
[bdist_wheel]
7273
universal = 1

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def run(self):
8686

8787

8888
setup(
89-
version='1.0.1alpha1',
89+
version='1.1.0b2',
9090
cmdclass={
9191
'update_translations': UpdateTranslationsCommand,
9292
'transifex': TransifexCommand,

‎sphinx_rtd_theme/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ def config_initiated(app, config):
3131
_('The canonical_url option is deprecated, use the html_baseurl option from Sphinx instead.')
3232
)
3333

34+
35+
def extend_html_context(app, pagename, templatename, context, doctree):
36+
# Add ``sphinx_version_info`` tuple for use in Jinja templates
37+
context['sphinx_version_info'] = sphinx_version
38+
39+
3440
# See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
3541
def setup(app):
3642
if python_version[0] < 3:
@@ -60,4 +66,7 @@ def setup(app):
6066
else:
6167
app.config.html_add_permalinks = "\uf0c1"
6268

69+
# Extend the default context when rendering the templates.
70+
app.connect("html-page-context", extend_html_context)
71+
6372
return {'parallel_read_safe': True, 'parallel_write_safe': True}

‎sphinx_rtd_theme/layout.html

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %}
1010
{%- set sphinx_writer = 'writer-html5' if html5_doctype else 'writer-html4' -%}
1111

12-
{# Build sphinx_version_info tuple from sphinx_version string in pure Jinja #}
13-
{%- set (_ver_major, _ver_minor) = (sphinx_version.split('.') | list)[:2] | map('int') -%}
14-
{%- set sphinx_version_info = (_ver_major, _ver_minor, -1) -%}
15-
1612
<!DOCTYPE html>
1713
<html class="{{ sphinx_writer }}" lang="{{ lang_attr }}" >
1814
<head>
-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.