Skip to content

Commit

Permalink
[docs] Create React page to host json API pages
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 25, 2020
1 parent 161fb85 commit 4a1e58d
Show file tree
Hide file tree
Showing 279 changed files with 1,341 additions and 723 deletions.
4 changes: 2 additions & 2 deletions docs/pages/api-docs/accordion-actions.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/accordion-details.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/accordion-summary.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/accordion.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/alert-title.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/alert.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/app-bar.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/avatar-group.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/avatar.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/backdrop.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/badge.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/bottom-navigation-action.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
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$/);

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/bottom-navigation.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/breadcrumbs.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/button-base.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/button-group.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/button.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/card-action-area.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
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$/);

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/card-actions.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/card-content.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/card-header.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/card-media.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/card.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api-docs/chip.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import TopLayoutDocs from 'docs/src/modules/components/TopLayoutDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

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

export default function Page({ docs }) {
return <MarkdownDocs docs={docs} />;
return <TopLayoutDocs docs={docs} />;
}

Page.getInitialProps = () => {
Expand Down
Loading

0 comments on commit 4a1e58d

Please sign in to comment.