Rev 2408: Since I have epydoc working with lazy imports, make it the default api doc generator. in http://bzr.arbash-meinel.com/branches/bzr/0.16-dev/doc-cleanup
John Arbash Meinel
john at arbash-meinel.com
Thu Apr 12 18:49:33 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.16-dev/doc-cleanup
------------------------------------------------------------
revno: 2408
revision-id: john at arbash-meinel.com-20070412174910-4m93s90gq6tjk1k4
parent: john at arbash-meinel.com-20070409231939-prjmbgzw9fj3zqon
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: doc-cleanup
timestamp: Thu 2007-04-12 12:49:10 -0500
message:
Since I have epydoc working with lazy imports, make it the default api doc generator.
Also, update Makefile to make it easier to just document one file.
modified:
BRANCH.TODO BRANCH.TODO-20060103052123-79ac4969351c03a9
Makefile Makefile-20050805140406-d96e3498bb61c5bb
pydoctor_bzrlib.cfg pydoctor_bzrlib.cfg-20070404212742-5014t4yaxgygro9y-1
-------------- next part --------------
=== modified file 'BRANCH.TODO'
--- a/BRANCH.TODO 2007-04-09 21:04:37 +0000
+++ b/BRANCH.TODO 2007-04-12 17:49:10 +0000
@@ -4,16 +4,8 @@
#
To build just one file's documentation you can use something like:
-epydoc --html -o api --check --docformat "restructuredtext en" bzrlib/add.py
-
-or you can use:
-pydoctor --make-html --html-output=api/html --docformat "restructuredtext en" --add-module bzrlib/add.py
-
-It will also generate Warnings describing why it isn't considered valid.
-
-
-This is a list of current documentation failures.
-These functions should be documented, and apis should be cleaned up.
+make epydoc-api-docs docfiles=bzrlib/add.py
+
XXX unknown field <Field u'attr' u'_root_entrie' "<p>The root row of the direct>
XXX unknown field <Field u'range' None '<p>The range in the file</p>\>
=== modified file 'Makefile'
--- a/Makefile 2007-04-09 23:19:39 +0000
+++ b/Makefile 2007-04-12 17:49:10 +0000
@@ -17,7 +17,7 @@
# A relatively simple Makefile to assist in building parts of bzr. Mostly for
# building documentation, etc.
-.PHONY: all clean pyflakes api-docs
+.PHONY: all clean pyflakes api-docs pydoctor-api-docs
all:
@@ -45,13 +45,14 @@
-find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
rm -rf test????.tmp
+pydoctor-api-docs:
+ mkdir -p api/pydoctor
+ pydoctor -c pydoctor_bzrlib.cfg --make-html
+
+docfiles = bzr bzrlib
api-docs:
- mkdir -p api
- pydoctor -c pydoctor_bzrlib.cfg --make-html
-
-epydoc-api-docs:
mkdir -p api/epydoc
- PYTHONPATH=$(PWD) python tools/bzr_epydoc --html -o api/epydoc --docformat 'restructuredtext en' bzr bzrlib
+ PYTHONPATH=$(PWD) python tools/bzr_epydoc --html -o api/epydoc --docformat 'restructuredtext en' $(docfiles)
# build emacs cross-reference
=== modified file 'pydoctor_bzrlib.cfg'
--- a/pydoctor_bzrlib.cfg 2007-04-09 20:35:46 +0000
+++ b/pydoctor_bzrlib.cfg 2007-04-12 17:49:10 +0000
@@ -1,6 +1,6 @@
projectname: BzrLib
projecturl: http://bazaar-vcs.org/
-htmloutput: api/html
+htmloutput: api/pydoctor
htmlusesorttable: True
packages: bzrlib
docformat: restructuredtext
More information about the bazaar-commits
mailing list