← GDG /

#274 gdtest_homepage_ug_subdirs

#274 gdtest_homepage_ug_subdirs OK CONFIG
Blended homepage: user_guide with subdirectory structure + section with asset directories
Combines homepage: user_guide with a user guide that has subdirectories (root index.qmd + 00-getting-started/ + 01-advanced/) and a custom Examples section whose source dir contains asset subdirectories (data/, img/). Tests three fixes: (1) root index.qmd sorts first despite numbered files in subdirs, (2) blended index locates the first page using the full relative path, (3) section asset directories are copied to the build directory.
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

G7 M4 N1
G7Blended UG homepagelanding
M4Subdirectory UGuser_guide
N1Examples sectionsections

Source Files

๐Ÿ“ examples/
๐Ÿ“ data/
๐Ÿ“„ sample.csv
name,value
alpha,1
beta,2
gamma,3
๐Ÿ“ img/
๐Ÿ“„ diagram.txt
placeholder-diagram-content
๐Ÿ“„ 01-basic-usage.qmd
---
title: Basic Usage
---

# Basic Usage

A simple example reading data from a local file.

The data file is located at `../data/sample.csv`.
๐Ÿ“„ 02-advanced-patterns.qmd
---
title: Advanced Patterns
---

# Advanced Patterns

An advanced example using images and data.

![Diagram](../img/diagram.txt)
๐Ÿ“ gdtest_homepage_ug_subdirs/
๐Ÿ“„ __init__.py
"""A test package for blended homepage with subdir user guide."""

__version__ = "0.1.0"
__all__ = ["process", "analyze"]


def process(data: list) -> list:
    """
    Process a list of data items.

    Parameters
    ----------
    data
        The input data to process.

    Returns
    -------
    list
        The processed data.
    """
    return [x * 2 for x in data]


def analyze(data: list) -> dict:
    """
    Analyze a list of data items.

    Parameters
    ----------
    data
        The input data to analyze.

    Returns
    -------
    dict
        Analysis results.
    """
    return {"count": len(data), "sum": sum(data)}
๐Ÿ“ user_guide/
๐Ÿ“ 00-getting-started/
๐Ÿ“„ 01-quickstart.qmd
---
title: Quickstart
---

# Quickstart

Get up and running in minutes.

```python
from gdtest_homepage_ug_subdirs import process
result = process([1, 2, 3])
```
๐Ÿ“„ index.qmd
---
title: Getting Started
---

# Getting Started

This section covers installation and basic setup.
๐Ÿ“ 01-advanced/
๐Ÿ“„ 01-analysis.qmd
---
title: Analysis
---

# Analysis

Learn how to use the analyze function for data insights.
๐Ÿ“„ index.qmd
---
title: Welcome
---

# Welcome

Welcome to the project documentation! This root index page should
become the site landing page in blended homepage mode.

## Overview

This project provides data processing and analysis utilities.
๐Ÿ“„ README.md
# gdtest-homepage-ug-subdirs

Test blended homepage with subdir UG and section assets.
๐Ÿ“„ great-docs.yml
homepage: user_guide
sections:
  - title: Examples
    dir: examples