PingCAP Docsite Preview Help

Overview

pingcap-docsite-preview is a tool designed for previewing changes to PingCAP documentation website before merging pull requests. It enables you to:

  • Validate document updates without affecting the official website.

  • Collaborate with reviewers by sharing a preview link.

  • Verify the accurate rendering of changes before merging them into the production website.

  • Achieve consistent preview results that match the official website.

Key features

  • Ease of use: preview a PR by simply creating a new branch.

  • Cross-repository preview: simultaneously preview changes from multiple PRs across different repositories.

  • Centralized preview schedule management: organize and manage preview schedules in a unified workflow.

  • Customizability: customize the preview process to meet your requirements.

Scope

pingcap-docsite-preview supports previewing documentation for TiDB, TiDB Cloud, and TiDB Operator. You can preview PRs from the following repositories:

    Usage scenarios

    Steps to preview document changes

    Expand to view the flowchart.
    forkupdate scaffoldTerminalsync_scaffold.sh  GitHub Actionssync_scaffold.yml  update contentfrom a PRsync_pr.sh sync_pr.ymlfrom multi PRssync_mult_prs.sh sync_mult_prs.ymlmanualmarkdown-pages  periodic updateGitHub Actions sync_scheduler.ymldeploy websitelocal./build.sh dev  cloudNetlifyVercelCloudflare Pages

    To preview document changes, perform the following steps:

    1. Fork the pingcap-docsite-preview repository.

    2. Update the scaffold of PingCAP documentation website, including version selection, table of contents, index pages, and the homepage.

      For more information, see Update scaffold.

    3. Update the documentation content you want to preview.

      For more information, see Update content.

    4. Deploy the preview website either locally or on a static hosting service.

      For more information, see Deploy your website.

    Last modified: 01 April 2025