diff options
author | Georg Brandl <georg@python.org> | 2009-04-26 09:56:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-26 09:56:44 (GMT) |
commit | 438192540d14f6d5de7a2effc6c9958ab6e5a1c6 (patch) | |
tree | 483e2e70924c95c97c3a345a0375a0380f6a964d /Doc | |
parent | 0d478c455bad145b6e16d58f60667870e9a72456 (diff) | |
download | cpython-438192540d14f6d5de7a2effc6c9958ab6e5a1c6.zip cpython-438192540d14f6d5de7a2effc6c9958ab6e5a1c6.tar.gz cpython-438192540d14f6d5de7a2effc6c9958ab6e5a1c6.tar.bz2 |
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile | 8 | ||||
-rw-r--r-- | Doc/tools/sphinxext/pyspecific.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index 46abe51..c9f3ed6 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -28,8 +28,8 @@ help: @echo " coverage to check documentation coverage for library and C API" @echo " dist to create a \"dist\" directory with archived docs for download" +# Note: if you update versions here, do the same in make.bat and README.txt checkout: - # Note: if you update versions here, do the same in make.bat and README.txt @if [ ! -d tools/sphinx ]; then \ echo "Checking out Sphinx..."; \ svn checkout $(SVNROOT)/external/Sphinx-0.6.1/sphinx tools/sphinx; \ @@ -102,8 +102,8 @@ doctest: build pydoc-topics: BUILDER = pydoc-topics pydoc-topics: build - @echo "Building finished; now copy build/pydoc-topics/pydoc_topics.py " \ - "into the Lib/ directory" + @echo "Building finished; now copy build/pydoc-topics/topics.py " \ + "to Lib/pydoc_data/topics.py" htmlview: html $(PYTHON) -c "import webbrowser; webbrowser.open('build/html/index.html')" @@ -133,7 +133,7 @@ dist: (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-text.zip python-$(DISTVERSION)-docs-text) rm -r dist/python-$(DISTVERSION)-docs-text rm dist/python-$(DISTVERSION)-docs-text.tar - + # archive the A4 latex -rm -r build/latex make latex PAPER=a4 diff --git a/Doc/tools/sphinxext/pyspecific.py b/Doc/tools/sphinxext/pyspecific.py index f00a899..402a9a1 100644 --- a/Doc/tools/sphinxext/pyspecific.py +++ b/Doc/tools/sphinxext/pyspecific.py @@ -5,7 +5,7 @@ Sphinx extension with Python doc-specific markup. - :copyright: 2008 by Georg Brandl. + :copyright: 2008, 2009 by Georg Brandl. :license: Python license. """ @@ -89,7 +89,7 @@ class PydocTopicsBuilder(Builder): self.topics[label] = writer.output def finish(self): - f = open(path.join(self.outdir, 'pydoc_topics.py'), 'w') + f = open(path.join(self.outdir, 'topics.py'), 'w') try: f.write('# Autogenerated by Sphinx on %s\n' % asctime()) f.write('topics = ' + pformat(self.topics) + '\n') |