rompy-docs
Shared documentation tooling for rompy and its model plugins (rompy-xbeach, rompy-swan, rompy-schism) and the rompy-notebooks site.
The sites are built separately, one per repository, and read as one resource:
| Layer | Site |
|---|---|
| Concepts | rompy |
| Guide and reference | rompy-xbeach, rompy-swan, rompy-schism |
| Tutorials and examples | rompy-notebooks |
This package holds what they share:
- Build stack: installing
rompy-docsinstalls ProperDocs, Material, mkdocstrings, griffe-pydantic and markdown-exec at compatible versions. Sites build withproperdocs build --strict -f mkdocs.yml. - Theme files: a bar linking all the sites and shared styles, copied into each site by
rompy-docs sync. - Configuration template:
template.ymlholds themkdocs.ymlblocks every site uses.rompy-docs checkreports where a site differs. - API docs of pydantic models: the template renders fields with griffe-pydantic, including the fields a class inherits from rompy.
rompy_docs.griffe:PydanticFieldRulesapplies pydantic's field rules that griffe-pydantic's static mode misses. - Notebook links:
rompy_docs.notebookslists notebooks from the inventory the rompy-notebooks site publishes (tutorial tables, example cards, "See it in the notebooks" boxes), so package sites link notebooks without copying them. - Docstring conversion:
rompy-docs convertturns Sphinx.. ipython:: pythonand.. code-block::directives into Markdown fences. Converted examples run when the docs are built, with their output shown below the code.
Using it in a site
-
Add
rompy-docsto thedocsextra of the package. -
Copy the blocks of
template.ymlintomkdocs.yml, then add the site's own settings, including:extra: rompy: site: xbeach # rompy, xbeach, swan, schism or notebooks
-
Run
rompy-docs syncto copy the theme files intodocs/, and commit them. -
Build with
properdocs build --strict -f mkdocs.yml. In CI, also runrompy-docs check. The config keeps themkdocs.ymlname so that other MkDocs-compatible engines, such as Zensical, can read it.
Docstring examples
Docstrings may use numpy or google style (the template sets docstring_style: auto). Write examples in the Examples section as markdown-exec fences:
Examples
--------
```python exec="on" source="above" result="text" session="gen3"
from rompy_swan.components.physics import GEN3
print(GEN3().render())
```
The code runs at build time and its printed output appears below it. With --strict, the build fails if an example raises, so the docs build also tests the examples. Use a plain ```python fence for examples that need data files or a model run.
Metadata
Release files for rompy-docs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rompy_docs-0.1.0.tar.gz | 16.0 kB | With provenance | Details for rompy_docs-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rompy_docs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rompy_docs-0.1.0-py3-none-any.whl |
Total release size: 33.6 kB
Release files / rompy_docs-0.1.0.tar.gz
| Download URL | rompy_docs-0.1.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e24fe3dc4cdf109e657ab6fe5176c7643a501a6db309ec65332534c04f0d13
|
|
BLAKE2b-256 checksum How to use checksums |
c52e91b37e0b46183df8dcbc7e82605fa59e7067c41573e3aa2055c8f5ed87cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / rompy_docs-0.1.0-py3-none-any.whl
| Download URL | rompy_docs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d81e85988f64b98a776c495ea496a991cbb238497af54ab60be85b147bd88e82
|
|
BLAKE2b-256 checksum How to use checksums |
b0fe4d632d655efbe2539679be1124563e566492bec78a6fc4b90c2635f930bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for rompy-docs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rompy_docs-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.