← GDG /

#178 gdtest_custom_raw_navbar_after

#178 gdtest_custom_raw_navbar_after OK CONFIG
Raw custom page inserted after the User Guide navbar item.
Configured custom pages using a raw HTML page published under a custom output prefix. The page should be served unchanged and inserted after the User Guide navbar item.
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_raw_navbar_after/
๐Ÿ“„ __init__.py
"""Test package for raw custom page navbar placement."""

from .core import render

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


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

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

    Returns
    -------
    str
        The rendered topic.
    """
    return f"rendered: {topic}"
๐Ÿ“ playgrounds/
๐Ÿ“„ playground.html
---
layout: raw
navbar:
  text: Playground
  after: User Guide
---
<!DOCTYPE html>
<html>
  <head><title>Playground</title></head>
  <body>
    <main id="playground-root">Raw playground content</main>
  </body>
</html>
๐Ÿ“ user_guide/
๐Ÿ“„ intro.qmd
---
title: Intro
---

# Intro

User guide intro.
๐Ÿ“„ README.md
# gdtest-custom-raw-navbar-after

Synthetic package for raw custom page navbar-after coverage.
๐Ÿ“„ great-docs.yml
custom_pages:
  dir: playgrounds
  output: experiments