← GDG /

#226 gdtest_hero_auto_logo

#226 gdtest_hero_auto_logo OK CONFIG
Auto-detect hero logo files from assets/logo-hero.svg
Auto-detect hero logo files from conventional paths. Tests that placing logo-hero.svg and logo-hero-dark.svg in assets/ causes the hero to use those files without explicit hero.logo config.
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

K13
K13funding configconfig

Source Files

๐Ÿ“ assets/
๐Ÿ“„ logo-hero-dark.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 50" width="200" height="50">
  <rect width="200" height="50" rx="8" fill="#4da3ff"/>
  <text x="100" y="33" text-anchor="middle" fill="#fff" font-size="20" font-weight="bold">Hero Logo</text>
</svg>
๐Ÿ“„ logo-hero.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 50" width="200" height="50">
  <rect width="200" height="50" rx="8" fill="#2780e3"/>
  <text x="100" y="33" text-anchor="middle" fill="#fff" font-size="20" font-weight="bold">Hero Logo</text>
</svg>
๐Ÿ“„ logo.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
  <rect width="32" height="32" rx="6" fill="#2780e3"/>
  <text x="16" y="22" text-anchor="middle" fill="#fff" font-size="16" font-weight="bold">NB</text>
</svg>
๐Ÿ“ gdtest_hero_auto_logo/
๐Ÿ“„ __init__.py
"""A package with auto-detected hero logo files."""

__version__ = "0.1.0"
__all__ = ["transform"]


def transform(data: str) -> str:
    """
    Transform input data.

    Parameters
    ----------
    data
        The data to transform.

    Returns
    -------
    str
        The transformed data.
    """
    return data
๐Ÿ“„ README.md
# gdtest-hero-auto-logo

A package with auto-detected hero logo files.

## Features

- Transforms data
๐Ÿ“„ great-docs.yml
display_name: Hero Auto Logo
logo: assets/logo.svg