Open Icemap opened 8 months ago
@Icemap is attempting to deploy a commit to the pingcap Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
website-docs | ❌ Failed (Inspect) | Oct 31, 2023 6:11am |
About the version type in the "Render result" section, is it necessary? Because for a System Variables page, all the content in this page apply to the version where you're (you can see it in url or the upper left version drop-down box).
How do you convert system-variables.md into the test markdown? Are there any tools or scripts available?
How do you convert system-variables.md into the test markdown? Are there any tools or scripts available?
I used VS Code and regex to replace the major part of them. And the rest part I changed it manually.
About the version type in the "Render result" section, is it necessary? Because for a System Variables page, all the content in this page apply to the version where you're (you can see it in url or the upper left version drop-down box).
Got it, I'll delete it then.
The render result and test markdown file were updated.
This is a feature that can filter variables for the System Variables document by the version of TiDB.
Created Components
Three components are created:
Usage
VersionVarsFilter
andVersionVars
are a pair of components, that can be used like:And the
MDLink
component is a component that handles the link within the react like<MDLink url="/optimizer-hints#set_varvar_namevar_value">SET_VAR</MDLink>
instead of the link in the markdown, like[SET_VAR](/[optimizer-hints.md](http://optimizer-hints.md/)#set_varvar_namevar_value)
.Test markdown file.
Render result: