Skip to content

DOCS-3147: Add contributor content types and page templates - #3181

Merged
ctauchen merged 3 commits into
tigera:mainfrom
ctauchen:docs-3147-content-types
Nov 5, 2026
Merged

ctauchen merged 3 commits into
tigera:mainfrom
ctauchen:docs-3147-content-types

Conversation

@ctauchen

@ctauchen ctauchen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds contributor guidance so that every docs page has one content type, chosen for what the reader is trying to do. The content types are based on Diátaxis.

Jira: https://tigera.atlassian.net/browse/DOCS-3147

Changes:

  • contributors/README.md, an index for contributor guidance.
  • contributors/content-types/content-types.md, which explains content types: the four Diátaxis types, plus installation guides, troubleshooting, and release notes as specialized types.
  • contributors/content-types/templates/, with one MDX template each for explanation, how-to, reference, tutorial, troubleshooting, and installation guide pages. Guidance is in MDX comments, each section is marked required, recommended, or optional, and each template ends with a reviewer checklist. Each template sets content_type in its front matter.
  • contributors/content-types/style-guide.md, a stub.
  • AGENTS.md, which tells coding agents to choose a content type and start from a template when they create a new page, and to leave the structure of existing pages alone. CLAUDE.md imports it.

The contributors directory isn't built into the site, so there's no page to preview. Review the files on GitHub.

Add a contributor guide that explains content types and gives a template
for each one. Content types are based on Diataxis, with installation
guides, troubleshooting, and release notes as specialized types.
@ctauchen
ctauchen requested a review from a team as a code owner November 4, 2026 13:09
Copilot AI lite review requested due to automatic review settings November 4, 2026 13:09
@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 747eeac
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6aeca41b1278cf68e43d9850
😎 Deploy Preview https://deploy-preview-3181--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 66 (🔴 down 23 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 747eeac
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6aeca41be50896fe4ad05fed
😎 Deploy Preview https://deploy-preview-3181--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Several templates can produce invalid YAML description arrays, and the installation guide omits the required platform-only sidebar label, leaving active correctness issues unresolved.

6 open issues
What changed in this PR

This pull request adds contributor guidance for selecting documentation content types and reusable MDX page templates based on Diátaxis, along with a placeholder style guide.

Changes:

  • Adds contributor documentation indexes and content-type guidance.
  • Defines core and specialized content types, including installation and troubleshooting pages.
  • Adds templates and reviewer checklists for six page types.
  • Adds an initial style-guide stub.
File Summary
contributors/​style-guide.md Initial placeholder for documentation style guidance.
contributors/​README.md Index linking to contributor guidance and templates. Nit (1 vote): Resolve the mismatch between the documented and actual style-guide path.
contributors/​content-types/​templates/​tutorial.mdx Tutorial-page template. Moderate (2 votes): Quote the description placeholder so it remains a YAML string.
contributors/​content-types/​templates/​troubleshooting.mdx Troubleshooting-page template. Moderate (2 votes): Quote the description placeholder so it remains a YAML string.
contributors/​content-types/​templates/​reference.mdx Reference-page template. Moderate (2 votes): Quote the description placeholder. Nit (1 vote): Use a language placeholder or untyped fence for examples that may be commands or YAML.
contributors/​content-types/​templates/​installation-guide.mdx Installation-guide template. Moderate (1 vote): Quote the description placeholder. Nit (3 votes): Add the sidebar_label field required by the guidance.
contributors/​content-types/​templates/​how-to.mdx How-to guide template. Moderate (2 votes): Quote the description placeholder so it remains a YAML string.
contributors/​content-types/​templates/​explanation.mdx Explanation-page template. Moderate (2 votes): Quote the description placeholder so it remains a YAML string.
contributors/​content-types/​content-types.md Defines the supported documentation content types and their intended reader needs.

Review effort: Lite

@@ -0,0 +1,134 @@
---
description: [What the reader will understand after reading this page, in one sentence of 130 to 160 characters. Use the full product name.]
@@ -0,0 +1,192 @@
---
description: [What the reader will get done by following this page, in one sentence of 130 to 160 characters. Use the full product name.]
@@ -0,0 +1,138 @@
---
description: [What the reader can look up on this page, in one sentence of 130 to 160 characters. Use the full product name.]
@@ -0,0 +1,152 @@
---
description: [The problems this page helps the reader fix, in one sentence of 130 to 160 characters. Use the full product name.]
@@ -0,0 +1,166 @@
---
description: [What the reader will build or learn by following this tutorial, in one sentence of 130 to 160 characters. Use the full product name.]
@@ -0,0 +1,176 @@
---
description: [What the reader will install and on which platform, in one sentence of 130 to 160 characters. Use the full product name.]
Quote the description placeholder in each template so that it parses as
a string. Remove sidebar_label guidance from the installation guide
template.
AGENTS.md applies only when an agent creates a new page. It points at the content types guide and the templates, and tells the agent not to restructure existing pages. CLAUDE.md imports it, so Claude Code reads the same file.

Each template now sets content_type in its front matter, so a page copied from a template carries its type.
@ctauchen
ctauchen merged commit 9073336 into tigera:main Nov 5, 2026
11 checks passed
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.

2 participants