From 756f6fc8b12a691b5bb2a727c6518ce0f22ebe75 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 31 Aug 2023 09:12:33 +0300 Subject: [PATCH] [docs] Add tree view nav item --- docs/next.config.js | 2 ++ docs/pages/_app.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/docs/next.config.js b/docs/next.config.js index 7ba064373c50..2320ae81e607 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -6,6 +6,7 @@ const pkg = require('../package.json'); const dataGridPkg = require('../packages/grid/x-data-grid/package.json'); const datePickersPkg = require('../packages/x-date-pickers/package.json'); const chartsPkg = require('../packages/x-charts/package.json'); +const treeViewPkg = require('../packages/x-tree-view/package.json'); const { findPages } = require('./src/modules/utils/find'); const { LANGUAGES, LANGUAGES_SSR } = require('./config'); @@ -20,6 +21,7 @@ module.exports = withDocsInfra({ DATA_GRID_VERSION: dataGridPkg.version, DATE_PICKERS_VERSION: datePickersPkg.version, CHARTS_VERSION: chartsPkg.version, + TREE_VIEW_VERSION: treeViewPkg.version, FEEDBACK_URL: process.env.FEEDBACK_URL, CONTEXT: process.env.CONTEXT, // #default-branch-switch diff --git a/docs/pages/_app.js b/docs/pages/_app.js index 9d30dfb3b243..6db1f352e0b3 100644 --- a/docs/pages/_app.js +++ b/docs/pages/_app.js @@ -247,6 +247,12 @@ function AppWrapper(props) { name: 'Charts', versions: [{ 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 }], + }; } return {