Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 22 additions & 2 deletions docs/config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
// eslint-disable-next-line no-restricted-imports
export * from '@mui/monorepo/docs/config';
// Valid languages to server-side render in production
export const LANGUAGES = ['en'];

// Server side rendered languages
export const LANGUAGES_SSR = ['en'];

// Work in progress
export const LANGUAGES_IN_PROGRESS = LANGUAGES.slice();

export const LANGUAGES_IGNORE_PAGES = (pathname: string) => {
// We don't have the bandwidth like Qt to translate our blog posts
// https://www.qt.io/zh-cn/blog
if (pathname === '/blog' || pathname.startsWith('/blog/')) {
return true;
}

if (pathname === '/size-snapshot/') {
return true;
}

return false;
};
2 changes: 1 addition & 1 deletion docs/data/chartsApiPages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MuiPage } from 'docs/src/MuiPage';
import type { MuiPage } from '@mui/docs/MuiPage';

const chartsApiPages: MuiPage[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/data/dataGridApiPages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MuiPage } from 'docs/src/MuiPage';
import type { MuiPage } from '@mui/docs/MuiPage';

const dataGridApiPages: MuiPage[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/data/datePickersApiPages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MuiPage } from 'docs/src/MuiPage';
import type { MuiPage } from '@mui/docs/MuiPage';

const datePickersApiPages: MuiPage[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/data/pages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MuiPage } from 'docs/src/MuiPage';
import type { MuiPage } from '@mui/docs/MuiPage';
import chartsComponentApi from './chartsApiPages';
import dataGridComponentApi from './dataGridApiPages';
import pickersComponentApi from './datePickersApiPages';
Expand Down
2 changes: 1 addition & 1 deletion docs/data/treeViewApiPages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MuiPage } from 'docs/src/MuiPage';
import type { MuiPage } from '@mui/docs/MuiPage';

const treeViewApiPages: MuiPage[] = [
{
Expand Down
1 change: 1 addition & 0 deletions docs/docs-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@mui/docs/webpack';
4 changes: 3 additions & 1 deletion docs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export default withDeploymentConfig({
...config.resolve.alias,
...MONOREPO_ALIASES,
'@mui/x-license': path.resolve(currentDirectory, '../packages/x-license/src'),
// TODO: get rid of this, replace with @mui/docs
'docs/src/modules/utils/mapApiPageTranslations': path.resolve(
'src/modules/utils/mapApiPageTranslations.js',
),
docs: path.resolve(MONOREPO_PATH, './docs'),
docsx: path.resolve(currentDirectory, '../docs'),
},
Expand Down
3 changes: 1 addition & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@emotion/react": "catalog:",
"@emotion/server": "^11.11.0",
"@emotion/styled": "catalog:",
"@mui/docs": "7.3.8",
"@mui/icons-material": "catalog:",
"@mui/internal-docs-infra": "^0.4.1-canary.10",
"@mui/joy": "^5.0.0-beta.52",
Expand Down Expand Up @@ -106,7 +105,7 @@
"@types/luxon": "catalog:",
"@types/moment-hijri": "catalog:",
"@types/moment-jalaali": "catalog:",
"@types/nprogress": "0.2.3",
"@types/nprogress": "^0.2.3",
"@types/prop-types": "catalog:",
"@types/react-dom": "catalog:",
"@types/stylis": "4.2.7",
Expand Down
Loading
Loading