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

[docs-infra] Use the @mui/docs/HighlightedCode #12757

Closed
Closed
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
2 changes: 1 addition & 1 deletion docs/data/charts/bars/BarClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UndoOutlinedIcon from '@mui/icons-material/UndoOutlined';

import { BarChart } from '@mui/x-charts/BarChart';

import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const barChartsParams = {
series: [
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/lines/InterpolationDemoNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import TextField from '@mui/material/TextField';
import MenuItem from '@mui/material/MenuItem';
import { LineChart } from '@mui/x-charts/LineChart';

import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const curveTypes = [
'catmullRom',
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/lines/LineClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UndoOutlinedIcon from '@mui/icons-material/UndoOutlined';

import { LineChart } from '@mui/x-charts/LineChart';

import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const lineChartsParams = {
series: [
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/pie/PieClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UndoOutlinedIcon from '@mui/icons-material/UndoOutlined';

import { PieChart } from '@mui/x-charts/PieChart';

import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const data1 = [
{ label: 'Group A', value: 400 },
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/scatter/ScatterClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UndoOutlinedIcon from '@mui/icons-material/UndoOutlined';

import { ScatterChart } from '@mui/x-charts/ScatterChart';

import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const scatterChartsParams = {
series: [
Expand Down
2 changes: 1 addition & 1 deletion docs/data/data-grid/events/CatalogOfEventsNoSnap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import { styled } from '@mui/material/styles';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
// @ts-ignore
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo';
import Stack from '@mui/material/Stack';
import Box from '@mui/material/Box';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
// @ts-ignore
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo';
import Stack from '@mui/material/Stack';
import Box from '@mui/material/Box';
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/ApiDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AccordionDetails from '@mui/material/AccordionDetails';
import Typography from '@mui/material/Typography';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import PropTypes from 'prop-types';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const PrimaryHeading = styled(Typography)(({ theme }) => ({
fontSize: theme.typography.pxToRem(15),
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/ChartsUsageDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import Box from '@mui/joy/Box';
import BrandingProvider from 'docs/src/BrandingProvider';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import DemoPropsForm from './DemoPropsForm';

export default function ChartsUsageDemo({
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/CustomizationPlayground.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
// @ts-ignore
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
// @ts-ignore
import BrandingProvider from 'docs/src/BrandingProvider';
import { styled, Theme, alpha, useTheme } from '@mui/material/styles';
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/InterfaceApiPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Alert from '@mui/material/Alert';
import VerifiedRoundedIcon from '@mui/icons-material/VerifiedRounded';
import { alpha } from '@mui/material/styles';
import { useTranslate, useUserLanguage } from 'docs/src/modules/utils/i18n';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import MarkdownElement from 'docs/src/modules/components/MarkdownElement';
import AppLayoutDocs from 'docs/src/modules/components/AppLayoutDocs';
import PropertiesSection from 'docs/src/modules/components/ApiPage/sections/PropertiesSection';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import Stack from '@mui/material/Stack';
import ToggleOptions from './ToggleOptions';

Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/SelectorsDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AccordionDetails from '@mui/material/AccordionDetails';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import MarkdownElement from 'docs/src/modules/components/MarkdownElement';
import allSelectors from 'docsx/pages/x/api/data-grid/selectors.json';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@mnajdova/enzyme-adapter-react-18": "^0.2.0",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@mui/monorepo": "https://github.com/mui/material-ui.git#next",
"@mui/monorepo": "https://github.com/Janpot/material-ui.git#highlightedcode-mui-docs",
"@mui/utils": "^5.15.14",
"@next/eslint-plugin-next": "14.0.4",
"@octokit/plugin-retry": "^6.0.1",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2016,9 +2016,9 @@
react-is "^18.2.0"
react-transition-group "^4.4.5"

"@mui/monorepo@https://github.com/mui/material-ui.git#next":
version "6.0.0-alpha.0"
resolved "https://github.com/mui/material-ui.git#e1d94d5ce097815bcd738352e69bb43ce03bd266"
"@mui/monorepo@https://github.com/Janpot/material-ui.git#highlightedcode-mui-docs":
version "6.0.0-alpha.2"
resolved "https://github.com/Janpot/material-ui.git#9a9d0eddd60a948bf204fcaa6a90ab26aae2f1a5"
dependencies:
"@googleapis/sheets" "^5.0.5"
"@netlify/functions" "^2.6.0"
Expand Down
Loading