colrev.package_manager.doc_registry_manager.PackageDoc
- class colrev.package_manager.doc_registry_manager.PackageDoc(package_id)[source]
Bases:
object
Methods
get_docs_item
Get the documentation item for the package
get_endpoint_item
Get the endpoint item for the package
has_endpoint
Check if the package has a specific endpoint type
import_package_docs
Import the package documentation
Attributes
repository
package_id
version
license
authors
documentation
package_dir
monorepo
package_metadata
description
dev_status
endpoints
search_types
docs_package_readme_path
docs_rst_path
- get_docs_item()[source]
Get the documentation item for the package
- Return type:
dict
Format: {
“identifier”: package_id, “short_description”: short_description, “path”: docs_rst_path,
}
- get_endpoint_item(endpoint_type)[source]
Get the endpoint item for the package
- Return type:
dict
Format: {
“package_endpoint_identifier”: package_id, “status”: status, “short_description”: docs_short_description, “search_types”: search_types,
}