← GDG /

#244 gdtest_header_text

#244 gdtest_header_text OK CONFIG
Tests include_in_header with a single inline string
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

K40
K40include_in_header: stringconfig

Source Files

๐Ÿ“ gdtest_header_text/
๐Ÿ“„ __init__.py
"""Package testing include_in_header with a string."""

__version__ = "0.1.0"
__all__ = ["add", "multiply"]


def add(a: int, b: int) -> int:
    """
    Add two numbers.

    Parameters
    ----------
    a
        First number.
    b
        Second number.

    Returns
    -------
    int
        Sum.
    """
    return a + b


def multiply(a: int, b: int) -> int:
    """
    Multiply two numbers.

    Parameters
    ----------
    a
        First number.
    b
        Second number.

    Returns
    -------
    int
        Product.
    """
    return a * b
๐Ÿ“„ great-docs.yml
include_in_header: "<meta name=\"gd-custom-test\" content=\"header-text-injected\">"