guoqqqi opened a new pull request, #2032:
URL: https://github.com/apache/apisix-website/pull/2032

   ## Summary
   - Add a `lint:frontmatter` script that parses Markdown/MDX YAML frontmatter 
with `js-yaml`.
   - Run the check in the existing lint workflow so malformed frontmatter is 
caught before a Docusaurus blog build.
   
   ## Why
   - #2021 introduced an unquoted `: ` in a blog `description`, which made 
Docusaurus fail while parsing Markdown frontmatter.
   - This check catches the same class of YAML frontmatter parse errors 
directly in CI.
   
   ## Verification
   - `yarn install --frozen-lockfile --ignore-scripts`
   - `yarn lint:frontmatter`
   - `./node_modules/.bin/eslint scripts/lint-frontmatter.js 
.github/workflows/lint.yml`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to