← GDG /

#194 gdtest_theme_cosmo

#194 gdtest_theme_cosmo OK CONFIG
Tests site.theme: 'cosmo' config.
Tests site.theme: 'cosmo'. The site should render with the Cosmo Bootstrap theme. All pages should apply the theme consistently.
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

Q1
Q1Cosmo themetheme

Source Files

๐Ÿ“ gdtest_theme_cosmo/
๐Ÿ“„ __init__.py
"""Package testing site theme cosmo config."""

__all__ = ["style", "theme"]


def style(text: str) -> str:
    """Apply a style transformation to the text.

    Parameters
    ----------
    text : str
        The text to style.

    Returns
    -------
    str
        The styled text.

    Examples
    --------
    >>> style("hello")
    'HELLO'
    """
    return text.upper()


def theme(name: str) -> dict:
    """Get a theme configuration by name.

    Parameters
    ----------
    name : str
        The name of the theme.

    Returns
    -------
    dict
        A dictionary of theme settings.

    Examples
    --------
    >>> theme("dark")
    {'name': 'dark', 'bg': '#000'}
    """
    return {"name": name, "bg": "#000"}
๐Ÿ“„ README.md
# gdtest-theme-cosmo

Test site theme cosmo config.
๐Ÿ“„ great-docs.yml
site:
  theme: cosmo