find_package_docs#
- documenteer.stackdocs.pkgdiscovery.find_package_docs(package_dir, skipped_names=None)#
Find documentation directories in a package using
manifest.yamland heuristics.- Parameters:
package_dir (
strorpathlib.Path) – Directory of an EUPS package.skipped_names (
listofstr, optional) – List of package or module names to skip when creating links.
- Returns:
doc_dirs – Metadata about a stack package’s documentation content.
- Return type:
- Raises:
NoPackageDocs – Raised when the
manifest.yamlfile cannot be found in a package.
Notes
Stack packages have documentation in subdirectories of their
docdirectory. Themanifest.yamlfile declares what these directories are so that they can be symlinked into the root project.There are three types of documentation directories:
Package doc directories contain documentation for the EUPS package aspect. This is optional.
Module doc directories contain documentation for a Python package aspect. These are optional.
Static doc directories are root directories inside the package’s
doc/_static/directory. These are optional.
These are declared in a package’s
doc/manifest.yamlfile. For example:package: "afw" modules: - "lsst.afw.image" - "lsst.afw.geom" statics: - "_static/afw"
This YAML declares module documentation directories:
afw/doc/lsst.afw.image/afw/doc/lsst.afw.geom/
It also declares a package documentation directory:
afw/doc/afw
And a static documentaton directory:
afw/doc/_static/afw