@@ -43,9 +43,9 @@ you can install the dependencies in a virtualenv::
4343
4444.. note ::
4545
46- In case of windows, run ``configure --docs `` instead of this .
46+ In case of windows, run ``configure --dev `` .
4747
48- Now, this will install the following prerequisites:
48+ This will install and configure all requirements foer development including for docs development.
4949
5050- Sphinx
5151- sphinx_rtd_theme (the format theme used by ReadTheDocs)
@@ -57,21 +57,21 @@ These requirements are already present in setup.cfg and `./configure
5757Now you can build the HTML documents locally::
5858
5959 source venv/bin/activate
60- cd docs
61- make html
60+ make docs
6261
6362Assuming that your Sphinx installation was successful, Sphinx should build
6463a local instance of the documentation .html files::
6564
66- open build/html /index.html
65+ open docs/_build /index.html
6766
68- .. note ::
6967
7068 In case this command did not work, for example on Ubuntu 18.04 you may
7169 get a message like “Couldn’t get a file descriptor referring to the
7270 console”, try:
7371
74- ::
72+ source venv/bin/activate
73+ make doc8
74+ make docs-check
7575
7676 see build/html/index.html
7777
@@ -119,31 +119,26 @@ that common errors are avoided and documentation standards are enforced.
119119Travis-CI presently checks for these 3 aspects of the documentation :
120120
1211211. Successful Builds (By using ``sphinx-build ``)
122- 2. No Broken Links (By Using ``link-check ``)
123- 3. Linting Errors (By Using ``Doc8 ``)
124-
125- So run these scripts at your local system before creating a Pull Request::
122+ 2. No Broken Links (By Using ``linkcheck ``)
123+ 3. Linting Errors (By Using ``doc8 ``)
126124
127- cd docs
128- ./scripts/sphinx_build_link_check.sh
129- ./scripts/doc8_style_check.sh
125+ You myst run these scripts locally before creating a pull request::
130126
131- If you don't have permission to run the scripts, run::
127+ make doc8
128+ make check-docs
132129
133- chmod u+x ./scripts/doc8_style_check.sh
134130
135131.. _doc_style_docs8 :
136132
137- Style Checks Using ``Doc8 ``
133+ Style Checks Using ``doc8 ``
138134---------------------------
139135
140136How To Run Style Tests
141137^^^^^^^^^^^^^^^^^^^^^^
142138
143139In the project root, run the following commands::
144140
145- $ cd docs
146- $ ./scripts/doc8_style_check.sh
141+ make doc8
147142
148143A sample output is::
149144
@@ -168,6 +163,7 @@ A sample output is::
168163Now fix the errors and run again till there isn't any style error in the
169164documentation.
170165
166+
171167What is Checked?
172168^^^^^^^^^^^^^^^^
173169
@@ -259,6 +255,7 @@ create a link to the local label.
259255For more information, refer this tutorial named `Using Intersphinx
260256<https://my-favorite-documentation-test.readthedocs.io/en/latest/using_intersphinx.html> `_.
261257
258+
262259.. _doc_style_conv :
263260
264261Style Conventions for the Documentaion
@@ -350,6 +347,7 @@ Style Conventions for the Documentaion
350347 and then included to eliminate redundancy, as these are frequently used
351348 in multiple files.
352349
350+
353351Converting from Markdown
354352------------------------
355353
0 commit comments