Skip to content

fix: let sites publish their scripts directory - #862

Merged
has2k1 merged 1 commit into
mainfrom
fix/publish-authored-scripts
Dec 4, 2026
Merged

has2k1 merged 1 commit into
mainfrom
fix/publish-authored-scripts

Conversation

@has2k1

@has2k1 has2k1 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Site authors can publish their own scripts/ directory through site_root.files. Great Docs previously reserved that directory for render hooks, so the documented MIKE IO download at scripts/diff.py returned a 404. Render hooks now run from a private build directory.

site_root:
  files: ["scripts/*.py"]

Before (the MIKE IO script URL):

HTTP 404 at the documented MIKE IO script URL

After (the same URL):

Python source served at the documented MIKE IO script URL

Stage render hooks in a private directory so authored downloads publish at
their original URLs. Exclude staged hooks from site root resource globs.
@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 47340649402

# or always the latest build for this PR
great-docs preview --pr 862
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 0d78f7e into main Dec 4, 2026
7 checks passed
@has2k1
has2k1 deleted the fix/publish-authored-scripts 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