← GDG /

#181 gdtest_custom_basename_output

#181 gdtest_custom_basename_output OK CONFIG
Nested string custom_pages config with basename-derived output.
String-form custom_pages config pointing at a nested source dir. The deployed path should default to the source basename, and a source .htm file should still render correctly.
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

N7
N7navbar_aftersections

Source Files

๐Ÿ“ gdtest_custom_basename_output/
๐Ÿ“„ __init__.py
"""Test package for basename-derived custom page output."""

from .core import render

__all__ = ["render"]
๐Ÿ“„ core.py
"""Core module for basename-derived custom page tests."""


def render(topic: str = "basename") -> str:
    """Return a simple label for API generation.

    Parameters
    ----------
    topic : str
        A topic label.

    Returns
    -------
    str
        The rendered topic.
    """
    return f"rendered: {topic}"
๐Ÿ“ marketing/
๐Ÿ“ pages/
๐Ÿ“ assets/
๐Ÿ“„ site.css
:root { --launch-home: 1; }
๐Ÿ“„ launch.htm
---
title: Launch Home
layout: passthrough
navbar: Launch Home
---
<section class="launch-home">
  <h1>Launch Home</h1>
  <p>Passthrough page sourced from a nested `.htm` file.</p>
</section>
๐Ÿ“„ README.md
# gdtest-custom-basename-output

Synthetic package for basename-derived custom page output coverage.
๐Ÿ“„ great-docs.yml
custom_pages: marketing/pages