pingcap / website-docs

The next generation of PingCAP Docs. Powered by Gatsby ⚛️.
https://docs.pingcap.com/
MIT License
22 stars 33 forks source link

support railroad diagram #334

Closed you06 closed 1 year ago

you06 commented 1 year ago

Signed-off-by: you06 you1474600@gmail.com

Now we transfer enbf into railroad in our doc, this PR support railroad diagram directly. Doc writes can choose either enbf or railroad now.

Source and diagram example:

image

image

netlify[bot] commented 1 year ago

Deploy request for docs-dev-preview pending review.

Visit the deploys page to approve it

Name Link
Latest commit 16b50370c8a4e3e3bc9c1d5fa375f44626b04540
vercel[bot] commented 1 year ago

@you06 is attempting to deploy a commit to the pingcap Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
website-docs ❌ Failed (Inspect) Aug 5, 2022 at 2:49AM (UTC)
website-docs-preview ✅ Ready (Inspect) Visit Preview Aug 5, 2022 at 2:49AM (UTC)
you06 commented 1 year ago

@shczhen this railroad parser is only used in a newly added doc page now. And there are still some defects, I'll add the tests and fix the defects in a later PR.

shczhen commented 1 year ago

@shczhen this railroad parser is only used in a newly added doc page now. And there are still some defects, I'll add the tests and fix the defects in a later PR.

@you06 OK. Are there any other commits to be merged into this PR? I will squash and merge it after all checks complete.

you06 commented 1 year ago

@shczhen no more commits by now, this PR is tested manually with the new doc page.