Skip to content

Remove redundant Overview headings on TOC-enabled docs pages#721

Merged
IEvangelist merged 3 commits intomainfrom
copilot/remove-redundant-overview-headings
Apr 20, 2026
Merged

Remove redundant Overview headings on TOC-enabled docs pages#721
IEvangelist merged 3 commits intomainfrom
copilot/remove-redundant-overview-headings

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

Summary

  • Remove explicit Overview headings from affected docs pages and keep/rename content where needed.
  • Update the doc-writer skill guidance to explicitly forbid ## Overview on TOC-enabled pages.
  • Add docs unit-test enforcement to fail when TOC-enabled docs include an explicit Overview heading.

Updated articles

  • src/frontend/src/content/docs/deployment/custom-deployments.mdx
  • src/frontend/src/content/docs/deployment/azure/azure-security-best-practices.mdx
  • src/frontend/src/content/docs/deployment/pipelines.mdx (Overview renamed to Pipeline deployment model)
  • src/frontend/src/content/docs/integrations/cloud/azure/azure-container-registry/azure-container-registry-host.mdx (Overview renamed to Key capabilities)
  • src/frontend/src/content/docs/integrations/cloud/azure/azure-container-registry/azure-container-registry-get-started.mdx (Overview renamed to Key capabilities)

Validation

  • pnpm --dir ./src/frontend run lint
  • pnpm --dir ./src/frontend run test:unit:docs
  • pnpm --dir ./src/frontend run build:skip-search
  • pnpm --dir ./src/frontend run test:unit
  • parallel_validation run: Code review succeeded; CodeQL timed out per tool warning.

@IEvangelist IEvangelist marked this pull request as ready for review April 15, 2026 20:00
@IEvangelist IEvangelist requested a review from eerhardt as a code owner April 15, 2026 20:00
Copilot AI review requested due to automatic review settings April 15, 2026 20:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes redundant Overview headings from TOC-enabled docs pages and adds enforcement to prevent reintroducing them.

Changes:

  • Updated multiple docs pages to remove or rename ## Overview sections.
  • Extended doc-writer guidance to forbid ## Overview on TOC-enabled pages.
  • Added a docs unit test that fails when TOC-enabled docs include an explicit “Overview” heading.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/frontend/tests/unit/filetree-format.vitest.test.ts Adds detection + unit-test enforcement for explicit “Overview” headings on TOC-enabled docs pages
src/frontend/src/content/docs/integrations/cloud/azure/azure-container-registry/azure-container-registry-host.mdx Renames Overview heading to a more specific “Key capabilities” section
src/frontend/src/content/docs/integrations/cloud/azure/azure-container-registry/azure-container-registry-get-started.mdx Renames Overview heading to a more specific “Key capabilities” section
src/frontend/src/content/docs/deployment/pipelines.mdx Renames Overview heading to “Pipeline deployment model”
src/frontend/src/content/docs/deployment/custom-deployments.mdx Removes redundant Overview heading so intro content is direct body text
src/frontend/src/content/docs/deployment/azure/azure-security-best-practices.mdx Removes redundant Overview heading so intro content is direct body text
.github/skills/doc-writer/SKILL.md Documents the “no ## Overview on TOC-enabled pages” guidance and suggested alternatives

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

Comment thread src/frontend/tests/unit/filetree-format.vitest.test.ts Outdated
Comment thread src/frontend/tests/unit/filetree-format.vitest.test.ts Outdated
Comment thread src/frontend/tests/unit/filetree-format.vitest.test.ts
Comment thread src/frontend/tests/unit/filetree-format.vitest.test.ts
Copilot AI and others added 2 commits April 17, 2026 09:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@IEvangelist IEvangelist force-pushed the copilot/remove-redundant-overview-headings branch from e6c300f to e6db30d Compare April 17, 2026 14:44
Copy link
Copy Markdown
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

Looks good. Clean doc changes, well-engineered test with proper code-fence tracking and frontmatter awareness.

Minor nits (non-blocking):

  • The pipelines.mdx change (Pipeline modelPipeline deployment model) isn't removing an Overview heading — PR description is slightly misleading there.
  • Test file filetree-format.vitest.test.ts is growing beyond FileTree scope; consider renaming to docs-lint.vitest.test.ts in a follow-up.
  • Overview heading regex is case-sensitive (/^\s*##+\s+Overview\s*$/) — unlikely to matter in practice but /i flag would be more defensive.

@IEvangelist IEvangelist merged commit 28e3e41 into main Apr 20, 2026
5 checks passed
@IEvangelist IEvangelist deleted the copilot/remove-redundant-overview-headings branch April 20, 2026 12:48
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.

4 participants