Skip to content

Commit 93e6fe2

Browse files
benjaomingBlendify
authored andcommitted
Cleanup README.rst * Refactor list items. * Use autonumbering in lists to prevent errors. * Indent code inside list items to make it belong to those items. * Use inline-code style for filenames. * Update link to a pull request with new repo path. * Fix a few typos and punctuation. * Use .. code:: bash for proper highlighting * Use # for comments in bash * Use ordered list for step-by-step instuctions. * Make all code blocks 4 space indents
1 parent 71b90d0 commit 93e6fe2

File tree

1 file changed

+34
-37
lines changed

1 file changed

+34
-37
lines changed

README.rst

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,22 @@ 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
Via git or download
5250
-------------------
5351

5452
Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into your documentation at
5553
``docs/_themes/sphinx_rtd_theme`` then add the following two settings to your Sphinx
56-
conf.py file:
54+
``conf.py`` file:
5755

5856
.. code:: python
5957
@@ -110,7 +108,7 @@ master
110108
* Hide Edit links on auto created pages
111109
* Align ``.. centered::`` text to the center
112110
* Increase contrast for footnotes
113-
* Add language to the JS output variable
111+
* Add language to the JS output variable
114112
* Include the lato italics font with the theme
115113
* Fix padding on field lists
116114

@@ -149,8 +147,7 @@ v0.2.0
149147
v0.1.10-alpha
150148
-------------
151149

152-
.. note::
153-
This is a pre-release version
150+
.. note:: This is a pre-release version
154151

155152
* Removes Sphinx dependency
156153
* Fixes hamburger on mobile display
@@ -174,7 +171,7 @@ v0.1.9
174171
* Fixed modernizr URL
175172
* Small display style changes on code blocks, figure captions, and nav elements
176173

177-
.. _#215: https://github.com/snide/sphinx_rtd_theme/pull/215
174+
.. _#215: https://github.com/rtfd/sphinx_rtd_theme/pull/215
178175

179176
v0.1.8
180177
------
@@ -188,7 +185,7 @@ v0.1.8
188185
How the Table of Contents builds
189186
================================
190187

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

@@ -217,30 +214,30 @@ of a front-end developer (vs. that of a python developer). That means installing
217214
Set up your environment
218215
-----------------------
219216

220-
1. Install sphinx_ into a virtual environment.
217+
#. Install sphinx_ into a virtual environment.
221218

222-
.. code::
219+
.. code:: bash
223220
224-
pip install sphinx
221+
pip install sphinx
225222
226-
2. Install sass
223+
#. Install sass.
227224

228-
.. code::
225+
.. code:: bash
229226
230-
gem install sass
227+
gem install sass
231228
232-
2. Install node, bower and grunt.
229+
#. Install node, bower, grunt, and theme dependencies.
233230

234-
.. code::
231+
.. code:: bash
235232
236-
// Install node
237-
brew install node
233+
# Install node
234+
brew install node
238235
239-
// Install bower and grunt
240-
npm install -g bower grunt-cli
236+
# Install bower and grunt
237+
npm install -g bower grunt-cli
241238
242-
// Now that everything is installed, let's install the theme dependecies.
243-
npm install
239+
# Now that everything is installed, let's install the theme dependencies.
240+
npm install
244241
245242
Now that our environment is set up, make sure you're in your virtual environment, go to
246243
this repository in your terminal and run grunt:
@@ -249,13 +246,13 @@ this repository in your terminal and run grunt:
249246
250247
grunt
251248
252-
This default task will do the following **very cool things that make it worth the trouble**.
249+
This default task will do the following **very cool things that make it worth the trouble**:
253250

254-
1. It'll install and update any bower dependencies.
255-
2. It'll run sphinx and build new docs.
256-
3. It'll watch for changes to the sass files and build css from the changes.
257-
4. It'll rebuild the sphinx docs anytime it notices a change to .rst, .html, .js
258-
or .css files.
251+
#. Install and update any bower dependencies.
252+
#. Run sphinx and build new docs.
253+
#. Watch for changes to the sass files and build css from the changes.
254+
#. Rebuild the sphinx docs anytime it notices a change to ``.rst``, ``.html``, ``.js``
255+
or ``.css`` files.
259256

260257
Before you create an issue
261258
--------------------------
@@ -274,14 +271,14 @@ Releasing the Theme
274271
When you release a new version,
275272
you should do the following:
276273

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
274+
#. Bump the version in ``sphinx_rtd_theme/__init__.py`` we try to follow `semver <http://semver.org/>`_, so be careful with breaking changes.
275+
#. Run a ``grunt build`` to rebuild all the theme assets.
276+
#. Commit that change.
277+
#. Tag the release in git: ``git tag $NEW_VERSION``.
278+
#. Push the tag to GitHub: ``git push --tags origin``.
279+
#. Upload the package to PyPI: ``python setup.py sdist bdist_wheel upload``.
280+
#. 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"``).
281+
#. In the ``readthedocs.org`` repo, run ``gulp build`` to update the distributed theme files.
285282

286283
TODO
287284
====

0 commit comments

Comments
 (0)