agentleFS
PaldomPaldom/github-skills/skills/docs-site/SKILL.md

docs-site

Skill1 starsChanged 3 months agoMITView on GitHub

Stands up, deploys, or fixes a documentation site on GitHub Pages - generator choice (MkDocs, Sphinx, Docusaurus, Starlight), an API reference built from docstrings via mkdocstrings or autodoc, the official Actions workflow, base-path/.nojekyll/custom-domain pitfalls, versioning. Use for publishing docs to github.io or debugging a broken/unstyled Pages deploy. Not for writing the docs content, the README, or branch protections.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. INERATE/atelier★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository11 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't re-litigate a working generator — fix forward.

    line 32
  2. Distinctive:

    Check: Run and fix what it reports:

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

docs-site

Ships a documentation site that deploys correctly the first time. Models get this wrong in predictable ways: stale gh-pages-branch workflows from old blog posts, the official workflow but the Pages source never flipped (green workflow, 404 site), base paths missed so the site works locally and renders unstyled on github.io, and versioning bolted onto an incompatible deploy model. This skill encodes the current official pipeline and the fixes.

When NOT to use

  • Writing or restructuring the documentation content → docs-author (the two compose: pipeline here, prose there).
  • The README → readme-author.
  • Branch rulesets, secret scanning, Actions hardening → repo-protections.
  • Repo description/topics/social preview → repo-discoverability.
  • Hosting on Read the Docs, Netlify, Vercel, or app deployments → out of scope by design; say so in one line and stop.

Workflow

  1. Inspect. Ecosystem and language, existing docs config and docs/ tree, existing workflows, whether a gh-pages branch exists, current Pages state (gh api repos/{owner}/{repo}/pages when authenticated). Don't re-litigate a working generator — fix forward.
  2. Choose the generator with references/generator-choice.md: by ecosystem and needs, not hosting; note the Material-for-MkDocs maintenance-mode caveat for new long-horizon sites. Below the navigational-need threshold, recommend staying README-only and stop.
  3. Configure with the base path first. Project sites serve under /<repo>/ — set the generator's site_url/baseUrl/base per the table in references/pages-deploy.md. Turn on strict builds (mkdocs build --strict, sphinx-build -W; Docusaurus throws on broken links by default). Shape the landing page per references/generator-choice.md: hero when visitors are still choosing, docs-first when they arrive convinced; ≤2 clicks (ideally 0) from landing to a runnable command.
  4. Pick ONE deploy model — never mix:
    • Versioned MkDocs docs via mike → branch publishing (gh-pages), with .nojekyll and aliases (mike deploy X latest --update-aliases, mike set-default latest).
    • Everything else → the official artifact workflow: build job (configure-pages → strict build → upload-pages-artifact) then deploy job (deploy-pages) with permissions: pages: write + id-token: write, environment github-pages, deploying from the default branch only. Start from https://github.com/actions/starter-workflows/tree/main/pages for current action versions rather than hardcoding pins.
  5. Flip the source. Settings → Pages → Source = "GitHub Actions" (or gh api repos/{owner}/{repo}/pages -X POST -f build_type=workflow; -X PUT if the site exists). A green workflow with a 404 site means this step was skipped. List every manual step you can't perform.
  6. Verify live, not locally. Fetch the deployed page_url; check styling and a deep link. Symptom → cause → fix table in references/pages-deploy.md (base path, .nojekyll, permissions, entry file).
  7. Docs CI. On PRs: strict build + internal link check, blocking, path-filtered to docs changes. External links: scheduled weekly with retries, non-blocking — flaky 403s train people to ignore CI. Deploy never runs from PRs.
  8. Optional extras, in order of value: custom domain (verify-first order and exact DNS records in the reference), versioning only when released versions genuinely differ, llms.txt as a one-line build plugin (agent-readiness insurance, not SEO).
  9. Check. Run and fix what it reports:
    python3 "${CLAUDE_SKILL_DIR}/scripts/check_pages_setup.py"

Output spec

A site reachable at its real URL with styling and working deep links; a workflow with the exact required permissions deploying only from the default branch; strict build + link check gating PRs; one deploy model, stated; every manual settings step listed explicitly for the owner.

Gotchas

  • Green workflow, 404 site → Pages source not set to "GitHub Actions" (step 5).
  • Works locally, broken on github.io → base path (the #1 failure).
  • .nojekyll matters for branch publishing only — Actions artifacts skip Jekyll entirely; branch-mode Jekyll silently drops _-prefixed dirs (Sphinx _static, _next).
  • Custom domain: with Actions publishing the domain lives in repo settings (CNAME files are ignored); with branch publishing the CNAME file must survive force-pushes. Verify the domain (TXT record) before DNS; a dangling CNAME record is a takeover.
  • Branch-mode builds are not triggered by GITHUB_TOKEN-pushed commits — the site silently never updates.
  • Hidden files (.well-known/) are excluded from Pages artifacts by default — the opt-out flag needs a current upload action (versions in the troubleshooting table).
  • A Pages site is public even from a private repo (plan gating in the reference).
  • Old pinned Pages actions hard-fail (artifacts-v4 cutoff); bump majors rather than debugging them.

Files

  • references/generator-choice.md — decision table, Material maintenance caveat, versioning mechanisms, generated API reference, mixed-language strategy, search, landing-page anatomy.
  • references/pages-deploy.md — verified Pages facts: publishing sources, canonical workflow, base paths, custom domains/DNS, limits, llms.txt status, troubleshooting table.
  • scripts/check_pages_setup.py — deterministic setup check: workflow permissions/triggers, base-path config, gh-pages/.nojekyll, CNAME-mode mismatches; non-zero exit on definite errors.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.