Hero Wordmark
A package with separate hero and navbar logos
Links
AI / Agents
gdtest-hero-wordmark
A package with separate hero and navbar logos.
Features
- Renders templates
Separate hero wordmark logo (light/dark) from navbar lettermark. Tests that hero.logo can specify a different image with light/dark variants from the top-level logo used in the navbar.
Source files
assets/
lettermark-dark.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="#4da3ff"/> <text x="16" y="22" text-anchor="middle" fill="#fff" font-size="16" font-weight="bold">LM</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="#2780e3"/> <text x="16" y="22" text-anchor="middle" fill="#fff" font-size="16" font-weight="bold">LM</text> </svg>
wordmark-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">Wordmark</text> </svg>
wordmark.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">Wordmark</text> </svg>
gdtest_hero_wordmark/
__init__.py
"""A package with separate hero and navbar logos."""
__version__ = "0.1.0"
__all__ = ["render"]
def render(template: str) -> str:
"""
Render a template string.
Parameters
----------
template
The template to render.
Returns
-------
str
The rendered output.
"""
return templateREADME.md
# gdtest-hero-wordmark A package with separate hero and navbar logos. ## Features - Renders templates
great-docs.yml
display_name: Hero Wordmark
logo:
light: assets/lettermark.svg
dark: assets/lettermark-dark.svg
hero:
logo:
light: assets/wordmark.svg
dark: assets/wordmark-dark.svg
logo_height: 100px