← GDG /

#305 gdtest_hero_no_name

#305 gdtest_hero_no_name OK CONFIG
Hero with name suppressed (hero.name: false) plus a logo override
Hero with the name suppressed via hero.name: false plus a hero-specific logo override. Tests that setting hero.name: false removes the name entirely instead of falling back to the package or display name, while the hero still renders the overridden logo.
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/
๐Ÿ“„ hero-logo.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 60" width="240" height="60">
  <rect width="240" height="60" rx="8" fill="#fd7e14"/>
  <text x="120" y="38" text-anchor="middle" fill="#fff" font-size="22" font-weight="bold">NoName</text>
</svg>
๐Ÿ“„ lettermark.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="#fd7e14"/>
  <text x="16" y="22" text-anchor="middle" fill="#fff" font-size="16" font-weight="bold">NN</text>
</svg>
๐Ÿ“ gdtest_hero_no_name/
๐Ÿ“„ __init__.py
"""A package whose hero suppresses the name."""

__version__ = "0.2.0"
__all__ = ["convert"]


def convert(value: str) -> str:
    """
    Convert a value to its canonical form.

    Parameters
    ----------
    value
        The value to convert.

    Returns
    -------
    str
        The converted value.
    """
    return value.strip().lower()
๐Ÿ“„ README.md
# gdtest-hero-no-name

[![PyPI](https://img.shields.io/badge/pypi-v0.2.0-blue)](https://pypi.org/p/gdtest-hero-no-name/)

A package whose hero name is suppressed.

## Features

- Suppressed hero name
- Hero-specific logo override
๐Ÿ“„ great-docs.yml
display_name: Hero No Name
logo: assets/lettermark.svg
hero:
  name: false
  logo: assets/hero-logo.svg
  logo_height: 120px