Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit a51bf60

Browse files
committed
Added error code table generation to Sphinx Makefile.
1 parent ef4211b commit a51bf60

File tree

3 files changed

+5
-52
lines changed

3 files changed

+5
-52
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ docs/_*
4040

4141
# virtualenv
4242
venv/
43+
44+
# generated rst
45+
docs/snippets/error_code_table.rst

docs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ clean:
5050
rm -rf $(BUILDDIR)/*
5151

5252
html:
53+
@echo "Building error code table from error registry."
54+
python -c "import os, sys; sys.path.insert(0, os.path.join(os.getcwd(), '..')); from pep257 import ErrorRegistry; print(ErrorRegistry.to_rst())" > snippets/error_code_table.rst
5355
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
5456
@echo
5557
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

docs/snippets/error_code_table.rst

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)