docs: port build system to newer pydoctor
authorAntonio Terceiro <terceiro@debian.org>
Sat, 23 Apr 2022 12:23:43 +0000 (09:23 -0300)
committerGuido Günther <agx@sigxcpu.org>
Sat, 23 Apr 2022 13:47:31 +0000 (15:47 +0200)
According to https://pydoctor.readthedocs.io/en/latest/help.html, the
command line and configuration parsing has changed in an incompatible
way. These changes fix the documentation build for me, but are probably
backwards-incompatible with older versions of pydoctor.

.pydoctor.cfg [deleted file]
Makefile
pydoctor.ini [new file with mode: 0644]

diff --git a/.pydoctor.cfg b/.pydoctor.cfg
deleted file mode 100644 (file)
index ede8e51..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-projectname: git-buildpackage
-projecturl: https://honk.sigxcpu.org/piki/projects/git-buildpackage/
-htmloutput: build/apidocs
-packages: gbp,tests/doctests/
index c94fa6c25c08e6c2e22ed2a1ca833a9a87c008f9..618f1a186b5ee09c2ca5a53153bc7ecf0f1b55ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,6 @@ docs:
 
 apidocs:
        mkdir -p build
-       pydoctor -v --config=.pydoctor.cfg
+       pydoctor -v gbp tests/doctests/
 
 .PHONY: docs
diff --git a/pydoctor.ini b/pydoctor.ini
new file mode 100644 (file)
index 0000000..a9bd021
--- /dev/null
@@ -0,0 +1,4 @@
+[pydoctor]
+project-name = git-buildpackage
+project-url = https://honk.sigxcpu.org/piki/projects/git-buildpackage/
+html-output = build/apidocs