{"data":{"slug":"discovered-2f3adad9923ba7bc33654a1e17c7f29c6b9f4002bb88e72e","title":"GitHub Pages Documentation Layout","summary":"Organize a project's README and GitHub Pages docs with a user-first approach: short README, just-the-docs Jekyll site, a page per feature, and a developer guide.","url":"https:\/\/skillshunter.net\/skills\/discovered-2f3adad9923ba7bc33654a1e17c7f29c6b9f4002bb88e72e","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-2f3adad9923ba7bc33654a1e17c7f29c6b9f4002bb88e72e","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-2f3adad9923ba7bc33654a1e17c7f29c6b9f4002bb88e72e.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-2f3adad9923ba7bc33654a1e17c7f29c6b9f4002bb88e72e\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The include must be named `nav_footer_custom.html` and contain no Liquid syntax (`{%` or `{{`). It must also be non-empty to avoid suppressing the theme's footer attribution.","instructions":"---\nname: github-pages\ndescription: >-\n  Lay out a project's README and GitHub Pages docs user-first: short README, just-the-docs Jekyll site,\n  a page per feature, a developer guide.\n  TRIGGER when: setting up docs\/ or a GitHub Pages site, restructuring a README that links to GH Pages,\n  adding a feature page, or aligning docs with this layout or bga-assistant.\n  DO NOT TRIGGER when: docs outside docs\/, or another docs framework (Docusaurus, MkDocs, VitePress).\nallowed-tools: Read, Edit, Write, Glob, Grep, Bash(git rev-parse:*)\n---\n\n# GitHub Pages Documentation Layout\n\n## Context\n- Repo root: !`git rev-parse --show-toplevel 2>\/dev\/null || pwd`\n\n## Working directory\n\nAll `README.md`, `docs\/`, `docs\/index.md`, `docs\/pages\/`, `docs\/_config.yml`, `docs\/screenshots\/` paths in this skill are relative to **Repo root** from Context. The cwd may be a subdirectory \u2014 prefix every Read\/Edit\/Write\/Grep\/Glob with the Repo root value. Bare paths are cwd-relative and will silently miss the actual root.\n\nUse this skill when organizing project-level documentation into a README plus a GitHub Pages Jekyll site running the `just-the-docs` theme. The goal is a consistent shape across repos: the README sells the project in under a screen, every user-facing capability gets its own sidebar entry, and developers get a single Developer guide that may itself have technical child pages.\n\nReference implementations:\n\n- **jsonl-logs-intellij-plugin** \u2014 modern just-the-docs reference. Single product with deep splitting (Usage parent + 6 children, Development parent + 2 children).\n- **chrome-assistant** \u2014 monorepo variant (one product per subfolder under `docs\/pages\/`).\n- **bga-assistant** \u2014 just-the-docs flat variant; game pages grouped under a `Games` parent, a game-agnostic feature page (Play-time tracking) at top level, and a Development page with the data-flow reference nested under it via front matter.\n\nRead the target repo's `README.md`, `docs\/index.md`, `docs\/_config.yml`, and one or two child pages before writing new docs \u2014 copy their tone and shape.\n\n## Core principles\n\n1. **Single source of truth lives on GitHub Pages.** The README is an entry point, not a manual. If something takes more than a paragraph, it belongs on a page and the README links to it.\n2. **User perspective by default.** Every page outside the Developer guide is written for someone using the thing, not building it. No build commands, no internal module names, no architecture diagrams \u2014 those live under `development`.\n3. **One Developer guide.** The Developer guide may have child pages (Architecture, Extension points, etc.) \u2014 split when the parent page exceeds ~200 lines or covers distinct reference topics.\n4. **Theme-driven navigation.** The sidebar is generated by `just-the-docs` reading front matter (`nav_order`, `parent`, `has_children`). Do not write manual nav strips on pages \u2014 the theme renders them.\n5. **Screenshots live in `docs\/screenshots\/`** and are referenced from every page that needs them. Keeping that set honest afterwards \u2014 dangling references, orphaned files, and shots of UI the code has since changed \u2014 belongs to `~\/.claude\/skills\/screenshot-relevance\/SKILL.md`, which re-checks it on every change set; taking and filing a shot belongs to `~\/.claude\/skills\/docs-screenshot\/SKILL.md`.\n\n## File layout\n\nFlat variant (single product, several user-facing capabilities):\n\n```\nREADME.md\ndocs\/\n  _config.yml\n  _includes\/\n    nav_footer_custom.html    # an HTML comment \u2014 drops the theme's footer attribution\n  index.md                    # nav_order: 1, the homepage\n  pages\/\n    usage.md                  # nav_order: 2, has_children: true (parent stub)\n    usage\/\n      <feature-a>.md          # parent: Usage, nav_order: 1\n      <feature-b>.md          # parent: Usage, nav_order: 2\n      ...\n    development.md            # nav_order: 3, has_children: true\n    development\/\n      architecture.md         # parent: Development, nav_order: 1\n      extending.md            # parent: Development, nav_order: 2\n    privacy.md                # if the product handles user data\n  screenshots\/\n    *.png\n```\n\nMonorepo variant (several products sharing one docs site):\n\n```\nREADME.md\ndocs\/\n  _config.yml\n  index.md\n  pages\/\n    <product-a>.md            # nav_order: 2, has_children: true\n    <product-a>\/\n      <feature>.md            # parent: <Product A>, nav_order: 1\n    <product-b>.md            # nav_order: 3, has_children: true\n    <product-b>\/\n      <feature>.md\n    development.md            # nav_order: 99 (last), has_children: true\n    development\/\n      <product-a>-architecture.md\n      <product-b>-architecture.md\n  screenshots\/\n    *.png\n```\n\n**Splitting heuristic**: a single page becomes a parent + children once it grows past ~200 lines OR has 5+ distinct H2 sections that read as separate references rather than a continuous narrative.\n\n## docs\/_config.yml\n\nMinimal Jekyll config using `just-the-docs` as a remote theme:\n\n```yaml\ntitle: <Project Name>\ndescription: <same tagline used in README \/ index.md>\nremote_theme: just-the-docs\/just-the-docs@<latest-release-tag>\nbaseurl: \/<repo-name>\nplugins:\n  - jekyll-remote-theme\ncolor_scheme: light\nsearch_enabled: true\nheading_anchors: true\naux_links:\n  \"View on GitHub\":\n    - \"https:\/\/github.com\/<owner>\/<repo-name>\"\n\nexclude:\n  - plans\/                    # internal planning docs, if any\n  - screenshots\/*.py          # helper scripts kept beside the docs, if any\n```\n\nEverything under the source directory that is not excluded or prefixed with `_` or `.` is published, so a check or capture script kept beside the docs ships on the site as a static file. `exclude` takes globs: listing `screenshots\/*.py` rather than each script by name covers the next one added (verified 2026-09-24 against a local `github-pages` gem build, with the old per-file list as the control).\n\n### Link back to the repository\n\nThe `aux_links` key puts a \"View on GitHub\" link in the site's top bar, on every page. Without it a reader who arrives at the published docs has no way to reach the source, the issues or the releases short of editing the URL. The theme renders the key as the link text and the first list item as its target.\n\n### Pin the remote theme\n\n`remote_theme` without a `@ref` resolves to the theme repo's **default branch HEAD on every rebuild** \u2014 the build log says so plainly (`Downloading ...\/just-the-docs\/zip\/HEAD`). An upstream commit then changes the site with nothing changing in the repo, and nothing triggers it until the next unrelated docs edit, which makes the eventual breakage look like it came from whatever you touched that day. `owner\/name@ref` is documented jekyll-remote-theme syntax and takes a tag.\n\nResolve the current tag rather than hardcoding one \u2014 `gh api repos\/just-the-docs\/just-the-docs\/releases\/latest --jq .tag_name` \u2014 and treat it like any other dependency: bump deliberately, not on every run. Note the theme's releases lag its default branch by months, so pinning moves the site *backwards* from HEAD; check that anything the site relies on from recent theme source (an include's contents, a variable's default) exists at the tag before pinning.\n\n### Content width\n\n**Leave `$content-width` at the theme default** unless you have read `~\/.claude\/learnings\/just-the-docs-customization.md` and accepted what it costs. It looks like a width knob and is not one: the default is `50rem` (800px), and `md` and `lg` in the theme's `$media-queries` are *derived* from it \u2014 `md` being the window width at which `.side-bar` stops rendering as a mobile header. The frequently-copied `$content-width: 87.5rem` therefore pushes the sidebar to 1400px, so a 1366px laptop gets the mobile layout.\n\nNor can the two be separated. At `lg`, `.side-bar` and `.side-bar + .main`'s `margin-left` are both computed from `$nav-width + $content-width`, so forcing a wider `.main` in `_sass\/custom\/custom.scss` overflows the right edge on mid-size windows. If you do override it, override the variable in `_sass\/custom\/setup.scss`, in `rem` \u2014 GitHub Pages uses sass 3.x, which rejects mixed `px`\/`rem` arithmetic.\n\nA wide table is usually better served by letting the theme's `.table-wrapper` scroll. And do NOT re-derive the width from `.main-content { max-width: ... }` \u2014 width belongs to `$content-width`. (The class itself does exist, contrary to what this line used to say; see `~\/.claude\/learnings\/just-the-docs-customization.md`.)\n\n### Footer attribution\n\njust-the-docs renders \"This site uses Just the Docs, a documentation theme for Jekyll.\" Remove it **by default** by adding `docs\/_includes\/nav_footer_custom.html` containing an HTML comment and nothing else \u2014 Jekyll resolves local `_includes\/` before the remote theme, same precedence as the `_sass\/` overrides.\n\nThree things about that sentence are counter-intuitive enough to get wrong; `~\/.claude\/learnings\/just-the-docs-customization.md` has the verified detail:\n\n- The include is **`nav_footer_custom.html`**. The similarly-named `footer_custom.html` is an unrelated `site.footer_content` hook \u2014 shadowing it suppresses a feature and leaves the attribution in place.\n- It must be **non-empty**. The theme guards on `!= \"\"` and ships a 0-byte copy, so an empty override prints the attribution rather than removing it.\n- It must contain **no `{%` or `{{`**, even inside the comment. An include is parsed as Liquid first, so quoting the theme's own guard there fails the Pages build with an unclosed-`if` error.\n\nVerify with comments stripped, and only after confirming the `pages build and deployment` run succeeded \u2014 a failed build keeps serving the previous deploy, which reads exactly like a change that did nothing.\n\n## Front matter cheat sheet\n\n| Key | When to use |\n|---|---|\n| `layout: default` | Required on every page |\n| `title: <Name>` | Sidebar label; required |\n| `nav_order: N` | Sidebar order \u2014 local to the level (top-level or within a parent's children) |\n| `parent: <Title>` | Marks a page as a child; must match the parent's `title:` exactly |\n| `has_children: true` | On a parent page; expands the disclosure arrow in the sidebar |\n| `nav_exclude: true` | Hide a page from the sidebar entirely (rare \u2014 prefer parent\/child structure) |\n\n## docs\/index.md shape\n\nThe homepage (`nav_order: 1`). Mirrors the README but lives inside the site.\n\n```markdown\n---\nlayout: default\ntitle: Home\nnav_order: 1\n---\n\n*<One-line tagline \u2014 same as README, italicized.>*\n\n<Context paragraph: what kind of thing this is (form factor, supported platforms) plus the one or two core capabilities a visitor sees first \u2014 not a features rundown; those stay in the Features list.>\n\n<a href=\"screenshots\/<cover>.png\"><img src=\"screenshots\/<cover>.png\" alt=\"<descriptive alt>\" width=\"1000\"><\/a>\n\n## Example  (optional \u2014 if a concrete before\/after illustrates the value)\n\n<Input \u2192 output illustration.>\n\n## Features\n\n- **<Feature 1>** \u2014 one-line user-visible description\n- **<Feature 2>** \u2014 ...\n\n## Install  (omit when a dedicated Installation page leads the Next steps list)\n\n<One-line pointer to the Developer guide or distribution channel.>\n\n## Next steps\n\n- **[Usage](pages\/usage)** \u2014 <one-line description of what the user finds there>\n- **[Developer guide](pages\/development)** \u2014 <one-line description>\n```\n\n`index.md` does NOT contain a usage walkthrough or screenshots beyond the cover \u2014 those live in the user-facing pages. Keep it focused: what is this, what does it do, where do I learn more.\n\n## docs\/pages\/<feature>.md \u2014 parent stub (when split into children)\n\nWhen a feature is large enough to need children, the parent page is a brief landing:\n\n```markdown\n---\nlayout: default\ntitle: <Feature Name>\nnav_order: 2\nhas_children: true\n---\n\n<One-paragraph intro for the whole topic.>\n\n<a href=\"..\/screenshots\/<hero>.png\"><img src=\"..\/screenshots\/<hero>.png\" alt=\"...\" width=\"1000\"><\/a>\n\n## <Onboarding section, e.g. Installation>\n\n<Brief content \u2014 anything that's \"before you start using the feature\".>\n```\n\nThe parent doesn't repeat content from its children. `just-the-docs` auto-renders a child list at the bottom of the parent, so users can navigate into details from the parent body or from the sidebar.\n\n## docs\/pages\/<feature>\/<sub>.md \u2014 child page\n\n```markdown\n---\nlayout: default\ntitle: <Sub-feature Name>\nparent: <Feature Name>\nnav_order: 1\n---\n\n<Direct content \u2014 no nav strip, no top-bar, the theme handles navigation.>\n\n![<Alt>](..\/..\/screenshots\/<file>.png)\n```\n\n**Image path conventions:**\n\n| Page location | Path to `docs\/screenshots\/foo.png` |\n|---|---|\n| `docs\/index.md` | `screenshots\/foo.png` |\n| `docs\/pages\/<feature>.md` | `..\/screenshots\/foo.png` |\n| `docs\/pages\/<feature>\/<sub>.md` | `..\/..\/screenshots\/foo.png` |\n\n**Every screenshot needs a visible edge, and it belongs in the image, not the stylesheet.** A capture's own background is often the same colour as the page it sits on \u2014 a light app on a light theme, a dark app on a dark theme \u2014 and then nothing shows the reader where the picture stops. Whatever takes the shot bakes the edge into the image: the screenshot skill's tools draw **a `#BDBDBD` ring** \u2014 grown outside a square frame, traced inside a shaped one, drawn from DWM's model around a Windows window \u2014 which reads on a light page and a dark one alike. Which tool does it for which frame is `~\/.claude\/skills\/docs-screenshot\/SKILL.md`, under *Which framing tool follows from what the frame is*.\n\nDo **not** reach for a blanket `.main-content img { border: ... }` rule. It looks tidier and is wrong two ways: it draws a *square* box around any image with transparent rounded corners, leaving page background inside the frame; and it doubles up on any image that already carries its own edge. A ring baked into the image has neither problem. It also reaches `README.md`, which a stylesheet never can: GitHub's markdown sanitizer strips `style` and github.com never loads the site's CSS.\n\n**A before\/after pair also needs an arrangement**, and the choice is aspect ratio, not preference:\n\n- **Narrow and tall** (a panel column, a sidebar) \u2192 a two-column table, so the height difference *is* the comparison and reads at a glance. Keep no `|` inside a cell's HTML \u2014 it ends the cell.\n\n  ```markdown\n  | Before \u2014 <what> | After \u2014 <what> |\n  |:---|:---|\n  | <a href=\"..\/..\/screenshots\/<a>.png\"><img src=\"..\/..\/screenshots\/<a>.png\" alt=\"...\" width=\"320\"><\/a> | <a href=\"..\/..\/screenshots\/<b>.png\"><img src=\"..\/..\/screenshots\/<b>.png\" alt=\"...\" width=\"320\"><\/a> |\n  ```\n\n- **Wide and short** (a header bar, a board) \u2192 stacked, with a bold `**Before**` \/ `**After**` label above each. Side by side would halve them into a ~370px column and make the text illegible.\n\nLead in with the measurement rather than the position: \"the same header either way \u2014 205 pixels of it, and then 54\" survives both arrangements, where \"above and below\" becomes wrong the moment a pair goes side by side.\n\n**Internal link conventions** (no `.md` extension, no leading `.\/`):\n\n| Source \u2192 Target | Link form |\n|---|---|\n| Sibling at same level | `[Other](other)` |\n| Parent's sibling (one level up) | `[Other](..\/other)` |\n| Child of a sibling | `[Other](..\/other-feature\/sub)` |\n| Anchor within a sibling | `[Section](other#anchor)` |\n\nAfter restructuring, watch for **stale anchors** \u2014 `#section-name` references break silently when the target H2 is renamed or moved.\n\n## docs\/pages\/development.md\n\nThe Developer guide. Same parent-stub pattern when it grows children.\n\n```markdown\n---\nlayout: default\ntitle: Development\nnav_order: 3\nhas_children: true\n---\n\n## Setup\n\n### Prerequisites\n\n- <runtime versions>\n\n### Install \/ Build from source\n\n<commands in a code fence>\n\n## Commands\n\n<Table or bulleted list of common dev commands.>\n\n## Architecture\n\n<Short rationale \u2014 2-4 paragraphs of design principles. The full deep-dive lives in the Architecture child page.>\n\nSee the [Architecture reference](development\/architecture) for the full domain model, data flow, and component breakdown.\n\n## Project structure\n\n<Annotated source tree.>\n\n## Testing\n\n<How to run tests.>\n\n## Extension points\n\nFor step-by-step recipes, see the [Extension points reference](development\/extending).\n```\n\nChildren of `development.md`:\n\n- `development\/architecture.md` \u2014 long technical deep-dive (domain model, data flow, components, persistence, live-update path, etc.)\n- `development\/extending.md` \u2014 recipes for adding filters, colours, settings toggles, etc.\n- More as needed.\n\n**Rules for the developer page:**\n\n- The parent's `## Architecture` section is a brief rationale + link to the child reference. Do not duplicate content between parent and child.\n- Likewise for Extension points: parent has a one-line pointer; the child has the recipes.\n- Each child is reachable both from the sidebar (via `parent: Development`) and from a link inside `development.md`.\n\n## docs\/pages\/privacy.md (if applicable)\n\nRequired when the product reads, stores, or transmits user data. Follow the bga-assistant shape: what is \/ isn't collected, how the extension works, a permissions table, contact. Set `nav_order` to slot it into the sidebar at the appropriate position (typically last among top-level pages).\n\n## README.md shape\n\nKeep it short enough to read on one screen. Structure, in order:\n\n1. H1 project title.\n2. One-line italicized tagline \u2014 must match `docs\/index.md`'s tagline byte-for-byte (excluding the `*\u2026*` italics).\n3. Context paragraph \u2014 copy from `docs\/index.md` (form factor, platforms, the one or two headline capabilities). Must match word for word.\n4. Cover screenshot: `![<descriptive alt>](docs\/screenshots\/<cover>.png)` \u2014 alt text matches `docs\/index.md` for consistency.\n5. **Features** bulleted list \u2014 copy from `docs\/index.md` Features section. Bullets must match exactly (same set, same wording, same order). Capabilities already named in the context paragraph don't get a bullet \u2014 each feature lives in exactly one of the two.\n6. **Install** \u2014 one-line pointer to wherever install instructions live (Developer guide or a dedicated Installation page). Omit entirely when the docs site has a dedicated Installation page sitting at the top of the footer list below \u2014 a pointer one line above its own footer link is duplication.\n7. **License** \u2014 keep whatever licence line the README already carried (`[MIT](LICENSE)`), immediately before the footer. It is the one piece of prose that belongs on the repo page rather than the docs site, and trimming a README to this shape is exactly when it gets dropped by accident.\n8. Footer block listing every page in the docs site:\n\n```markdown\n---\n\nSee full project documentation at **[<org>.github.io\/<repo>](https:\/\/<org>.github.io\/<repo>\/)**:\n\n- [<Top-level page A>](https:\/\/<org>.github.io\/<repo>\/pages\/<a>)\n  - [<Child A.1>](https:\/\/<org>.github.io\/<repo>\/pages\/<a>\/<sub>)\n  - ...\n- [<Top-level page B>](https:\/\/<org>.github.io\/<repo>\/pages\/<b>)\n  - [<Child B.1>](https:\/\/<org>.github.io\/<repo>\/pages\/<b>\/<sub>)\n```\n\nIndentation must match the actual parent\/child hierarchy. Every existing page must appear; no listed page may be missing on disk.\n\nThe README never contains setup, build, architecture, or API content. If you catch yourself writing any of that in the README, move it to `development.md` and leave a link.\n\n## In-app About dialog (if present)\n\nSome projects (desktop apps, browser extensions, IDE plugins) ship an in-app **About** dialog. When one exists, treat it as a third surface that shares the **tagline** with `README.md` and `docs\/index.md`, word for word. Beyond the tagline the surfaces diverge: README and index carry the Features bullet list (see the `docs\/index.md` shape and README.md shape sections), while the About dialog carries its own short what-it-does prose \u2014 a couple of sentences, not required to mirror README\/index paragraphs and never a bullet list.\n\nThe About dialog additionally carries two things the README\/home page handle elsewhere, and which belong only in the dialog:\n\n- **Version and release date** \u2014 the running build's version (and its release date if available).\n- **A link to the project documentation** \u2014 pointing at the GitHub Pages home page.\n\nSo the rule is: *shared tagline, dialog-own prose, dialog-only version\/date + docs link.* Do not copy screenshots, Features bullets, Install pointers, or the docs footer into the About dialog \u2014 those stay on the README\/site.\n\n## Auditing a site that already exists\n\nEvery rule in this skill reaches a repo only on the day that repo is scaffolded. A site set up\nearlier keeps whatever shape it had then, and nothing in the greenfield process ever revisits\nit, so each rule added here quietly applies to fewer repos than it appears to. Audited 2026-09-08\nacross six local sites: three still served the theme's attribution footer and four had an unpinned\n`remote_theme`, all of them scaffolded before those two rules existed. The user found it by reading\nthe footer on a published page.\n\nSo when a task touches an existing docs site for any reason, audit it first rather than assuming it\nwas built to the current rules:\n\n```bash\nfor c in $(find \"$PROJECTS_ROOT\" -maxdepth 4 -path '*\/docs\/_config.yml' -not -path '*\/node_modules\/*'); do\n  d=$(dirname \"$c\"); f=\"$d\/_includes\/nav_footer_custom.html\"\n  repo=$(cd \"$d\/..\" && basename \"$PWD\")\n  pinned=$(grep -c '^remote_theme:.*@' \"$c\"; true)\n  if [ -f \"$f\" ]; then size=$(wc -c < \"$f\"); liquid=$(grep -c '{%\\|{{' \"$f\"; true); else size=ABSENT; liquid=-; fi\n  if [ -f \"$d\/_includes\/footer_custom.html\" ]; then decoy=yes; else decoy=no; fi\n  repolink=$(grep -c '^aux_links:' \"$c\"; true)\n  printf '%-28s pinned=%s nav_footer=%s liquid=%s decoy=%s repolink=%s\\n' \"$repo\" \"$pinned\" \"$size\" \"$liquid\" \"$decoy\" \"$repolink\"\ndone\n```\n\nNote the `; true` after each `grep -c`: grep exits 1 when it counts zero matches, so in an\n`A && B || C` chain the `||` branch fires on a legitimate result of 0 and prints a second value.\nPlain assignments avoid it.\n\nRead it as: `pinned` must be 1, `nav_footer` must be a byte count and not ABSENT, `liquid` must be 0,\n`decoy` should be no, and `repolink` must be 1. A `footer_custom.html` is the specific trap worth naming, because it looks\nlike the fix and is not: it shadows the unrelated `site.footer_content` hook while the attribution\ncarries on rendering, so its presence is evidence the footer was *attempted* and missed.\n\nFix each in its own repo's own commit. Do not fold another project's docs fix into the commit you\ncame to make.\n\n**Verify against the published page, never the source.** An unpinned `remote_theme` rebuilds from the\ntheme's default branch, which runs ahead of the newest release, so the version serving the site is\nnot knowable from the repo and correct-looking sources can sit above a deploy that still shows the\nold markup. Do not try to identify the served version by matching its markup against release tags\neither \u2014 on 2026-09-08 that produced a confident wrong answer, because the search covered a range of\ntags that stopped short of the ones introducing the class names in question:\n\n```bash\ncurl -sL https:\/\/<org>.github.io\/<repo>\/ | grep -c \"documentation theme for Jekyll\"\n```\n\n## Writing process\n\nFollow these steps whenever creating or restructuring docs.\n\n1. **Inventory.** List the user-facing capabilities. Decide which top-level pages exist (Home, Usage, Development, optional Privacy) and what children each has. A long page splits into one child per major section once it exceeds ~200 lines \/ 5+ H2 headings.\n2. **Set up `_config.yml`.** Use the just-the-docs template in the `docs\/_config.yml` section. `baseurl` must match the GitHub repo name. Also create `docs\/_includes\/nav_footer_custom.html` holding an HTML comment to drop the theme's footer attribution (see [Footer attribution](#footer-attribution)) \u2014 non-empty and Liquid-free, for the reasons given there.\n3. **Write `docs\/index.md`.** Tagline + hero screenshot + (optional Example) + Features bullets + Install pointer + Next steps. Do not include a usage walkthrough \u2014 push that to the Usage page tree.\n4. **Write child pages.** One sub-capability per file under `docs\/pages\/<feature>\/`. Each gets `parent: <Feature>` + a local `nav_order`. No nav strips.\n5. **Write the parent stub for each feature.** Brief intro + `has_children: true`. The parent doesn't repeat children's content.\n6. **Write `development.md`** the same way: parent for the dev tree, with children for Architecture, Extension points, etc.\n7. **Write `README.md` last.** Lift the tagline and Features bullets from `index.md`. Footer lists every existing page hierarchically. Verify each footer URL resolves.\n8. **Verify cross-consistency.**\n   - Tagline matches across `README.md`, `docs\/index.md`, `_config.yml description`, and the in-app About dialog (if present).\n   - Context paragraph matches between `README.md` and `docs\/index.md`, word for word, and no capability appears in both the paragraph and a Features bullet.\n   - Features bullets match between `README.md` and `docs\/index.md` (set, wording, order). When a Features page exists, the list covers the same topics (it may skip lesser, plumbing-level sections like configuration mechanics or naming details) but need not share its order: the summary list is a highlight reel and may rank bullets by impact, while the reference page keeps a logical build-up order \u2014 that divergence is deliberate, not drift.\n   - Hero-screenshot alt text matches across `README.md` and `docs\/index.md`.\n   - Footer in `README.md` lists every `docs\/pages\/**.md` (excluding nav-excluded pages); no listed page is missing on disk.\n   - Internal links: bare names for siblings, `..` for cross-level \u2014 and search for stale `#anchor-name` references after any section rename.\n9. **Verify git is actually tracking the new files.** A repo whose `.gitignore` ignores `docs\/*` and re-includes specific paths (a common way to keep local scratch docs out) swallows the entire site silently: an ignored path never appears in `git status`, so nothing in the normal flow mentions it, and the site simply is not in the commit. Ask git rather than reading the ignore file:\n\n   ```bash\n   git check-ignore docs\/_config.yml docs\/index.md docs\/_includes\/ docs\/pages\/\n   ```\n\n   Exit 1 with no output means everything is tracked; each path it prints is still hidden. Reach for `-v` on those paths alone, to name the `<file>:<line>:<pattern>` to add a `!` line beside, then re-run the bare form until it exits 1. Never read the exit status of `-v`: it exits 0 on *any* matching pattern, a `!` line included, so the verbose form still reports 0 once the negations are correctly in place and the loop never ends (`~\/.claude\/learnings\/gitignore-anchoring-and-scope.md`). Do this for every new *top-level* entry under `docs\/`; re-including a directory covers what is inside it.\n10. **Publish, and point the repo at it.** The README's footer now links to a site that 404s until GitHub Pages is switched on, so this is part of the job, not a follow-up. Confirm with the user first \u2014 it publishes the docs \u2014 and do it **after** the branch carrying `docs\/` is pushed, or the first build runs against a tree with no site in it.\n\n    ```bash\n    gh api repos\/<owner>\/<repo>\/pages -f source[branch]=main -f source[path]=\/docs\n    gh repo edit --description \"<the tagline>\" --homepage \"https:\/\/<owner>.github.io\/<repo>\/\"\n    ```\n\n    The repo's own description and homepage are a fourth surface for the tagline: leaving the old description in place is the same drift the cross-consistency check exists to catch. `gh api ... \/pages` returning 404 on a GET is how you tell Pages is not enabled yet.\n\n## Out of scope\n\n- Do NOT write manual nav strips (`[Home] | [Usage] | \u2026`) on pages \u2014 `just-the-docs` renders the sidebar from front matter.\n- Do NOT add more than one Developer-guide entry at the top level \u2014 technical deep-dives become children of `development.md`, not separate top-level pages.\n- Do NOT mix this layout with another docs framework. If a project already uses Docusaurus, MkDocs, VitePress, Astro Starlight, etc., do not migrate \u2014 defer.\n- Do NOT create `CONTRIBUTING.md`, `CHANGELOG.md`, or other root-level docs unless asked \u2014 they are not part of this layout.\n- Do NOT inline screenshots, blurbs, or feature walkthroughs into the README beyond what's prescribed (tagline, hero, Features, Install, footer). Anything more belongs on the docs site.\n","use_cases":["Setting up a GitHub Pages site for a project","Restructuring a README that links to GitHub Pages","Adding a feature page to a GitHub Pages site","Aligning documentation with the just-the-docs layout"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/AnotherSava\/claude-code-common\/blob\/1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93\/claude\/skills\/github-pages\/SKILL.md","source_commit":"1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93","license":null,"version":null,"listing_approved_at":"2026-12-01","created_at":"2026-11-30T08:08:03.000000Z","updated_at":"2026-12-01T12:48:20.000000Z","seo_title":"GitHub Pages Documentation Layout","seo_description":"Create a user-first documentation layout for GitHub Pages using the just-the-docs Jekyll theme, with a short README, feature pages, and a developer guide.","seo_keywords":["GitHub Pages","just-the-docs","Jekyll site","README layout","feature pages","developer guide"]}}