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#
|
technote.ext.abstract Module#
Support for abstracts in technotes.
Functions#
|
Add HTML content before the |
|
Add HTML content after the |
Classes#
|
The |
|
A docutils node for the abstract content section. |
Class Inheritance Diagram#
technote.ext.insertposttitle Module#
Inserts the status of the technote below thte h1.
Functions#
|
Insert a html templates 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. |
|
|
technote.ext.pygmentscss Module#
A build-finished Sphinx hook that overwrites the ppygments.css file.
Functions#
|
|
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#
|
|
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 |
|
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. |
Class Inheritance Diagram#
technote.sources.tomlsettings Module#
Models for the technote.toml
configuration file.
Classes#
A model of a |
|
The root table for technote configuration, |
|
A model for |
|
A model for the technote's status. |
|
|
Standardized states for a technote. |
Model for describing an organization (often as an affiliation). |
|
A person's name. |
|
Model for describing a person related to the technote. |
|
Data about a contributor. |
|
The |
|
Intersphinx configuration in the |
|
Linkcheck builder configurations in the |