Skip to content

Commit c6d926e

Browse files
authored
Merge branch 'master' into setuptools-entry-points
2 parents 1056aea + 1dc21db commit c6d926e

File tree

1 file changed

+35
-38
lines changed

1 file changed

+35
-38
lines changed

README.rst

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@ 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

4343
.. code:: python
4444
4545
import sphinx_rtd_theme
46-
4746
html_theme = "sphinx_rtd_theme"
48-
4947
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
5048
5149
or (since master):
@@ -59,7 +57,7 @@ Via git or download
5957

6058
Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into your documentation at
6159
``docs/_themes/sphinx_rtd_theme`` then add the following two settings to your Sphinx
62-
conf.py file:
60+
``conf.py`` file:
6361

6462
.. code:: python
6563
@@ -116,7 +114,7 @@ master
116114
* Hide Edit links on auto created pages
117115
* Align ``.. centered::`` text to the center
118116
* Increase contrast for footnotes
119-
* Add language to the JS output variable
117+
* Add language to the JS output variable
120118
* Include the lato italics font with the theme
121119
* Fix padding on field lists
122120
* Add setuptools entry point allowing to use ``sphinx_rtd_theme`` as
@@ -157,8 +155,7 @@ v0.2.0
157155
v0.1.10-alpha
158156
-------------
159157

160-
.. note::
161-
This is a pre-release version
158+
.. note:: This is a pre-release version
162159

163160
* Removes Sphinx dependency
164161
* Fixes hamburger on mobile display
@@ -182,7 +179,7 @@ v0.1.9
182179
* Fixed modernizr URL
183180
* Small display style changes on code blocks, figure captions, and nav elements
184181

185-
.. _#215: https://github.com/snide/sphinx_rtd_theme/pull/215
182+
.. _#215: https://github.com/rtfd/sphinx_rtd_theme/pull/215
186183

187184
v0.1.8
188185
------
@@ -196,7 +193,7 @@ v0.1.8
196193
How the Table of Contents builds
197194
================================
198195

199-
Currently the left menu will build based upon any ``toctree(s)`` defined in your index.rst file.
196+
Currently the left menu will build based upon any ``toctree(s)`` defined in your ``index.rst`` file.
200197
It outputs 2 levels of depth, which should give your visitors a high level of access to your
201198
docs. If no toctrees are set the theme reverts to sphinx's usual local toctree.
202199

@@ -225,30 +222,30 @@ of a front-end developer (vs. that of a python developer). That means installing
225222
Set up your environment
226223
-----------------------
227224

228-
1. Install sphinx_ into a virtual environment.
229-
230-
.. code::
225+
#. Install sphinx_ into a virtual environment.
231226

232-
pip install sphinx
227+
.. code:: bash
228+
229+
pip install sphinx sphinxcontrib-httpdomain
233230
234-
2. Install sass
231+
#. Install sass.
235232

236-
.. code::
233+
.. code:: bash
237234
238-
gem install sass
235+
gem install sass
239236
240-
2. Install node, bower and grunt.
237+
#. Install node, bower, grunt, and theme dependencies.
241238

242-
.. code::
239+
.. code:: bash
243240
244-
// Install node
245-
brew install node
241+
# Install node
242+
brew install node
246243
247-
// Install bower and grunt
248-
npm install -g bower grunt-cli
244+
# Install bower and grunt
245+
npm install -g bower grunt-cli
249246
250-
// Now that everything is installed, let's install the theme dependecies.
251-
npm install
247+
# Now that everything is installed, let's install the theme dependencies.
248+
npm install
252249
253250
Now that our environment is set up, make sure you're in your virtual environment, go to
254251
this repository in your terminal and run grunt:
@@ -257,13 +254,13 @@ this repository in your terminal and run grunt:
257254
258255
grunt
259256
260-
This default task will do the following **very cool things that make it worth the trouble**.
257+
This default task will do the following **very cool things that make it worth the trouble**:
261258

262-
1. It'll install and update any bower dependencies.
263-
2. It'll run sphinx and build new docs.
264-
3. It'll watch for changes to the sass files and build css from the changes.
265-
4. It'll rebuild the sphinx docs anytime it notices a change to .rst, .html, .js
266-
or .css files.
259+
#. Install and update any bower dependencies.
260+
#. Run sphinx and build new docs.
261+
#. Watch for changes to the sass files and build css from the changes.
262+
#. Rebuild the sphinx docs anytime it notices a change to ``.rst``, ``.html``, ``.js``
263+
or ``.css`` files.
267264

268265
Before you create an issue
269266
--------------------------
@@ -282,14 +279,14 @@ Releasing the Theme
282279
When you release a new version,
283280
you should do the following:
284281

285-
* Bump the version in ``sphinx_rtd_theme/__init__.py`` - we try to follow `semver <http://semver.org/>`_, so be careful with breaking changes.
286-
* Run a ``grunt build`` to rebuild all the theme assets.
287-
* Commit that change
288-
* Tag the release in git: ``git tag $NEW_VERSION``.
289-
* Push the tag to GitHub: ``git push --tags origin``
290-
* Upload the package to PyPI: ``python setup.py sdist bdist_wheel upload``
291-
* 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"``)
292-
* In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files
282+
#. Bump the version in ``sphinx_rtd_theme/__init__.py`` we try to follow `semver <http://semver.org/>`_, so be careful with breaking changes.
283+
#. Run a ``grunt build`` to rebuild all the theme assets.
284+
#. Commit that change.
285+
#. Tag the release in git: ``git tag $NEW_VERSION``.
286+
#. Push the tag to GitHub: ``git push --tags origin``.
287+
#. Upload the package to PyPI: ``python setup.py sdist bdist_wheel upload``.
288+
#. 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"``).
289+
#. In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files.
293290

294291
TODO
295292
====

0 commit comments

Comments
 (0)