Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat: meta generator - #2711

Open
Bojan Rajh (bojanrajh) wants to merge 5 commits into
mainfrom
dx/feat-meta-generator
Open

Bojan Rajh (bojanrajh) wants to merge 5 commits into
mainfrom
dx/feat-meta-generator

Conversation

@bojanrajh

@bojanrajh Bojan Rajh (bojanrajh) commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a command for generating meta titles and descriptions.

Related links

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted.
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms.
  • I listed every dependent pull request that is not merged yet under Dependent PRs below.
  • Dependent changes that must be released, not only merged, before this documentation goes live have been published.
  • This pull request is ready for review.

Dependent PRs

Notes

@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with success.
Repository: shopware/docs
Commit: b5f00d5
Preview: https://developer-documentation-c8j1eagmm-shopware-frontends.vercel.app
Workflow run: #6124

@bojanrajh Bojan Rajh (bojanrajh) changed the title Dx/feat meta generator feat: meta generator Nov 12, 2026
@bojanrajh Bojan Rajh (bojanrajh) mentioned this pull request Nov 12, 2026
1 of 6 tasks
@bojanrajh
Bojan Rajh (bojanrajh) marked this pull request as ready for review November 13, 2026 17:33
Copilot AI balanced review requested due to automatic review settings November 13, 2026 17:33

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

The generator can silently overwrite article edits made during execution and mishandles empty frontmatter blocks, leaving delimiters that render as horizontal rules.

2 open issues
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Adds an OpenAI-powered command to generate navigation titles and meta descriptions for Shopware documentation articles.

Changes:

  • Adds article selection, missing-field backfills, dry-run previews, approval prompts, and token/cost reporting.
  • Adds usage documentation, a pricing catalog, and automated tests.
  • Adds required dependencies and aligns the development environment with Node.js 22.
File Description
pnpm-lock.yaml Locks the generator’s dependencies
package.json Adds dependencies, CLI/test commands, and Node.js requirement
devenv.nix Updates the development runtime to Node.js 22
AGENTS.md Documents the updated Node.js environment
.gitignore Excludes .env files from version control
.github/​scripts/​README.md Documents setup, usage, approvals, and cost reporting
.github/​scripts/​openai-pricing.json Defines model pricing for cost calculations
.github/​scripts/​generate-seo-metadata.test.mjs Tests generation, validation, approvals, and failure handling
.github/​scripts/​generate-seo-metadata.mjs Implements the metadata generation CLI

Review effort: Balanced

}

printActualUsage(io, actual);
for (const { item, metadata } of generated) {

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is applicable to us. If you're running the script, you aren't editing those files at the same time? Any reason to do so?


export function parseArticle(source, relativePath = '<article>') {
const newline = source.includes('\r\n') ? '\r\n' : '\n';
const match = source.match(/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);
@bojanrajh Bojan Rajh (bojanrajh) mentioned this pull request Nov 16, 2026
2 of 6 tasks
@Isengo1989 Micha Hobert (Isengo1989) added the Improvement PR created to append/modify info in the existing article label Nov 16, 2026
@Isengo1989

Micha Hobert (Isengo1989) commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Bojan Rajh (@bojanrajh) should we wait with the testing till the changes are applied from the CP review?

We often get EU API keys from IT, which would fail on the README-documented execution

Error: 401 Attempted to access resource with incorrect regional hostname. Please make your request to eu.api.openai.com

@Isengo1989 Micha Hobert (Isengo1989) 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.

Error: 401 Attempted to access resource with incorrect regional hostname. Please make your request to eu.api.openai.com

Did you test with an personal openai API Key?

@Isengo1989 Micha Hobert (Isengo1989) 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.

Bojan Rajh (@bojanrajh) if you got a international API Key for generating, please share it over 1PW 👍

Comment thread AGENTS.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement PR created to append/modify info in the existing article

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants