You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Download the package or add it to your ``requirements.txt`` file:
36
36
37
37
.. code:: bash
38
38
39
-
$ pip install sphinx_rtd_theme
39
+
pip install sphinx_rtd_theme
40
40
41
41
In your ``conf.py`` file:
42
42
@@ -268,6 +268,21 @@ way for me to ignore your request. RST unfortunately can spit out a lot of thing
268
268
in a lot of ways. I don't have time to research your problem for you, but I do
269
269
have time to fix the actual styling issue if you can replicate the problem for me.
270
270
271
+
Releasing the Theme
272
+
===================
273
+
274
+
When you release a new version,
275
+
you should do the following:
276
+
277
+
* Bump the version in ``sphinx_rtd_theme/__init__.py`` - we try to follow `semver <http://semver.org/>`_, so be careful with breaking changes.
278
+
* Run a ``grunt build`` to rebuild all the theme assets.
279
+
* Commit that change
280
+
* Tag the release in git: ``git tag $NEW_VERSION``.
281
+
* Push the tag to GitHub: ``git push --tags origin``
282
+
* Upload the package to PyPI: ``python setup.py sdist bdist_wheel upload``
283
+
* In the ``readthedocs.org`` repo, edit the ``bower.json`` file to point at the correct version (``sphinx-rtd-theme": "https://github.com/rtfd/sphinx-rtd-theme.git#$NEW_VERSION"``)
284
+
* In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files
0 commit comments