← GDG /

#219 gdtest_hero_readme_badges

#219 gdtest_hero_readme_badges OK CONFIG
Hero section from README with centered-div badges
Hero section from a README with centered-div badges. Tests the Pointblank-style <div align="center"> pattern where badges are extracted from inside a centered block and the block is stripped.
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="#e35027"/>
</svg>
๐Ÿ“ gdtest_hero_readme_badges/
๐Ÿ“„ __init__.py
"""A test package for centered-div badge extraction."""

__version__ = "0.2.0"
__all__ = ["validate"]


def validate(data: dict) -> bool:
    """
    Validate a data dictionary.

    Parameters
    ----------
    data
        The data to validate.

    Returns
    -------
    bool
        True if valid.
    """
    return bool(data)
๐Ÿ“„ README.md
# gdtest-hero-readme-badges

<div align="center">
<img src="https://example.com/hero-image.png" width="350">
<br />
*A package with centered-div badge extraction*
<br />
[![PyPI](https://img.shields.io/badge/pypi-v0.2.0-blue)](https://pypi.org/p/gdtest-hero-readme-badges/)
[![CI](https://img.shields.io/badge/CI-passing-brightgreen)](https://github.com/ci)
[![Coverage](https://codecov.io/gh/example/badge.svg)](https://codecov.io/gh/example)
</div>

## Overview

This package demonstrates the centered-div badge extraction pattern.

## Features

- Validates data dictionaries
- Simple and fast
๐Ÿ“„ great-docs.yml
display_name: Hero Badges
logo: assets/logo.svg