Skip to content

docs: move the documentation from the website into docs/, checked by tools/docslint - #29

Merged
lukas-frey merged 3 commits into
developfrom
feature/docs
Oct 19, 2026
Merged

lukas-frey merged 3 commits into
developfrom
feature/docs

Conversation

@lukas-frey

Copy link
Copy Markdown
Member

Problem

The documentation lives in the private website repo, so feature PRs can't document what they add, and nobody outside can fix a page.

Fix

  • docs/ (new): the 18 pages from the website's resources/docs, unchanged except for their links: to another page by its file (php.md#phpini instead of /docs/php#phpini), to the rest of the website by its full URL. Screenshots stay ![Alt](screenshot:id); their files will be docs/images/{id}-{macos,windows}-{light,dark}.png, as FlockScreenshots renders them.
  • docs/navigation.json (new): the sidebar's sections and pages, from the website's config/docs.php, so a new page needs no website change.
  • tools/docslint (new): checks that navigation.json and the pages agree, that every :::app/:::cli block is closed, that relative links and images point at files in docs/, and that a screenshot:id has all four variants or none yet.
  • build.yml: a changes job; PRs that change docs/ get a Docs check (docslint), and PRs that change only docs/ skip the Go tests, except into main (a skipped matrix job reports under its unexpanded name, so main's required checks would never pass). It uses git diff, not the API, since beta.yml and release.yml call this workflow with contents: read only. The merge queue and releases always build everything.

The website will sync docs/ from the newest stable and beta releases (not from branches), so these pages appear there with the first release that contains them; until then it keeps its own copy. Goes with #28, which lets docs-only PRs through the PR gate on main.

Lukas Frey added 3 commits October 19, 2026 15:14
…nly pull requests

tools/docslint checks that navigation.json and the pages agree, that every :::app and :::cli
block is closed, and that relative links and images point at files in docs/. Pull requests
that change docs/ run it; those that change only docs/ skip the Go tests, except into main,
whose required checks need them.
A screenshot:id image is images/{id}-{macos,windows}-{light,dark}.png, as FlockScreenshots
renders them. Until they're added the website shows a placeholder, so none is fine; once one is
there, all four must be.
The pages from the website's resources/docs, unchanged except for their links: to another page
by its file (quick-start.md), to the rest of the website by its full URL. The sidebar's sections
and pages, from the website's config/docs.php, are in docs/navigation.json.
@github-actions

Copy link
Copy Markdown

Thanks for the PR, @lukas-frey! Flock takes pull requests only for issues a maintainer has approved, so this one is closed. Please open an issue describing the problem or idea first. Once it's labelled help wanted or assigned to you, open a new PR against develop that references it (e.g. Fixes #123). See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Oct 19, 2026
@lukas-frey lukas-frey reopened this Oct 19, 2026
@lukas-frey
lukas-frey merged commit 4e8b5a8 into develop Oct 19, 2026
15 checks passed
@lukas-frey
lukas-frey deleted the feature/docs branch October 19, 2026 14:34
sineld pushed a commit to sineld/flock that referenced this pull request Oct 23, 2026
The move in flock-php#29 copied the website's docs as of 15 Oct, missing the changes from 17-18 Oct and the AI agents page.
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