Skip to content

Commit 8b33eb8

Browse files
committed
do docs requirements differently
1 parent e616180 commit 8b33eb8

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

Dockerfile.dev

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ COPY requirements.txt /tmp/
4040
WORKDIR /tmp
4141
RUN pip install --no-cache-dir -r requirements.txt
4242

43+
# Install Python dependencies specifically for building docs
44+
COPY docs-requirements.txt /tmp/
45+
# Switch to /tmp to install dependencies outside home dir
46+
WORKDIR /tmp
47+
RUN pip install --no-cache-dir -r docs-requirements.txt
48+
4349
# Install frontend dependencies using NPM
4450
COPY package.json /opt/npm/
4551

File renamed without changes.

docs/dev.rst

+15
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ To build the docs, run this:
3333
3434
$ make docs
3535
36+
This is the same as running:
37+
38+
.. code-block:: shell
39+
40+
$ docker-compose run web ./bin/build_docs.sh
41+
42+
To iterate on writing docs and testing that what you type compiles correctly,
43+
run the above mentioned command on every save and then open the file
44+
``docs/_build/html/index.html``. E.g.
45+
46+
.. code-block:: shell
47+
48+
# the 'open' command is for OSX
49+
$ open docs/_build/html/index.html
50+
3651
3752
.. _Sphinx: http://www.sphinx-doc.org/en/stable/
3853

readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
python:
22
version: 3.5
3-
requirements_file: readthedocs-requirements.txt
3+
requirements_file: docs-requirements.txt

0 commit comments

Comments
 (0)