Merge lp:~jml/launchpad/prevent-new-sphinx-errors into lp:launchpad
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12442 |
Proposed branch: | lp:~jml/launchpad/prevent-new-sphinx-errors |
Merge into: | lp:launchpad |
Diff against target: |
215 lines (+98/-1) 7 files modified
doc/Makefile (+1/-1) lib/lp/scripts/tests/test_sphinxdocs.py (+35/-0) lib/lp/services/tests/test_utils.py (+16/-0) lib/lp/services/utils.py (+35/-0) lib/lp_sitecustomize.py (+7/-0) setup.py (+1/-0) versions.cfg (+3/-0) |
To merge this branch: | bzr merge lp:~jml/launchpad/prevent-new-sphinx-errors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
j.c.sackett (community) | code* | Approve | |
Review via email: mp+50136@code.launchpad.net |
Commit message
[r=jcsackett,
Description of the change
This branch adds a test that prevents new sphinx doc build errors.
It does the equivalent of running 'sphinx-build', but imports the sphinx command and runs it in process to save a little time (1-2s).
Also added a run_capturing_
Oh, also adds Sphinx as a dependency. I had thought of making the test optional, but Benji convinced me that it's not an onerous dependency, and it's good to have new developers able to build the documentation. The lp_sitecustomize thing is to silence a silly warning in pygments.
To post a comment you must log in.
This looks good to land. Tests confirming documentation isn't broken is a great idea, and the output capturing tool is handy.