Skip to content

feat: add resource doc template and mise task#2540

Merged
Automaat merged 2 commits intomasterfrom
feat/resource-doc-template
Nov 27, 2025
Merged

feat: add resource doc template and mise task#2540
Automaat merged 2 commits intomasterfrom
feat/resource-doc-template

Conversation

@Automaat
Copy link
Contributor

@Automaat Automaat commented Nov 27, 2025

Motivation

Add tooling to standardize creation of resource reference docs (Mesh, MeshService, etc).

Implementation information

  • templates/resource.md - Go template with standard structure for resource docs
  • gomplate added as mise tool dependency for template rendering
  • mise new:resource task with inline script

Usage:

mise new:resource MeshService
# Creates app/_src/resources/meshservice.md

Also excludes templates/ from vale linting in CI and mise task.

Supporting documentation

Part of plan to add "Core Resources" section to docs. See .plans/core-resources-section.md.

Copilot AI review requested due to automatic review settings November 27, 2025 09:12
@Automaat Automaat requested a review from a team as a code owner November 27, 2025 09:12
@Automaat Automaat requested review from bartsmykla and schogges and removed request for a team November 27, 2025 09:12
Copy link
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

This PR adds tooling to standardize creation of resource reference documentation for Kuma resources like Mesh, MeshService, etc. It introduces a template-based workflow that automates the initial structure for new resource docs.

  • Adds templates/resource.md template with standard structure for resource documentation
  • Creates tools/new-resource-doc.sh script to generate docs from the template
  • Adds mise new:resource task for convenient doc generation via mise
  • Includes comprehensive shellspec tests for the generation script
  • Documents the new workflow in CONTRIBUTING.md

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
templates/resource.md New template defining standard structure for resource reference docs including frontmatter, spec fields, examples, and schema sections
tools/new-resource-doc.sh Shell script that generates resource doc files from template by replacing placeholders and creating lowercase filenames
tools/spec/new_resource_doc_spec.sh Shellspec test suite covering argument validation, file creation, placeholder replacement, and error handling
mise.toml Adds new:resource task that wraps the generation script for ease of use
CONTRIBUTING.md Documents the new resource doc creation workflow with usage examples

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

@netlify
Copy link

netlify bot commented Nov 27, 2025

Deploy Preview for kuma ready!

Name Link
🔨 Latest commit b9f3299
🔍 Latest deploy log https://app.netlify.com/projects/kuma/deploys/692820dd7d2ae000085f0066
😎 Deploy Preview https://deploy-preview-2540--kuma.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: 86 (🔴 down 1 from production)
Accessibility: 90 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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

@Automaat Automaat force-pushed the feat/resource-doc-template branch 2 times, most recently from 0607613 to 47fe7d6 Compare November 27, 2025 09:24
Add template and tooling for creating new resource reference docs:
- templates/resource.md with Go template syntax
- gomplate as mise dependency for template rendering
- mise new:resource task for doc generation

Usage: mise new:resource MeshService
Signed-off-by: Marcin Skalski <skalskimarcin33@gmail.com>
@Automaat Automaat force-pushed the feat/resource-doc-template branch from 47fe7d6 to 24b45e8 Compare November 27, 2025 09:41
Signed-off-by: Marcin Skalski <skalskimarcin33@gmail.com>
@Automaat Automaat merged commit 80405e1 into master Nov 27, 2025
20 checks passed
@Automaat Automaat deleted the feat/resource-doc-template branch November 27, 2025 10:16
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.

3 participants