Skip to content

feat(docs): docs:check --site root redirects and per-document output overrides #123

Open

Description

@Data-Wise

Split from #111 (SPEC rev 2, SPEC-site-audit-quarto-devmode-2026-10-31.md at 80685cf). #111 maps .qmd articles,
resolves development.mode, and handles article output extensions. Two of its acceptance fixtures are deferred here.

Scope

  1. Root redirects. The --site redirect handler accepts only same-origin redirects, at most 3 hops. No design
    yet for a site whose root redirects to a versioned or dev/ location, or how that interacts with the strict base
    match (requested == config.url + prefix).
  2. Per-document output overrides beyond the output-extension handling in feat(docs): audit Quarto articles and pkgdown development-mode routes #111: output-file, output-ext and
    similar Quarto/R Markdown keys that change an article's route.

Interim behavior (from #111)

A redirect or override the #111 mapper does not recognize is incomplete with a specific reason. It never produces an
invented route and never a green result.

Acceptance

  • Fixtures for each supported redirect shape and override key, plus negative controls (an unsupported shape stays
    incomplete; a wrong target is caught).
  • Real-network smoke test against a pinned site that redirects at the root.
  • A2 impact assessed: changes to lib/_docsite.py force a fresh A2 re-attestation on ubuntu-24.04 and macos-15.
  • Docs and native skill guidance updated. No release authorized by this issue.

Depends on

#111 (the strict base match and the pre_network_block flag).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions