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
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
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.
192
189
It outputs 2 levels of depth, which should give your visitors a high level of access to your
193
190
docs. If no toctrees are set the theme reverts to sphinx's usual local toctree.
194
191
@@ -217,30 +214,30 @@ of a front-end developer (vs. that of a python developer). That means installing
217
214
Set up your environment
218
215
-----------------------
219
216
220
-
1. Install sphinx_ into a virtual environment.
217
+
#. Install sphinx_ into a virtual environment.
221
218
222
-
.. code::
219
+
.. code::bash
223
220
224
-
pip install sphinx
221
+
pip install sphinx
225
222
226
-
2. Install sass
223
+
#. Install sass.
227
224
228
-
.. code::
225
+
.. code::bash
229
226
230
-
gem install sass
227
+
gem install sass
231
228
232
-
2. Install node, bowerand grunt.
229
+
#. Install node, bower, grunt, and theme dependencies.
233
230
234
-
.. code::
231
+
.. code::bash
235
232
236
-
// Install node
237
-
brew install node
233
+
# Install node
234
+
brew install node
238
235
239
-
// Install bower and grunt
240
-
npm install -g bower grunt-cli
236
+
# Install bower and grunt
237
+
npm install -g bower grunt-cli
241
238
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
244
241
245
242
Now that our environment is set up, make sure you're in your virtual environment, go to
246
243
this repository in your terminal and run grunt:
@@ -249,13 +246,13 @@ this repository in your terminal and run grunt:
249
246
250
247
grunt
251
248
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**:
253
250
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.
259
256
260
257
Before you create an issue
261
258
--------------------------
@@ -274,14 +271,14 @@ Releasing the Theme
274
271
When you release a new version,
275
272
you should do the following:
276
273
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.
0 commit comments