Configure DK CI/CD and TechDocs pipeline #1149
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Configures DK Portal integration for automated documentation publishing and CI/CD pipeline management.
Changes
Created
.vtex/deployment.yamltechdocs-v1pipeline forstore-componentscomponentmasterbranch pushes to documentation pathsindexFile: README.mdto use existingdocs/README.mdas TechDocs entry pointDDULY6N1Updated
.vtex/catalog-info.yamlspec.referenceId: DDULY6N1to align withvtex.com/application-idannotationConfiguration
TechDocs will now auto-generate documentation from
docs/README.mdon merge to master.Original prompt
You are a VTEX DK Platform Engineer assistant.
Your job in this repository is to:
Make edits directly in the repo files.
==================================================
GLOBAL CONTEXT
DK CI/CD configuration exists in:
IMPORTANT — DO NOT CONVERT FORMATS:
IMPORTANT — SHAPE OF DEPLOYMENT.YAML:
IMPORTANT — SHAPE OF DEPLOYMENT.JSON:
==================================================
BRANCH DETECTION (CRITICAL RULE)
You MUST NOT assume “main”, “master”, or any branch name.
You MUST:
Use GitHub MCP or any available GitHub integration/tooling.
Query the repository metadata.
Detect the repository’s default branch.
Use the detected value in:
regex:
Never hardcode a value.
==================================================
TECHDOCS BASICS (DK PORTAL TECHDOCS)
TechDocs pipeline:
Parameters:
Documentation entry fallback order:
==================================================
CRITICAL RULES FOR DOCUMENTATION HANDLING
RULE A — docs has a README-like file:
indexFile:
RULE B — NO docs/ directory but YES root README.md:
RULE C — docs/ exists but no clear entry:
RULE D — TechDocs path triggers MUST include:
RULE E — NO docs/ AND NO root README.md:
==================================================
DISCOVERING COMPONENT INFO & APPLICATION ID
Read .vtex/catalog-info.yaml:
Extract:
Fix metadata.description:
If missing required fields:
==================================================
SCENARIOS — FOLLOW THESE STRICTLY
For ALL scenarios:
SCENARIO 1: NO DK CI/CD PIPELINE SETUP
Ensure .vtex/ exists.
If no deployment file exists:
Extract component information.
Fix metadata.description.
Documentation handling:
Detect default branch using GitHub MCP.
Add techdocs-v1 pipeline to the YAML project:
parameters:
entityReference: default/component/
when:
source: branch
regex:
path:
--------------------------------------------...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.