Skip to content

Commit

Permalink
Merge branch 'master' into docutils0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nienn committed Aug 12, 2021
2 parents 24e0374 + 7500f33 commit ce74456
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 18 deletions.
7 changes: 3 additions & 4 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
Changelog
*********

master
======
Development version (|development_version|)
===========================================

v1.0.0
======
.. |development_version| replace:: 1.0.0alpha1

Incompatible Changes
--------------------
Expand Down
4 changes: 4 additions & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,8 @@ To release a new version of the theme, core team will take the following steps:
$ python setup.py sdist bdist_wheel
$ twine upload --sign --identity security@readthedocs.org dist/*
#. Finally, open a new pull request updating the development release version to
the next patch by running ``bump2version patch``. Open a pull request with
this change.

.. _PEP440: https://www.python.org/dev/peps/pep-0440/
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sphinx_rtd_theme",
"main": "js/theme.js",
"version": "0.5.2",
"version": "1.0.0alpha1",
"scripts": {
"dev": "webpack-dev-server --open --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.5.2
current_version = 1.0.0alpha1
commit = false
tag = false
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<dev>\d+))?
Expand Down Expand Up @@ -53,4 +53,6 @@ replace = "version": "{new_version}",
search = "version": "{current_version}",
replace = "version": "{new_version}",

[bumpversion:file:docs/conf.py]
[bumpversion:file:docs/changelog.rst]
search = .. |development_version| replace:: {current_version}
replace = .. |development_version| replace:: {new_version}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def run(self):

setup(
name='sphinx_rtd_theme',
version='0.5.2',
version='1.0.0alpha1',
url='https://github.com/readthedocs/sphinx_rtd_theme',
license='MIT',
author='Dave Snider, Read the Docs, Inc. & contributors',
Expand Down
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from sphinx.util.logging import getLogger


__version__ = '0.5.2'
__version__ = '1.0.0alpha1'
__version_full__ = __version__

logger = getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
{#- Translators: "theme" refers to a theme for Sphinx, which alters the appearance of the generated documenation #}
<a href="https://github.com/readthedocs/sphinx_rtd_theme">{% trans %}theme{% endtrans %}</a>
{#- Translators: this is always used as "provided by Read the Docs", and should not imply Read the Docs is an author of the generated documentation. #}
{%- trans %}provided by {{ readthedocs_web }}{% endtrans %}.
{% trans %}provided by {{ readthedocs_web }}{% endtrans %}.
{% endif %}

{%- block extrafooter %} {% endblock %}
Expand Down
4 changes: 2 additions & 2 deletions sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions src/sass/_theme_rst.sass
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
@extend h2

// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
h1, h2, h3, h4, h5, h6, dl dt, p, p.caption, table > caption, .code-block-caption
h1, h2, h3, h4, h5, h6, dl dt, p, p.caption, table > caption, .code-block-caption, .eqno
.headerlink
opacity: 0
font-size: 14px
Expand Down Expand Up @@ -277,6 +277,15 @@
.hlist
width: 100%

// Definition lists term/classifier separator
// Adds a separator for Sphinx > 1.x as a pseudo-element
// and hides the hardcoded separator from Sphinx 1.x
dl dt span.classifier
&:before
content: " : "
dl dt span.classifier-delimiter
display: none !important

// The html4 writer outputs the citation and footnotes as a table, and the
// html5 writer outputs these as a definition list. We will use the fairly
// well supported css `grid` attribute to make these back into a table
Expand All @@ -295,9 +304,6 @@
vertical-align: top
// HTML5 writer
html.writer-html5 &
dl dt span.classifier
&:before
content: " : "
dl.footnote,
dl.field-list
display: grid
Expand Down

0 comments on commit ce74456

Please sign in to comment.