Skip to content

Commit

Permalink
[docs] Prepare docs infra for Tree View migration to X (#38202)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored Jul 31, 2023
1 parent c23d852 commit 5bac8b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/markdown/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,12 @@ function resolveComponentApiUrl(productId, componentPkg, component) {
if (productId === 'x-date-pickers') {
return `/x/api/date-pickers/${kebabCase(component)}/`;
}
if (productId === 'x-charts') {
return `/x/api/charts/${kebabCase(component)}/`;
}
if (productId === 'x-tree-view') {
return `/x/api/tree-view/${kebabCase(component)}/`;
}
if (componentPkg === 'mui-base' || BaseUIReexportedComponents.indexOf(component) >= 0) {
return `/base-ui/react-${kebabCase(component)}/components-api/#${kebabCase(component)}`;
}
Expand Down

0 comments on commit 5bac8b3

Please sign in to comment.