Python API reference#
technote Package#
Rubin Observatory’s framework for Sphinx-based technote documents.
Functions#
|
Sphinx entrypoint for technote. |
Variables#
The version string of technote (PEP 440 compatible). |
technote.factory Module#
The factory creates classes based on configuration.
Classes#
|
A factory for creating classes based on configuration. |
Class Inheritance Diagram#
technote.main Module#
Technote configuration models (for technote.toml).
technote.toml is used both for setting document metadata and also configuring the Sphinx build. Users of Technote can also add tables to technote.toml to support their technote plugins and build infrastructure.
Classes#
|
A class that configures Sphinx in |
Class Inheritance Diagram#
technote.ext Package#
Sphinx extensions for Technote documents.
Functions#
|
Set up Technote's own Sphinx extensions; these are automatically loaded in all technotes by default. |
technote.ext.abstract Module#
Support for abstracts in technotes.
Functions#
|
Add HTML content before the AbstractNode. |
|
Add HTML content after the AbstractNode. |
Classes#
|
The |
|
A docutils node for the abstract content section. |
Class Inheritance Diagram#
technote.ext.insertstatus Module#
Inserts the status of the technote below thte h1.
Functions#
|
Insert a status aside into the technote, directly below the title. |
technote.ext.metadata Module#
Sphinx extension for introspecting and exporting technote metadata.
Functions#
|
Process the HTML page to prepare the context for the HTML templates. |
|
Get the abstract as plain text from the abstract directive. |
|
Get the H1 title to use as the technote title. |
|
Set the |
technote.ext.pygmentscss Module#
A build-finished Sphinx hook that overwrites the ppygments.css file.
Functions#
|
Overwrite the pygments CSS file with a version that enables toggling between light and dark themes. |
technote.ext.toc Module#
Sphinx extension for creating a cleaner toc
(table of contents) of the
page’s sections that doesn’t include the page title, like the default toc
context variable.
Functions#
|
Process the HTML page context to add a new |
technote.ext.wraptables Module#
The wraptables extension wraps HTML tables in figures.
Functions#
|
Wrap the HTML tables in a figure tag. |
Variables#
technote.metadata.model Module#
The domain model for metadata about a technote.
Classes#
|
The domain model for an organization (e.g. an institution). |
|
The domain model for a person (e.g. an author). |
|
The domain model for a contributor. |
|
The domain model for the technote's source code repository. |
|
The domain model for metadata about a technote. |
|
Standardized states for a technote. |
|
The domain model for the technote's content status. |
|
Additional information for building a citation to the technote. |
|
A link to a webpage. |
|
The domain model for a structured name (e.g. a person's name). |
Class Inheritance Diagram#
technote.metadata.orcid Module#
The ORCiD identifier.
Functions#
|
Check an ORCiD URL for validity. |
technote.metadata.ror Module#
Support for ROR (Research Organization Registry) identifiers.
Functions#
|
Check a ROR URL for validity. |
technote.metadata.spdx Module#
Interface to SPDX license metadata.
Classes#
A license item as contained in a SpdxFile. |
|
Representation of a SPDX license database file as a Pydantic model. |
|
|
License database, with access by license ID. |
Class Inheritance Diagram#
technote.metadata.zenodo Module#
Zenodo API support and controlled vocabularies.
Classes#
|
The role of a contributor in a Zenodo record. |