Skip to content
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

[core] Adds new alpha version to version select on the docs #10944

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ function AppWrapper(props) {
metadata: '',
name: 'MUI X',
versions: [
{ text: 'v7.0.0-alpha.0', href: `https://next.mui.com${languagePrefix}/x/introduction/` },
michelengelen marked this conversation as resolved.
Show resolved Hide resolved
{ text: `v${process.env.LIB_VERSION}`, current: true },
{ text: 'v5', href: `https://v5.mui.com${languagePrefix}/x/introduction/` },
{ text: 'v4', href: `https://v4.mui.com${languagePrefix}/components/data-grid/` },
Expand All @@ -224,6 +225,10 @@ function AppWrapper(props) {
metadata: 'MUI X',
name: 'Data Grid',
versions: [
{
text: 'v7.0.0-alpha.0',
href: `https://next.mui.com${languagePrefix}/components/data-grid/`,
},
{ text: `v${process.env.DATA_GRID_VERSION}`, current: true },
{ text: 'v5', href: `https://v5.mui.com${languagePrefix}/components/data-grid/` },
{ text: 'v4', href: `https://v4.mui.com${languagePrefix}/components/data-grid/` },
Expand All @@ -234,6 +239,10 @@ function AppWrapper(props) {
metadata: 'MUI X',
name: 'Date Pickers',
versions: [
{
text: 'v7.0.0-alpha.0',
href: `https://next.mui.com${languagePrefix}/x/react-date-pickers/getting-started/`,
},
{ text: `v${process.env.DATE_PICKERS_VERSION}`, current: true },
{
text: 'v5',
Expand All @@ -245,13 +254,25 @@ function AppWrapper(props) {
productIdentifier = {
metadata: 'MUI X',
name: 'Charts',
versions: [{ text: `v${process.env.CHARTS_VERSION}`, current: true }],
versions: [
{
text: 'v7.0.0-alpha.0',
href: `https://next.mui.com${languagePrefix}/x/react-charts/getting-started`,
},
{ text: `v${process.env.CHARTS_VERSION}`, current: true },
],
};
} else if (productId === 'x-tree-view') {
productIdentifier = {
metadata: 'MUI X',
name: 'Tree View',
versions: [{ text: `v${process.env.TREE_VIEW_VERSION}`, current: true }],
versions: [
{
text: 'v7.0.0-alpha.0',
href: `https://next.mui.com${languagePrefix}/x/react-tree-view/getting-started`,
},
{ text: `v${process.env.TREE_VIEW_VERSION}`, current: true },
],
};
}

Expand Down
Loading