← GDG /

#179 gdtest_custom_mixed_modes

#179 gdtest_custom_mixed_modes OK CONFIG
Mixed passthrough/raw custom pages with copied assets.
Multiple configured custom page directories mixing passthrough and raw pages, plus copied assets and a hidden page that should not appear in the navbar.
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_mixed_modes/
๐Ÿ“„ __init__.py
"""Test package for mixed custom page modes."""

from .core import render

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


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

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

    Returns
    -------
    str
        The rendered topic.
    """
    return f"rendered: {topic}"
๐Ÿ“ marketing/
๐Ÿ“„ hidden.html
---
title: Hidden Canvas
layout: passthrough
---
<section><p>This page should not appear in the navbar.</p></section>
๐Ÿ“„ launchpad.html
---
title: Launchpad
layout: passthrough
navbar: true
---
<section class="launchpad-hero">
  <h1>Launchpad</h1>
  <p>Custom passthrough content with the Great Docs shell.</p>
</section>
๐Ÿ“ playgrounds/
๐Ÿ“ assets/
๐Ÿ“„ chart.js
window.GDTEST_CUSTOM_CHART = true;
๐Ÿ“„ widget.html
---
layout: raw
navbar: Widget Lab
---
<!DOCTYPE html>
<html>
  <head><title>Widget Lab</title></head>
  <body>
    <script src="assets/chart.js"></script>
    <div id="widget-lab">Raw widget lab</div>
  </body>
</html>
๐Ÿ“„ README.md
# gdtest-custom-mixed-modes

Synthetic package for mixed custom page coverage.
๐Ÿ“„ great-docs.yml
custom_pages:
  - dir: marketing
    output: py
  - dir: playgrounds
    output: demos