← Back to Pull requests

docs: add documentation style guide and linting infrastructure #146

Closed
unknown closed this pull request without merging on Aug 28, 2026 07:06 UTC
View on GitHub
unknown unknown commented on Jul 16, 2026 01:59 UTC
Author

docs: add documentation style guide and linting infrastructure

  • Add DOCUMENTATION_STYLEGUIDE.zh.md: comprehensive writing standards

  • covering Markdown syntax, Chinese typography, tables, code blocks,
    links, images, and Docusaurus-specific conventions
  • Add DOCUMENTATION_LINTING.zh.md: markdownlint-cli2 based local

  • checking, auto-fix, and PR CI gate configuration
  • Add .markdownlint-cli2.yaml: rule configuration aligned with style guide

  • Update README.md: add reference to style guide in contribution section

  • Update CONTRIBUTING.zh.md: add documentation guidelines and linting

  • setup to PR workflow
  • Add markdown-lint.yml: add markdown Lint PR CI for branche restructure-zh
  • Summary by Sourcery

    Introduce a documentation style guide and automated linting to standardize RuyiSDK docs contribution and quality control.

    Build:

  • Add a markdownlint-cli2 configuration file aligning lint rules with the documentation style guide to enforce consistent formatting in docs.
  • CI:

  • Add a GitHub Actions workflow to run markdownlint-cli2 on Markdown/MDX files for the restructure-zh branch, acting as a PR gate for documentation formatting.
  • Documentation:

  • Add a comprehensive Chinese documentation style guide covering structure, typography, Markdown/Docusaurus conventions, and sidebar management.

  • Add a documentation linting guide detailing markdownlint-cli2 setup, usage, and its integration into local workflows and CI.

  • Document contribution workflows and DCO requirements in new English and Chinese CONTRIBUTING guides, including references to the style and linting guides.

  • Update the README with branch layout, documentation contribution instructions, and links to contribution guidelines.
  • Diff: 215 lines (+161 / -54) across 2 files Reviewer: xen0n Review duration: 62227m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.60) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 215 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.322
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #146"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 59.8% (MEDIUM) · Higher = larger blast radius
    59.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25.9% · Safe to merge
    25.9%
    Repository