← GDG /

#130 gdtest_rst_caution

#130 gdtest_rst_caution OK CONFIG
Tests caution RST directives in docstrings
Docstrings contain '.. caution::' directives. The built-in handler should produce Quarto caution callouts. Two functions exercise them.
View Site → Build Log ๐Ÿงช Test Coverage

Build Mode

● Has great-docs.yml

This package ships a pre-supplied config. The great-docs init step is skipped and great-docs build uses the spec-defined configuration directly. Tests specific config options and their rendered output.

Dimensions

L6
L6.. caution::docstring

Source Files

๐Ÿ“ gdtest_rst_caution/
๐Ÿ“„ __init__.py
"""Package testing caution RST directives."""

__version__ = "0.1.0"
__all__ = ["modify_schema", "migrate"]


def modify_schema(changes: dict) -> None:
    """
    Apply schema modifications.

    Parameters
    ----------
    changes
        A dictionary describing the schema changes.

    Returns
    -------
    None

    .. caution::
        Schema changes may break existing data.
    """
    pass


def migrate(version: str) -> bool:
    """
    Migrate the database to the specified version.

    Parameters
    ----------
    version
        The target version to migrate to.

    Returns
    -------
    bool
        True if migration was successful.

    .. caution::
        Always back up before migrating.
    """
    return True
๐Ÿ“„ README.md
# gdtest-rst-caution

Tests caution RST directives in docstrings.
๐Ÿ“„ great-docs.yml
parser: sphinx