← GDG /

#245 gdtest_header_list

#245 gdtest_header_list OK CONFIG
Tests include_in_header with a list of text entries
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

K41
K41include_in_header: listconfig

Source Files

๐Ÿ“ gdtest_header_list/
๐Ÿ“„ __init__.py
"""Package testing include_in_header with a list."""

__version__ = "0.1.0"
__all__ = ["greet", "shout"]


def greet(name: str) -> str:
    """
    Greet someone by name.

    Parameters
    ----------
    name
        The person to greet.

    Returns
    -------
    str
        A greeting string.
    """
    return f"Hello, {name}!"


def shout(msg: str) -> str:
    """
    Convert a message to uppercase.

    Parameters
    ----------
    msg
        The message to shout.

    Returns
    -------
    str
        Uppercased message.
    """
    return msg.upper()
๐Ÿ“„ great-docs.yml
include_in_header:
  - "<meta name=\"gd-list-item-one\" content=\"first-injection\">"
  - text: "<meta name=\"gd-list-item-two\" content=\"second-injection\">"