diff --git a/lib/core/DocsLayout.js b/lib/core/DocsLayout.js index 30f11410ae..9edd745a37 100644 --- a/lib/core/DocsLayout.js +++ b/lib/core/DocsLayout.js @@ -18,6 +18,10 @@ class DocsLayout extends React.Component { const metadata = this.props.metadata; const content = this.props.children; const i18n = translation[this.props.metadata.language]; + let DocComponent = Doc; + if (this.props.Doc) { + DocComponent = this.props.Doc; + } return ( - + {rawContent} );