Skip to content

Commit aedac3d

Browse files
authored
Merge pull request #412 from rtfd/doc-theme-release
Add some basic docs around releasing the theme.
2 parents 4be9ff3 + 57a7183 commit aedac3d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Download the package or add it to your ``requirements.txt`` file:
3636

3737
.. code:: bash
3838
39-
$ pip install sphinx_rtd_theme
39+
pip install sphinx_rtd_theme
4040
4141
In your ``conf.py`` file:
4242

@@ -268,6 +268,21 @@ way for me to ignore your request. RST unfortunately can spit out a lot of thing
268268
in a lot of ways. I don't have time to research your problem for you, but I do
269269
have time to fix the actual styling issue if you can replicate the problem for me.
270270

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
285+
271286
TODO
272287
====
273288

0 commit comments

Comments
 (0)