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
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.
200
197
It outputs 2 levels of depth, which should give your visitors a high level of access to your
201
198
docs. If no toctrees are set the theme reverts to sphinx's usual local toctree.
202
199
@@ -225,30 +222,30 @@ of a front-end developer (vs. that of a python developer). That means installing
225
222
Set up your environment
226
223
-----------------------
227
224
228
-
1. Install sphinx_ into a virtual environment.
229
-
230
-
.. code::
225
+
#. Install sphinx_ into a virtual environment.
231
226
232
-
pip install sphinx
227
+
.. code:: bash
228
+
229
+
pip install sphinx sphinxcontrib-httpdomain
233
230
234
-
2. Install sass
231
+
#. Install sass.
235
232
236
-
.. code::
233
+
.. code::bash
237
234
238
-
gem install sass
235
+
gem install sass
239
236
240
-
2. Install node, bowerand grunt.
237
+
#. Install node, bower, grunt, and theme dependencies.
241
238
242
-
.. code::
239
+
.. code::bash
243
240
244
-
// Install node
245
-
brew install node
241
+
# Install node
242
+
brew install node
246
243
247
-
// Install bower and grunt
248
-
npm install -g bower grunt-cli
244
+
# Install bower and grunt
245
+
npm install -g bower grunt-cli
249
246
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
252
249
253
250
Now that our environment is set up, make sure you're in your virtual environment, go to
254
251
this repository in your terminal and run grunt:
@@ -257,13 +254,13 @@ this repository in your terminal and run grunt:
257
254
258
255
grunt
259
256
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**:
261
258
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.
267
264
268
265
Before you create an issue
269
266
--------------------------
@@ -282,14 +279,14 @@ Releasing the Theme
282
279
When you release a new version,
283
280
you should do the following:
284
281
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.
0 commit comments