GithubHelp home page GithubHelp logo

qiancai / pingcap-docsite-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oreoxmt/pingcap-docsite-preview

0.0 0.0 0.0 5.87 MB

A preview environment to review changes to PingCAP documentation website before merging pull requests.

Home Page: https://pdp.oreo.life

License: GNU General Public License v3.0

Shell 63.39% Python 36.61%

pingcap-docsite-preview's Introduction

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

usage-steps-diagram

@startuml

hide empty description
[*] --> fork
fork --> UpdateScaffold
state "update scaffold" as UpdateScaffold {
state "Terminal" as UpdateScaffoldScript
UpdateScaffoldScript: sync_scaffold.sh\n\n
state "GitHub Actions" as UpdateScaffoldGHA
UpdateScaffoldGHA: sync_scaffold.yml\n\n

}
UpdateScaffold -right-> UpdateContent
state "update content" as UpdateContent {
state "from a PR" as PR
state "from multi PRs" as PRs
state manual
PR: sync_pr.sh\n
PR: sync_pr.yml
PRs: sync_mult_prs.sh\n
PRs: sync_mult_prs.yml
manual: markdown-pages\n\n

}
state "periodic update" as PeriodicUpdate{
PeriodicUpdate: GitHub Actions\n\nsync_scheduler.yml
}
PeriodicUpdate -[dashed]-> UpdateContent
state "deploy website" as DeployWebsite {
state local
local: ./build.sh dev\n\n
state cloud
cloud: Netlify
cloud: Vercel
cloud: Cloudflare Pages
}
UpdateContent --> DeployWebsite
@enduml

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.

pingcap-docsite-preview's People

Contributors

oreoxmt avatar qiancai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.