feat(docs): add GitHub mirror icon, README-sourced doc sections, auto-generated TOC
Adds a GitHub social icon to the docs site header alongside the existing Gitea one, and documents in the README's Contributing section that git.rootiest.dev is the base repo while the GitHub copy is a one-way mirror, so forks/issues/PRs should go through Gitea. Adds Testing, Contributing, Attribution, and License sections to the manual/man page/site, sourced directly from README.md via a new `<!-- README: Heading -->` placeholder mechanism in build-manual.py, so the README stays the single source of truth for those sections instead of a hand-maintained copy drifting out of sync. Also converts docs/manual/00-table-of-contents.md from a hand-typed list to a generated one (mt.walk()-driven), fixing a numbering drift where Components Reference was omitted and every section after it was off by one relative to its own manTitle.
This commit is contained in:
@@ -146,9 +146,12 @@ Contributing to the docs? There are two sources, split by content type:
|
||||
above each function in `functions/*.fish`. Edit the function; the entry
|
||||
and its site page are generated from the header.
|
||||
- **Everything else** lives under `docs/manual/**`.
|
||||
- **Testing, Contributing, Attribution, and License** are pulled straight
|
||||
from this README (the sections below) rather than authored twice — edit
|
||||
them here and the manual, man page, and site all pick up the change.
|
||||
|
||||
Never edit the generated `docs/fish-config.md` — it's rebuilt from both
|
||||
sources and any hand-edits are discarded.
|
||||
Never edit the generated `docs/fish-config.md` — it's rebuilt from all
|
||||
three sources and any hand-edits are discarded.
|
||||
|
||||
To browse the docs from the terminal:
|
||||
|
||||
@@ -348,6 +351,14 @@ Interested in contributing? See [`CONTRIBUTING.md`](CONTRIBUTING.md) for the
|
||||
branching/PR workflow, commit conventions, fish coding standards, and the
|
||||
docs/testing pipeline this repo follows.
|
||||
|
||||
**Preferred forge:** [git.rootiest.dev/rootiest/fish-config](https://git.rootiest.dev/rootiest/fish-config)
|
||||
is the base repository. [github.com/rootiest/fish-config](https://github.com/rootiest/fish-config)
|
||||
is a push-mirror of it — identical content, but one-way and read-only from a
|
||||
contributor's perspective. Branches, forks, and merges made on the GitHub
|
||||
side aren't fed back upstream, so they risk being silently overwritten by
|
||||
the next mirror push. Until two-way sync exists, please fork, branch, and
|
||||
open issues/PRs from the Gitea repository rather than the GitHub mirror.
|
||||
|
||||
---
|
||||
|
||||
## Attribution
|
||||
|
||||
Reference in New Issue
Block a user