Skip to content

fix: support documentation beside its package directory - #860

Merged
has2k1 merged 1 commit into
mainfrom
fix/sibling-documentation-config
Dec 4, 2026
Merged

has2k1 merged 1 commit into
mainfrom
fix/sibling-documentation-config

Conversation

@has2k1

@has2k1 has2k1 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Monorepo authors can set package_root to build documentation in a sibling directory while keeping package metadata and API discovery. Previously, Great Docs refused a configuration outside the package directory, which prevented projects such as Cartiflette from building with their existing layout.

package_root: ../python-package/cartiflette  # Relative to great-docs.yml

Omit package_root to use automatic package discovery. Build from the repository root with great-docs build --config doc/great-docs.yml for the layout shown here.

Package Info on the Cartiflette site:

Cartiflette’s Package Info page listing dependencies from the sibling Python package

Let a documentation configuration select its package directory so monorepo sites keep package metadata and API discovery. Keep the generated site, Quarto project and cache alongside the configuration.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 47340613389

# or always the latest build for this PR
great-docs preview --pr 860
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@has2k1
has2k1 merged commit bb48b99 into main Dec 4, 2026
7 checks passed
@has2k1
has2k1 deleted the fix/sibling-documentation-config branch December 4, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant