← GDG /

#183 gdtest_custom_missing_dir_combo

#183 gdtest_custom_missing_dir_combo OK CONFIG
Missing custom page dir is skipped while valid entries still render.
Multi-entry custom_pages config where one source directory is missing. The missing entry should be skipped while the valid one still renders and registers resources 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_missing_dir_combo/
๐Ÿ“„ __init__.py
"""Test package for missing custom page directory handling."""

from .core import render

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


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

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

    Returns
    -------
    str
        The rendered topic.
    """
    return f"rendered: {topic}"
๐Ÿ“ playgrounds/
๐Ÿ“„ widget.html
---
layout: raw
navbar: Widget Lab
---
<!DOCTYPE html>
<html>
  <head><title>Widget Lab</title></head>
  <body>
    <main id="widget-lab">Only the existing custom dir should render.</main>
  </body>
</html>
๐Ÿ“„ README.md
# gdtest-custom-missing-dir-combo

Synthetic package for missing custom page directory coverage.
๐Ÿ“„ great-docs.yml
custom_pages:
  - dir: ghost-pages
    output: ghost
  - dir: playgrounds
    output: demos