← GDG /

#236 gdtest_gradient_slate

#236 gdtest_gradient_slate OK CONFIG
Tests announcement banner with slate gradient preset
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

K32
K32gradient: slateconfig

Source Files

๐Ÿ“ gdtest_gradient_slate/
๐Ÿ“„ __init__.py
"""Package testing slate gradient preset."""

__version__ = "0.1.0"
__all__ = ["carve", "polish"]


def carve(shape: str) -> str:
    """
    Carve a shape from slate.

    Parameters
    ----------
    shape
        Desired shape.

    Returns
    -------
    str
        Result description.
    """
    return f"Carved {shape}"


def polish(grit: int) -> str:
    """
    Polish the slate surface.

    Parameters
    ----------
    grit
        Sandpaper grit level.

    Returns
    -------
    str
        Result description.
    """
    return f"Polished with {grit} grit"
๐Ÿ“„ great-docs.yml
announcement:
  content: Slate gradient test banner!
  style: slate