feat: Add bundles

This commit is contained in:
Till Kolter 2020-08-26 00:04:36 +02:00
parent 422ec09771
commit eb1b3b55f4
9 changed files with 13 additions and 21 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -40,8 +40,6 @@ export class Redoc extends React.Component<RedocProps> {
} = this.props;
const store = this.props.store;
console.log('components', components);
return (
<ThemeProvider theme={options.theme}>
<StoreProvider value={this.props.store}>
@ -65,7 +63,7 @@ export class Redoc extends React.Component<RedocProps> {
<ApiInfo store={store} />
{markdownIndex &&
markdownIndex.components.map((MDXComponent, idx) => {
return <MDXComponent key={`mdxsection-${idx}`} />;
return <MDXComponent key={`mdx-${idx}`} />;
})}
<ContentItems items={menu.items as any} />
</ApiContentWrap>

View File

@ -13,7 +13,6 @@ const OverflowHighlighter = styled.pre`
`;
const Highlighter: React.FC<Props> = ({ children, className }) => {
console.log('className', className);
const language = className ? className.replace(/language-/, '').trim() : 'bash';
if (!children) {

View File

@ -64,12 +64,10 @@ const Wrapper = ({ children }) => {
const sections = getSections(children);
console.log('sections', sections);
return (
<>
{sections.map((section) => (
<Section key={`resection-${section.id}`} id={section.id}>
<Section key={`section-${section.id}`} id={section.id}>
<Row id={section.id}>
{section.middle && <MiddlePanel>{section.middle}</MiddlePanel>}
{section.right && <DarkRightPanel>{section.right}</DarkRightPanel>}