Home | Trees | Index | Help |
|
---|
|
The documentation information for each individual object is represented using an APIDoc; and the documentation for a collection of objects is represented using a DocIndex.
The main interface toepydoc.docbuilder
consists of two
functions:
build_docs()
-- Builds documentation for
a single item, and returns it as an APIDoc
object.
|
|||
_ProgressEstimator | Used to keep track of progress when generating the initial docs for the given items. |
|
|||
_report_errors(name, introspect_doc, parse_doc, introspect_error, parse_error) | |||
Documentation Construction | |||
---|---|---|---|
APIDoc |
build_doc(item,
introspect=True,
parse=True,
add_submodules=True)
Build API documentation for a given item, and return it as an APIDoc object. |
||
DocIndex |
build_doc_index(items,
introspect=True,
parse=True,
add_submodules=True)
Build API documentation for the given list of items, and return it in the form of a DocIndex. |
||
_report_valdoc_progress(i, val_doc, val_docs) | |||
_get_docs_from_items(items, introspect, parse, add_submodules) | |||
_get_docs_from_pyobject(obj, introspect, parse, progress_estimator) | |||
_get_docs_from_pyname(name, introspect, parse, progress_estimator, supress_warnings=False) | |||
_get_docs_from_pyscript(filename, introspect, parse, progress_estimator) | |||
_get_docs_from_module_file(filename,
introspect,
parse,
progress_estimator,
parent_docs=(None,None))
Construct and return the API documentation for the python module with the given filename. |
|||
_get_docs_from_submodules(item, pkg_docs, introspect, parse, progress_estimator) | |||
Merging | |||
register_attribute_mergefunc(attrib,
mergefunc)
Register an attribute merge function. |
|||
merge_docs(introspect_doc,
parse_doc,
cyclecheck=None,
path=None)
Merge the API documentation information that was obtained from introspection with information that was obtained from parsing. |
|||
_merge_posargs_and_defaults(introspect_doc, parse_doc, path) | |||
merge_attribute(attrib, introspect_doc, parse_doc, cyclecheck, path) | |||
merge_variables(varlist1, varlist2, precedence, cyclecheck, path) | |||
merge_value(value1, value2, precedence, cyclecheck, path) | |||
merge_package(v1, v2, precedence, cyclecheck, path) | |||
merge_container(v1, v2, precedence, cyclecheck, path) | |||
merge_overrides(v1, v2, precedence, cyclecheck, path) | |||
merge_fget(v1, v2, precedence, cyclecheck, path) | |||
merge_fset(v1, v2, precedence, cyclecheck, path) | |||
merge_fdel(v1, v2, precedence, cyclecheck, path) | |||
merge_proxy_for(v1, v2, precedence, cyclecheck, path) | |||
merge_bases(baselist1, baselist2, precedence, cyclecheck, path) | |||
merge_posarg_defaults(defaults1, defaults2, precedence, cyclecheck, path) | |||
merge_docstring(docstring1, docstring2, precedence, cyclecheck, path) | |||
merge_docs_extracted_by(v1, v2, precedence, cyclecheck, path) | |||
Linking | |||
link_imports(val_doc, docindex) | |||
Naming | |||
assign_canonical_names(val_doc,
name,
docindex,
score=0)
Assign a canonical name to val_doc (if it doesn't
have one already), and (recursively) to each variable in
val_doc .
|
|||
_var_shadows_self(var_doc, varname) | |||
_fix_self_shadowing_var(var_doc, varname, docindex) | |||
_unreachable_name_for(val_doc, docindex) | |||
Inheritance | |||
inherit_docs(class_doc) | |||
_inherit_info(var_doc)
Copy any relevant documentation information from the variable that var_doc overrides into var_doc itself.
|
|
|||
_INHERITED_ATTRIBS | |||
Merging | |||
---|---|---|---|
MERGE_PRECEDENCE | Indicates whether information from introspection or parsing should be given precedence, for specific attributes. | ||
DEFAULT_MERGE_PRECEDENCE | Indicates whether information from introspection or parsing should be given precedence. | ||
_attribute_mergefunc_registry | |||
Naming | |||
_name_scores | A dictionary mapping from each ValueDoc to the score
that has been assigned to its current cannonical name. |
||
_unreachable_names | The set of names that have been used for unreachable objects. |
|
|
|
|
|
|
|
|
|
|
|
APIDoc s.
|
Merge the API documentation information that was obtained from
introspection with information that was obtained from parsing.
introspect_doc and parse_doc are
compatible, then they will be merged -- i.e., they will be coerced
to a common class, and their state will be stored in a shared dictionary.
Once they have been merged, any change made to the attributes of one will
affect the other. The value for the each of the merged
APIDoc 's attributes is formed by combining the values of the
source APIDoc s' attributes, as follows:
introspect_doc and parse_doc are
not compatible (e.g., if their values have incompatible types),
then merge_docs() will simply return either
introspect_doc or parse_doc , depending on the
value of DEFAULT_MERGE_PRECEDENCE. The two input APIDoc s
will not be merged or modified in any way.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val_doc (if it doesn't have
one already), and (recursively) to each variable in val_doc .
In particular, val_doc will be assigned the canonical name
name iff either:
None ; but these should be harmless.
|
|
|
|
|
var_doc overrides into var_doc itself.
|
|
MERGE_PRECEDENCEIndicates whether information from introspection or parsing should be given precedence, for specific attributes. This dictionary maps from attribute names to either'introspect' or
'parse' .
|
DEFAULT_MERGE_PRECEDENCEIndicates whether information from introspection or parsing should be given precedence. Should be either'introspect' or
'parse'
|
_attribute_mergefunc_registry
|
_name_scoresA dictionary mapping from eachValueDoc to the score that
has been assigned to its current cannonical name. If assign_canonical_names() finds a canonical name with a
better score, then it will replace the old name.
|
_unreachable_namesThe set of names that have been used for unreachable objects. This is used to ensure there are no duplicate cannonical names assigned.
|
_INHERITED_ATTRIBS
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 3.0alpha2 on Tue Apr 11 17:29:56 2006 | http://epydoc.sf.net |