Skip to content

docs: improve docs/ folder navigation (#1803) - #1807

Merged
josecelano merged 6 commits into
torrust:developfrom
josecelano:1803-improve-docs-folder-navigation
May 20, 2026
Merged

josecelano merged 6 commits into
torrust:developfrom
josecelano:1803-improve-docs-folder-navigation

Conversation

@josecelano

Copy link
Copy Markdown
Member

Closes #1803

Summary

This PR improves navigation inside the docs/ folder for both human readers and AI agents.

Changes

T1 — Expand docs/index.md

The existing minimal flat list is replaced with an organized index that covers every top-level file and subdirectory (adrs/, issues/, refactor-plans/, pr-reviews/, skills/, templates/, media/, licenses/), each with a short description of its purpose. Also adds flamegraphs to project-words.txt.

T2 — Add docs/AGENTS.md

New directory-scoped AGENTS.md file, following the pattern of packages/AGENTS.md and src/AGENTS.md. Covers: directory map, a placement guide (which subdirectory to use for each artifact type), frontmatter convention (required for issue/EPIC specs, recommended for others), Markdown linting scope (repo files vs. GitHub surfaces — no line wrapping in issue/PR body text), and key skill references.

T3 — Update write-markdown-docs skill

Adds two new sections to .github/skills/dev/planning/write-markdown-docs/SKILL.md:

  • Frontmatter — states the requirement/recommendation and links to docs/skills/semantic-skill-link-convention.md.
  • Repo Markdown vs. GitHub Markdown — explains that .markdownlint.json does not apply to GitHub issue/PR bodies and that line wrapping must not be used there.

Also adds a frontmatter checklist item to the existing commit checklist.

Verification

  • linter all passes
  • Pre-push checks pass (nightly fmt/check/doc + stable test suite)

Copilot AI review requested due to automatic review settings May 20, 2026 11:51
@josecelano
josecelano requested a review from a team as a code owner May 20, 2026 11:51
@josecelano josecelano self-assigned this May 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves navigation and agent guidance for the docs/ tree by expanding the documentation index, adding a directory-scoped docs/AGENTS.md, and updating the write-markdown-docs skill to document frontmatter and GitHub-vs-repo Markdown rules.

Changes:

  • Replaces docs/index.md with a structured, described index covering all major docs/ areas.
  • Adds docs/AGENTS.md with a directory map, placement guidance, frontmatter guidance, and linting context.
  • Updates the write-markdown-docs skill and adds flamegraphs to the cspell word list.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
project-words.txt Adds flamegraphs to the repository word list.
docs/issues/open/1803-improve-docs-folder-navigation.md Adds an issue spec for #1803 documenting goals, plan, and verification.
docs/index.md Expands the docs index into categorized sections with descriptions.
docs/AGENTS.md Introduces agent-facing guidance for the docs/ directory (map, placement, conventions).
.github/skills/dev/planning/write-markdown-docs/SKILL.md Adds frontmatter and repo-vs-GitHub Markdown guidance plus a checklist item.
Comments suppressed due to low confidence (5)

docs/issues/open/1803-improve-docs-folder-navigation.md:197

  • These reference links appear to use incorrect relative paths from docs/issues/open/...: ../index.md points to docs/issues/index.md (doesn't exist) and ../skills/... points under docs/issues/skills. They should resolve to docs/index.md and docs/skills/... respectively (likely ../../index.md and ../../skills/...).
- Current index: [`docs/index.md`](../index.md)
- Frontmatter convention: [`docs/skills/semantic-skill-link-convention.md`](../skills/semantic-skill-link-convention.md)

docs/issues/open/1803-improve-docs-folder-navigation.md:201

  • More broken relative links in References: ../../.markdownlint.json, ../../.github/..., ../../packages/..., and ../../src/... resolve under docs/ or docs/issues/ instead of repo root. From docs/issues/open/... these likely need one extra ../ (e.g. ../../../.markdownlint.json, ../../../.github/..., etc.).
- Markdown linting configuration: [`.markdownlint.json`](../../.markdownlint.json)
- Write markdown docs skill: [`.github/skills/dev/planning/write-markdown-docs/SKILL.md`](../../.github/skills/dev/planning/write-markdown-docs/SKILL.md)
- Existing `packages/AGENTS.md` (pattern reference): [`packages/AGENTS.md`](../../packages/AGENTS.md)
- Existing `src/AGENTS.md` (pattern reference): [`src/AGENTS.md`](../../src/AGENTS.md)

docs/issues/open/1803-improve-docs-folder-navigation.md:95

  • In the quoted snippet for write-markdown-docs the link to docs/skills/semantic-skill-link-convention.md uses ../../../../docs/..., but from .github/skills/dev/planning/write-markdown-docs/SKILL.md it should go up to repo root first (likely ../../../../../docs/...). If this block is meant to be copy/pasted, it should match the correct relative path.

Follow the frontmatter convention defined in
[`docs/skills/semantic-skill-link-convention.md`](../../../../docs/skills/semantic-skill-link-convention.md),
which specifies the required fields for each document type and the shape of
`semantic-links` entries.

docs/AGENTS.md:81

  • These relative links go up two directories (../../.github/...) from docs/AGENTS.md, which resolves outside the repo. Since docs/AGENTS.md is one level below repo root, the correct relative path to .github/... should only go up one level (../.github/...).
| Skill                                                                                   | When to use                                                                             |
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [`write-markdown-docs`](../../.github/skills/dev/planning/write-markdown-docs/SKILL.md) | Writing or editing any `.md` file — covers GFM pitfalls, frontmatter, and linting scope |
| [`create-issue`](../../.github/skills/dev/planning/create-issue/SKILL.md)               | Drafting and creating issue specifications                                              |

.github/skills/dev/planning/write-markdown-docs/SKILL.md:74

  • The relative link to docs/skills/semantic-skill-link-convention.md appears incorrect from this file's location (.github/skills/dev/planning/write-markdown-docs/SKILL.md). ../../../../docs/... resolves under .github/skills/docs/.... It should go up to repo root first (likely ../../../../../docs/skills/semantic-skill-link-convention.md).
Follow the frontmatter convention defined in
[`docs/skills/semantic-skill-link-convention.md`](../../../../docs/skills/semantic-skill-link-convention.md),
which specifies the required fields for each document type and the shape of
`semantic-links` entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/AGENTS.md Resolved
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request May 20, 2026
@josecelano
josecelano force-pushed the 1803-improve-docs-folder-navigation branch from 6bc4a91 to a7865f5 Compare May 20, 2026 12:05
@josecelano

Copy link
Copy Markdown
Member Author

ACK a7865f5

@josecelano
josecelano merged commit b106b68 into torrust:develop May 20, 2026
1 check passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: This pull request changed only documentation, improving the index and navigation of the docs folder, with no executable effect.

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.

Improve docs/ folder navigation

3 participants