← GDG /

#224 gdtest_hero_explicit_badges

#224 gdtest_hero_explicit_badges OK CONFIG
Hero with explicit badge list (not auto-extracted)
Hero with an explicit badge list instead of auto-extraction. Tests that providing a list under hero.badges displays those explicit badges rather than extracting from the README.
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.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
  <circle cx="16" cy="16" r="14" fill="#fd7e14"/>
</svg>
๐Ÿ“ gdtest_hero_explicit_badges/
๐Ÿ“„ __init__.py
"""A package with explicit hero badges."""

__version__ = "0.2.0"
__all__ = ["parse"]


def parse(text: str) -> list:
    """
    Parse text into tokens.

    Parameters
    ----------
    text
        The text to parse.

    Returns
    -------
    list
        A list of tokens.
    """
    return text.split()
๐Ÿ“„ README.md
# gdtest-hero-explicit-badges

[![README Badge](https://img.shields.io/badge/readme-badge-red)](https://example.com/readme)

A package with manually specified hero badges.

## Features

- Explicit badge list
๐Ÿ“„ great-docs.yml
display_name: Explicit Badges
logo: assets/logo.svg
hero:
  badges:
    - alt: Custom Badge
      img: "https://img.shields.io/badge/custom-badge-purple"
      url: "https://example.com/custom"
    - alt: Status
      img: "https://img.shields.io/badge/status-stable-brightgreen"