Skip to content

Commit 85ddb6f

Browse files
committed
Remove autogen_config
1 parent b170630 commit 85ddb6f

File tree

3 files changed

+2
-61
lines changed

3 files changed

+2
-61
lines changed

docs/Makefile

+2-6
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ clean:
5353
rm -rf $(BUILDDIR)/*
5454
rm -rf source/config.rst
5555

56-
html: source/config.rst
56+
html:
5757
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
5858
@echo
5959
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
6060

61-
source/config.rst:
62-
python3 autogen_config.py
63-
@echo "Created docs for config options"
64-
6561
dirhtml:
6662
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
6763
@echo
@@ -176,7 +172,7 @@ linkcheck:
176172
@echo
177173
@echo "Link check complete; look for any errors in the above output " \
178174
"or in $(BUILDDIR)/linkcheck/output.txt."
179-
175+
180176
spelling:
181177
$(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
182178
@echo "Spell check complete; look for any errors in the above output " \

docs/autogen_config.py

-45
This file was deleted.

docs/source/conf.py

-10
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@
4646
for item in sys.path:
4747
print(item)
4848

49-
# Check if docs are being built by ReadTheDocs
50-
# If so, generate a config.rst file and populate it with documentation about
51-
# configuration options
52-
53-
if os.environ.get('READTHEDOCS', ''):
54-
# Readthedocs doesn't run our Makefile, so we do this to force it to generate
55-
# the config docs.
56-
with open('../autogen_config.py') as f:
57-
exec(compile(f.read(), '../autogen_config.py', 'exec'), {})
58-
5949
# -- General configuration ------------------------------------------------
6050

6151
# If your documentation needs a minimal Sphinx version, state it here.

0 commit comments

Comments
 (0)