Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions docs pages

template.repo-docs

Canonical template for a project's public docs repository (<org>/docs.<project>). A project's developer and user documentation — contributing, design, rules — lives here as a public Hugo site published via GitHub Pages. Private content (ideas, tasks, specs) lives in the project's hub repo (project.<project>), never here.

Layout

Path Purpose
content/ Markdown documentation — the Hugo site content.
layouts/ Hugo templates.
hugo.json Hugo configuration.
.github/workflows/pages.yml The GitHub Pages build workflow. Always present; it self-skips while the repo is private and deploys once the repo is public.
Makefile Local preview and build. Run make for help.

Public, with a self-gating workflow

Everything in this repo is public — it exists to be published, so there is no public//private/ split. Anything private (design notes, tasks, ideas, specs) belongs in the project's private hub repo (project.<project>).

GitHub Pages is unavailable on private repos in free orgs, so a docs repo ships ready to go public: the Pages workflow is always present but self-skips while the repo is private, deploying automatically once the repo is public and Pages is enabled — there is no file to rename.

Going public

  1. Make the repository public.
  2. Enable Pages: Settings → Pages → Source: GitHub Actions.
  3. Push (or re-run the pages workflow). It stops self-skipping and publishes the whole site.

Creating a new docs repo from this template

gh repo create <org>/docs.<project> --public --template nicerobot/template.repo-docs

About

Documentation for the yze analyzer family and the stickler lint runner

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages