2 # -*- coding: utf-8 -*-
9 from subprocess
import call
11 src
= sys
.argv
[1] # srcdir
12 dst
= sys
.argv
[2] # pkgdir
13 doc
= sys
.argv
[3] # document path
15 no_doc_list
= [] # show which extensions have no documentation
18 for i
in os
.listdir('.'):
22 if os
.path
.isfile("setup.py"):
25 command
= ["python2", "setup.py", "install", "--root=" + dst
]
29 readmeList
= glob
.glob("README*")
31 if len(readmeList
) == 1:
32 readme
= readmeList
[0]
33 elif "README" in readmeList
:
36 shutil
.move(readme
, os
.path
.join(doc
, i
+ '.rst'))
41 # Build embedded documentations
42 # Should be update manually.
50 Sphinx extension that adds an :dir:`autointerface` directive, which can be
51 used like autoclass to document zope interfaces. Interfaces are
52 intended to be very different beasts than regular python classes, and
53 as a result require customized access to documentation, signatures
56 `autointerface` directive
57 -----------------------
58 The :dir:`autointerface` directive has the same form and option as the
59 :dir:`autoclass` directive::
61 .. autointerface:: IClass
64 .. seealso:: :mod:`sphinx.ext.autodoc`
66 .. note:: This extension also serves as a simple example of using the
67 new sphinx version 6.0 version :mod:`autodoc` refactoring. Mostly
68 this was straight forward, but I stumbled across a "gotcha":
70 The `objtype` attribute of the documenters needs to be unique.
71 Thus, for example, :attr:`InterfaceMethodDocumenter.objtype`
72 cannot be `'method'` because this would overwrite the entry in
73 :attr:`AutoDirective._registry` used to choose the correct
80 with
open(os
.path
.join(doc
, i
+ '.rst'), "w") as f
: