-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: version-compare-component #445
base: master
Are you sure you want to change the base?
Conversation
@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 ↗︎
|
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? |
I used VS Code and regex to replace the major part of them. And the rest part I changed it manually. |
Got it, I'll delete it then. |
The render result and test markdown file were updated. |
Delete useless `VersionVars`
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: