@@ -247,12 +247,42 @@ Parameters that specify a specific type require that specific input type.
247247
248248Read the Docs will automatically build the documentation for each pull
249249request. Please confirm the documentation renders correctly by following
250- the ``continuous-documentation/read-the-docs `` link within the checks
250+ the ``docs/readthedocs.org:pvlib-python `` link within the checks
251251status box at the bottom of the pull request.
252252
253- To build the docs locally, install the ``doc `` dependencies specified in the
254- `setup.py <https://github.com/pvlib/pvlib-python/blob/master/setup.py >`_
255- file. See :ref: `installation ` instructions for more information.
253+ Building the documentation
254+ --------------------------
255+
256+ Building the documentation locally is useful for testing out changes to the
257+ documentation's source code without having to repeatedly update a PR and have
258+ Read the Docs build it for you. Building the docs locally requires installing
259+ pvlib python as an editable library (see :ref: `installation ` for instructions).
260+ First, install the ``doc `` dependencies specified in the
261+ ``EXTRAS_REQUIRE `` section of
262+ `setup.py <https://github.com/pvlib/pvlib-python/blob/master/setup.py >`_.
263+ An easy way to do this is with::
264+
265+ pip install pvlib[doc]
266+
267+ Note: Anaconda users may have trouble using the above command to update an
268+ older version of docutils. If that happens, you can update it with ``conda ``
269+ (e.g. ``conda install docutils=0.15.2 ``) and run the above command again.
270+
271+ Once the ``doc `` dependencies are installed, navigate to ``/docs/sphinx `` and
272+ execute::
273+
274+ make html
275+
276+ Be sure to skim through the output of this command because Sphinx might emit
277+ helpful warnings about problems with the documentation source code.
278+ If the build succeeds, it will make a new directory ``docs/sphinx/build ``
279+ with the documentation's homepage located at ``build/html/index.html ``.
280+ This file can be opened with a web browser to view the local version
281+ like any other website. Other output formats are available; run ``make help ``
282+ for more information.
283+
284+ Note that Windows users need not have the ``make `` utility installed as pvlib
285+ includes a ``make.bat `` batch file that emulates its interface.
256286
257287Example Gallery
258288---------------
0 commit comments