← GDG /

#170 gdtest_sec_navbar_after

#170 gdtest_sec_navbar_after OK CONFIG
Custom section with navbar_after placement control.
Custom section with navbar_after specified. Section should appear after a specific navbar item. Tests ordering control.
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

๐Ÿ“ cookbook/
๐Ÿ“„ recipe1.qmd
---
title: Recipe One
---

# Recipe One

The first recipe in the cookbook.
๐Ÿ“„ recipe2.qmd
---
title: Recipe Two
---

# Recipe Two

The second recipe in the cookbook.
๐Ÿ“ gdtest_sec_navbar_after/
๐Ÿ“„ __init__.py
"""Test package for custom section with navbar_after."""

from .core import prepare, serve

__all__ = ["prepare", "serve"]
๐Ÿ“„ core.py
"""Core prepare/serve functions."""


def prepare(ingredient: str) -> dict:
    """Prepare an ingredient for cooking.

    Parameters
    ----------
    ingredient : str
        The ingredient to prepare.

    Returns
    -------
    dict
        A dictionary with the prepared ingredient details.

    Examples
    --------
    >>> prepare("tomato")
    {'ingredient': 'tomato', 'status': 'prepared'}
    """
    return {"ingredient": ingredient, "status": "prepared"}


def serve(dish: dict) -> str:
    """Serve a prepared dish.

    Parameters
    ----------
    dish : dict
        A dictionary representing the dish to serve.

    Returns
    -------
    str
        A message indicating the dish has been served.

    Examples
    --------
    >>> serve({"name": "pasta"})
    'Serving pasta'
    """
    return f"Serving {dish.get('name', 'dish')}"
๐Ÿ“„ README.md
# gdtest-sec-navbar-after

Test custom section with navbar_after.
๐Ÿ“„ great-docs.yml
sections:
  - title: Cookbook
    dir: cookbook
    navbar_after: Reference