Skip to content

docs(pages): sync review-rules table with system_rules.json and add ru locale - #612

Open
nolanchic wants to merge 1 commit into
alibaba:mainfrom
nolanchic:docs/sync-review-rules-table-608
Open

docs(pages): sync review-rules table with system_rules.json and add ru locale#612
nolanchic wants to merge 1 commit into
alibaba:mainfrom
nolanchic:docs/sync-review-rules-table-608

Conversation

@nolanchic

Copy link
Copy Markdown

Description

The "Rule resolution per file" table in pages/src/content/docs/{en,ja,zh}/review-rules.md was missing 11 entries that are present in internal/config/rules/system_rules.json:

go, astro, python, protobuf, po, pot, graphql, prisma, julia, terraform, bicep

The rows are now ordered to match the declaration order in system_rules.json.

This also adds pages/src/content/docs/ru/review-rules.md — a full Russian translation of the page. The ru locale (added in #596) previously only had installation.md and quickstart.md, so this fills in the next page. The new file is registered in src/content/docs/index.ts so the ru docs site renders the translated page rather than falling back to English.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

Documentation-only change; no Go code touched.

  • make test passes locally
  • Manual testing (describe below)

Ran the docs-site checks from the pages/ directory:

cd pages
npm run typecheck   # passes (ru/review-rules.md registered cleanly, no missing imports)

Verified the table in all four locales now has 31 entries matching system_rules.json's path_rule_map in declaration order.

Checklist

  • My code follows the project's coding style (go fmt, go vet)
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA

Will sign the CLA once the bot posts the link on this PR.

Related Issues

Closes #608

…u locale

The "Rule resolution per file" table in en/ja/zh was missing 11 entries
(go, astro, python, protobuf, po, pot, graphql, prisma, julia, terraform,
bicep) that exist in internal/config/rules/system_rules.json. Rows are now
ordered to match the declaration order in system_rules.json.

Also adds pages/src/content/docs/ru/review-rules.md, translating the full
page to Russian (the ru locale only had installation.md and quickstart.md
so far) and registers it in the docs index so the ru site shows the
translated page instead of the English fallback.

Closes alibaba#608
@CLAassistant

CLAassistant commented Jul 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

Copy link
Copy Markdown
Contributor

OpenCodeReview: No comments generated. Looks good to me.

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.

docs(review-rules): sync system rules table with actual system_rules.json and add missing ru locale

2 participants