#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.
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