Skip to main content

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-docs installs ProperDocs, Material, mkdocstrings, griffe-pydantic and markdown-exec at compatible versions. Sites build with properdocs 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.yml holds the mkdocs.yml blocks every site uses. rompy-docs check reports 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:PydanticFieldRules applies pydantic's field rules that griffe-pydantic's static mode misses.
  • Notebook links: rompy_docs.notebooks lists 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 convert turns Sphinx .. ipython:: python and .. 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

  1. Add rompy-docs to the docs extra of the package.

  2. Copy the blocks of template.yml into mkdocs.yml, then add the site's own settings, including:

    extra:
      rompy:
        site: xbeach   # rompy, xbeach, swan, schism or notebooks
    
  3. Run rompy-docs sync to copy the theme files into docs/, and commit them.

  4. Build with properdocs build --strict -f mkdocs.yml. In CI, also run rompy-docs check. The config keeps the mkdocs.yml name 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)

Source distribution for rompy-docs 0.1.0
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)

Table of built distributions (wheels) for rompy-docs 0.1.0
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page