Skip to content

docs: add missing Agents page and fix gitignore that dropped it#108

Merged
rthrash merged 1 commit into
mainfrom
docs/fix-agents-page-gitignore
Jun 5, 2026
Merged

docs: add missing Agents page and fix gitignore that dropped it#108
rthrash merged 1 commit into
mainfrom
docs/fix-agents-page-gitignore

Conversation

@rthrash
Copy link
Copy Markdown
Member

@rthrash rthrash commented Jun 5, 2026

What

Fixes the failing Docs / Build Docusaurus workflow on main. Adds the missing docs/Admin/Agents.md page and corrects the .gitignore rule that caused it to be dropped.

Why it broke

The deploy workflow failed with:

[ERROR] Docusaurus found broken links!
- Broken link on source page path = /modAI/Admin/Tools:
   -> linking to Agents.md
- Broken link on source page path = /modAI/Configuration/Chat:
   -> linking to ../Admin/Agents.md
   -> linking to ../Admin/Agents.md#controlling-access

Tools.md and Chat.md (merged in #107) link to an Agents page — but docs/Admin/Agents.md was never actually committed. Root cause:

  • .gitignore contained an unanchored rule AGENTS.md (intended for the repo-root agent-instructions file).
  • The repo has core.ignorecase=true (macOS, case-insensitive filesystem), so git matched that pattern against docs/Admin/Agents.md too.
  • git add docs/ therefore silently skipped the new page. The local npm run build still passed because the untracked file was physically on disk — but CI checks out only tracked files, so the page was absent and the inbound links broke.

The fix

  • Anchor the rule to /AGENTS.md so it only ignores the root file (verified: root AGENTS.md stays ignored; docs/Admin/Agents.md no longer is).
  • Add the previously-dropped docs/Admin/Agents.md.

Verification

  • git check-ignore: root AGENTS.md still ignored ✓, docs/Admin/Agents.md no longer ignored ✓.
  • npm run build (production) passes with no broken links and no warnings.
  • Re-run the Docs workflow (it's workflow_dispatch) after merge to deploy.

🤖 Generated with Claude Code

The docs deploy workflow failed on main with broken links to
docs/Admin/Agents.md from Tools.md and Chat.md. Root cause: the
`.gitignore` rule `AGENTS.md` (meant for the root agent-instructions
file) was unanchored, so with core.ignorecase=true on a case-insensitive
filesystem it also matched `docs/Admin/Agents.md`. `git add docs/`
silently skipped the new page, so it was never committed or merged —
the local build only passed because the untracked file sat on disk.

- Anchor the rule to `/AGENTS.md` so it ignores only the root file.
- Add the previously-dropped docs/Admin/Agents.md.

Verified with `npm run build` (no broken links).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rthrash rthrash requested review from matdave, mkschell and theboxer June 5, 2026 22:12
@rthrash rthrash merged commit 03e5a23 into main Jun 5, 2026
1 of 2 checks passed
@rthrash rthrash deleted the docs/fix-agents-page-gitignore branch June 5, 2026 22:27
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