mirror of
https://github.com/logos-co/logos-docs.git
synced 2026-08-27 16:41:11 +00:00
Added repository-wide instructions for using Copilot effectively, including purpose, operational checklist, and guidelines for documentation edits.
2.3 KiB
2.3 KiB
Copilot instructions (repository-wide)
Purpose
Make successful docs PRs on the first try by using the repo’s own bootstrap → lint → links → build pipeline. These instructions apply to Copilot Chat, the coding agent, and PR review.
What this repo is
- Docs-first repository. Primary content under
docs/. - Config at repo root:
.vale.ini+vale/,.markdownlint.*(or remark config),.cspell.json,lychee.*, optional site generator config (mkdocs.ymlor Docusaurus files). - Use Makefile targets or package.json scripts when present. Avoid calling underlying CLIs directly.
Operational checklist (before proposing a PR)
-
Bootstrap
- If
Makefilehas a bootstrap target:make bootstrap - Else if
package.jsonexists:npm ci - If Python tooling is used: create venv,
pip install -r requirements.txt
- If
-
Lint
- Markdown:
make lint-mdornpm run lint:md - Prose/style (Vale):
make lint-proseornpm run lint:prose - Spelling (cspell):
make lint-spellornpm run lint:spell - Links (lychee):
make lint-linksornpm run lint:links
- Markdown:
-
Build / Preview (only if site generator is configured)
- MkDocs:
mkdocs build(local preview:mkdocs serve) - Docusaurus:
npm run build(local preview:npm run start)
- MkDocs:
-
Stop if any step fails. Fix locally, re-run, then open the PR.
Guardrails for docs edits
- Keep front matter and any HTML-comment rule IDs intact.
- For procedures, use Markdown numbered lists; put paragraphs, code, and images under the correct list item (blank line + indent).
- Use relative links for internal references; update inbound links if a file moves.
- If adding code blocks or screenshots, follow the Style Guide documents in the repo (do not restate rules here).
- Keep changes small and scoped; preserve technical accuracy and author voice.
Scope
Markdown files under content under /docs/**.
PR review behavior
- Re-run the same pipeline locally before pushing fixes.
- When moving or renaming files, update navigation/sidebars (if applicable) and re-run link checks.
Source of truth
- Prefer repo scripts. If a script is missing, consult the config files at repo root for tool flags and rules. Do not duplicate Style-Guide content here.