← GDG /

#230 gdtest_announce_dict

#230 gdtest_announce_dict OK CONFIG
Tests announcement banner with dict config (type, url, dismissable)
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

K26
K26announcement: dictconfig

Source Files

๐Ÿ“ gdtest_announce_dict/
๐Ÿ“„ __init__.py
"""Package testing announcement banner with dict config."""

__version__ = "0.1.0"
__all__ = ["compute", "validate"]


def compute(x: int, y: int) -> int:
    """
    Compute the sum of two values.

    Parameters
    ----------
    x
        First value.
    y
        Second value.

    Returns
    -------
    int
        The sum of x and y.
    """
    return x + y


def validate(data: dict) -> bool:
    """
    Validate a data dictionary.

    Parameters
    ----------
    data
        The data to validate.

    Returns
    -------
    bool
        True if the data is valid.
    """
    return bool(data)
๐Ÿ“„ great-docs.yml
announcement:
  content: Version 2.0 is here!
  type: success
  dismissable: false
  url: "https://example.com/changelog"