diff -r 7266562c2bb3 Doc/Makefile --- a/Doc/Makefile Sat Oct 18 15:11:03 2014 -0700 +++ b/Doc/Makefile Sun Oct 19 23:06:24 2014 -0500 @@ -30,6 +30,7 @@ @echo " linkcheck to check all external links for integrity" @echo " coverage to check documentation coverage for library and C API" @echo " doctest to run doctests in the documentation" + @echo " idledoc to regenerate the IDLE help file" @echo " pydoc-topics to regenerate the pydoc topics file" @echo " dist to create a \"dist\" directory with archived docs for download" @echo " suspicious to check for suspicious markup in output text" @@ -98,6 +99,13 @@ @echo "Building finished; now copy build/pydoc-topics/topics.py" \ "to ../Lib/pydoc_data/topics.py" +idledoc: BUILDER = html +idledoc: SOURCES = library/idle.rst +idledoc: build + @echo "Build finished; now copying build/html/library/idle.html to" \ + "../Lib/idlelib/help.html." + @cp build/html/library/idle.html ../Lib/idlelib/help.html + htmlview: html $(PYTHON) -c "import webbrowser; webbrowser.open('build/html/index.html')" diff -r 7266562c2bb3 Doc/make.bat --- a/Doc/make.bat Sat Oct 18 15:11:03 2014 -0700 +++ b/Doc/make.bat Sun Oct 19 23:06:24 2014 -0500 @@ -41,6 +41,7 @@ rem Targets that do require sphinx-build and have their own label if "%1" EQU "htmlview" goto htmlview +if "%1" EQU "idledoc" goto idledoc rem Everything else goto build @@ -56,7 +57,7 @@ echo. html, htmlhelp, latex, text echo. suspicious, linkcheck, changes, doctest echo. Provided by this script: -echo. clean, check, serve, htmlview +echo. clean, check, serve, htmlview, idledoc echo. echo.All arguments past the first one are passed through to sphinx-build as echo.filenames to build or are ignored. See README.txt in this directory or @@ -112,6 +113,12 @@ goto end +:idledoc +call %this% html library\idle.rst +echo Now copying build/html/library/idle.html to ../Lib/idlelib/help.html +copy build\html\library\idle.html ..\Lib\idlelib\help.html +goto end + :check cmd /C %PYTHON% tools\rstlint.py -i tools goto end