Skip to content

Commit

Permalink
[docs] Follow-up on #20601
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 25, 2020
1 parent a3fc812 commit d76dd1c
Show file tree
Hide file tree
Showing 250 changed files with 1,220 additions and 372 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,11 @@ module.exports = {
],
},
},
{
files: ['docs/pages/**/*.js'],
rules: {
'react/prop-types': 'off',
},
},
],
};
7 changes: 5 additions & 2 deletions docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,16 @@ MyApp.propTypes = {
};

MyApp.getInitialProps = async ({ ctx, Component }) => {
let pageProps = { userLanguage: ctx.query.userLanguage };
let pageProps = {};

if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx);
}

return {
pageProps,
pageProps: {
userLanguage: ctx.query.userLanguage || 'en',
...pageProps,
},
};
};
2 changes: 1 addition & 1 deletion docs/pages/api-docs/alert-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/alert-title';
const requireRaw = require.context('!raw-loader!./', false, /alert-title\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/alert-title\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/alert';
const requireRaw = require.context('!raw-loader!./', false, /alert\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/alert\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/app-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/app-bar';
const requireRaw = require.context('!raw-loader!./', false, /app-bar\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/app-bar\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/autocomplete';
const requireRaw = require.context('!raw-loader!./', false, /autocomplete\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/autocomplete\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/avatar-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/avatar-group';
const requireRaw = require.context('!raw-loader!./', false, /avatar-group\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/avatar-group\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/avatar';
const requireRaw = require.context('!raw-loader!./', false, /avatar\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/avatar\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/backdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/backdrop';
const requireRaw = require.context('!raw-loader!./', false, /backdrop\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/backdrop\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/badge';
const requireRaw = require.context('!raw-loader!./', false, /badge\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/badge\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/bottom-navigation-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/bottom-navigation-action';
const requireRaw = require.context('!raw-loader!./', false, /bottom-navigation-action\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/bottom-navigation-action\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/bottom-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/bottom-navigation';
const requireRaw = require.context('!raw-loader!./', false, /bottom-navigation\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/bottom-navigation\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/breadcrumbs';
const requireRaw = require.context('!raw-loader!./', false, /breadcrumbs\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/breadcrumbs\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/button-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/button-base';
const requireRaw = require.context('!raw-loader!./', false, /button-base\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/button-base\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/button-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/button-group';
const requireRaw = require.context('!raw-loader!./', false, /button-group\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/button-group\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/button';
const requireRaw = require.context('!raw-loader!./', false, /button\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/button\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/card-action-area.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/card-action-area';
const requireRaw = require.context('!raw-loader!./', false, /card-action-area\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/card-action-area\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/card-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/card-actions';
const requireRaw = require.context('!raw-loader!./', false, /card-actions\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/card-actions\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/card-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/card-content';
const requireRaw = require.context('!raw-loader!./', false, /card-content\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/card-content\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/card-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/card-header';
const requireRaw = require.context('!raw-loader!./', false, /card-header\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/card-header\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/card-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/card-media';
const requireRaw = require.context('!raw-loader!./', false, /card-media\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/card-media\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/card';
const requireRaw = require.context('!raw-loader!./', false, /card\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/card\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/checkbox';
const requireRaw = require.context('!raw-loader!./', false, /checkbox\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/checkbox\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/chip.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/chip';
const requireRaw = require.context('!raw-loader!./', false, /chip\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/chip\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/circular-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/circular-progress';
const requireRaw = require.context('!raw-loader!./', false, /circular-progress\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/circular-progress\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/click-away-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/click-away-listener';
const requireRaw = require.context('!raw-loader!./', false, /click-away-listener\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/click-away-listener\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/collapse';
const requireRaw = require.context('!raw-loader!./', false, /collapse\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/collapse\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/container';
const requireRaw = require.context('!raw-loader!./', false, /container\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/container\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/css-baseline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/css-baseline';
const requireRaw = require.context('!raw-loader!./', false, /css-baseline\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/css-baseline\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/dialog-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/dialog-actions';
const requireRaw = require.context('!raw-loader!./', false, /dialog-actions\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/dialog-actions\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/dialog-content-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/dialog-content-text';
const requireRaw = require.context('!raw-loader!./', false, /dialog-content-text\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/dialog-content-text\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/dialog-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/dialog-content';
const requireRaw = require.context('!raw-loader!./', false, /dialog-content\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/dialog-content\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/dialog-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/dialog-title';
const requireRaw = require.context('!raw-loader!./', false, /dialog-title\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/dialog-title\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/dialog';
const requireRaw = require.context('!raw-loader!./', false, /dialog\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/dialog\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/divider';
const requireRaw = require.context('!raw-loader!./', false, /divider\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/divider\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/drawer';
const requireRaw = require.context('!raw-loader!./', false, /drawer\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/drawer\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/expansion-panel-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel-actions';
const requireRaw = require.context('!raw-loader!./', false, /expansion-panel-actions\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-actions\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/expansion-panel-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel-details';
const requireRaw = require.context('!raw-loader!./', false, /expansion-panel-details\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-details\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/expansion-panel-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel-summary';
const requireRaw = require.context('!raw-loader!./', false, /expansion-panel-summary\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-summary\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/expansion-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/expansion-panel';
const requireRaw = require.context('!raw-loader!./', false, /expansion-panel\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/fab.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/fab';
const requireRaw = require.context('!raw-loader!./', false, /fab\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/fab\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/fade.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/fade';
const requireRaw = require.context('!raw-loader!./', false, /fade\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/fade\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-docs/filled-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'api/filled-input';
const requireRaw = require.context('!raw-loader!./', false, /filled-input\.md$/);
const requireRaw = require.context('!raw-loader!./', false, /\/filled-input\.md$/);

// eslint-disable-next-line react/prop-types
export default function Page({ docs }) {
Expand Down
Loading

0 comments on commit d76dd1c

Please sign in to comment.