Skip to content

Commit 19ec28a

Browse files
committed
Treat warnings as errors in doc building
1 parent 5a7c6f1 commit 19ec28a

File tree

10 files changed

+39
-24
lines changed

10 files changed

+39
-24
lines changed

docs/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS = -W --keep-going
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
99

10+
# Do not use local Django settings during the docs build
11+
export DJANGO_SETTINGS_SKIP_LOCAL = True
12+
1013
# User-friendly check for sphinx-build
1114
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
1215
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)

docs/advertising/ad-customization.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Customizing Advertising
24
=======================
35

docs/api/v1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
API v1 (removed)
24
================
35

docs/api/v3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
API v3
24
======
35

docs/commercial/custom_domains.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Once a project is imported under Read the Docs,
88
by default it's hosted under a subdomain on one of our domains.
99
If you need a custom domain, continue on custom domain setup.
1010

11-
Custom domains
12-
--------------
11+
12+
Serving documentation with a custom domain
13+
------------------------------------------
1314

1415
Projects can also be hosted under a custom domain.
1516
If you'd prefer to use your own domain name instead of our default hosting domain,

docs/custom_installs/local_rtd_vm.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To host your documentation on a local RTD installation, set it up in your VM:
4747
cd readthedocs.org
4848
sudo pip install -r requirements.txt
4949

50-
Possible Error and Resolution
51-
`````````````````````````````
50+
Possible errors with a local RTD setup
51+
``````````````````````````````````````
5252

5353
**Error**: ``error: command 'gcc' failed with exit status 1``
5454

@@ -116,8 +116,8 @@ Go to the dashboard at ``http://[VM IP ADDRESS]:8000/dashboard`` and follow the
116116

117117
This generates the HTML documentation site using the default Sphinx theme. Verify the output in your local documentation folder under ``../build/html``
118118

119-
Possible Error and Resolution
120-
`````````````````````````````
119+
Possible errors administering a RTD server
120+
``````````````````````````````````````````
121121

122122
**Error**: Couldn't access Git Corp from VM.
123123

docs/guides/manage-translations.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ To generate these ``.pot`` files it's needed to run this command from your ``doc
3838

3939
.. tip::
4040

41-
We recommend configuring Sphinx to use :ref:`gettext_uuid <sphinx:gettext_uuid>` as ``True``
42-
and also :ref:`gettext_compact <sphinx:gettext_compact>` as ``False`` to generate ``.pot`` files.
41+
We recommend configuring Sphinx to use gettext_uuid_ as ``True``
42+
and also gettext_compact_ as ``False`` to generate ``.pot`` files.
43+
44+
.. Unfortunately these are custom types and can't yet be used with intersphinx
45+
.. https://github.com/sphinx-doc/sphinx/issues/5562
46+
.. _gettext_uuid: https://www.sphinx-doc.org/en/latest/usage/configuration.html#confval-gettext_uuid
47+
.. _gettext_compact: https://www.sphinx-doc.org/en/latest/usage/configuration.html#confval-gettext_compact
4348

4449

4550
This command will leave the generated files under ``_build/gettext``.

docs/privacy-policy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ User Personal Information does not include aggregated, non-personally identifyin
9292
We may use aggregated, non-personally identifying information to operate, improve,
9393
and optimize our website and service.
9494

95-
Why do we collect this?
96-
+++++++++++++++++++++++
95+
Why do we collect this information?
96+
+++++++++++++++++++++++++++++++++++
9797

9898
- We need your User Personal Information to create your account, and to provide the services you request.
9999
- We use your User Personal Information, specifically your user name, to identify you on Read the Docs.

docs/team.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ This might include tasks like:
2929
* Asking for a project name to be released
3030
* Troubleshooting build errors
3131

32-
Members
33-
~~~~~~~
32+
Support team members
33+
~~~~~~~~~~~~~~~~~~~~
3434

3535
* `Eric Holscher <https://github.com/ericholscher>`__ (Pacific Time)
3636
* `Anthony Johnson <https://github.com/agjohnson>`__ (Mountain Time)
@@ -39,8 +39,8 @@ Members
3939

4040
**Please don't email us personally for support on Read the Docs.** You can email [email protected] for any issues you may have.
4141

42-
Joining
43-
~~~~~~~
42+
Joining the support team
43+
~~~~~~~~~~~~~~~~~~~~~~~~
4444

4545
The best place to start would be to start addressing some of the issues in our issue tracker.
4646
We have our support policies quite well documented in our :doc:`/contribute`.
@@ -59,8 +59,8 @@ As part of operating the site,
5959
we maintain a 24/7 on-call rotation.
6060
This means that folks have to be available and have their phone in service.
6161

62-
Members
63-
~~~~~~~
62+
Ops team members
63+
~~~~~~~~~~~~~~~~
6464

6565
* `Eric Holscher <https://github.com/ericholscher>`_ (Pacific Time)
6666
* `Anthony Johnson <https://github.com/agjohnson>`_ (Mountain Time)
@@ -69,8 +69,8 @@ Members
6969

7070
Feel free to ask any of us if you have questions or want to join!
7171

72-
Joining
73-
~~~~~~~
72+
Joining the ops team
73+
~~~~~~~~~~~~~~~~~~~~
7474

7575
We are always looking for more people to share the on-call responsibility.
7676
If you are on-call for your job already,
@@ -103,8 +103,8 @@ Development Team
103103
Also known as the "Core Team" in other projects.
104104
These folks have the ability to commit code to the project.
105105

106-
Members
107-
~~~~~~~
106+
Dev team members
107+
~~~~~~~~~~~~~~~~
108108

109109
* `Eric Holscher <https://github.com/ericholscher>`_
110110
* `Anthony Johnson <https://github.com/agjohnson>`_
@@ -115,8 +115,8 @@ Members
115115

116116
Feel free to ask any of us if you have questions or want to join!
117117

118-
Joining
119-
~~~~~~~
118+
Joining the dev team
119+
~~~~~~~~~~~~~~~~~~~~
120120

121121
We try to be pretty flexible with who we allow on the development team.
122122
The best path is to send a few pull requests,

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ commands =
2525
description = build readthedocs documentation
2626
changedir = {toxinidir}/docs
2727
commands =
28-
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
28+
sphinx-build -W --keep-going -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
2929

3030
[testenv:migrations]
3131
description = check for missing migrations

0 commit comments

Comments
 (0)