File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/react-renderer-demo/src/components Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import { makeStyles } from '@material-ui/core/styles';
1010import ListOfContents from '../helpers/list-of-contents' ;
1111import ListOfContentsMobile from '../helpers/list-of-contents-select' ;
1212
13- const reqSource = require . context ( '!raw-loader!@docs/pages' , true , / \. m d / ) ;
14-
1513const useStyles = makeStyles ( ( theme ) => ( {
1614 hidden : {
1715 height : '100%'
@@ -27,7 +25,7 @@ const DocPage = ({ children }) => {
2725 const router = useRouter ( ) ;
2826 const classes = useStyles ( ) ;
2927
30- const text = reqSource ( `. /${ router . pathname . replace ( '/' , '' ) } .md`) . default ;
28+ const text = require ( `!raw-loader!@docs/pages /${ router . pathname . replace ( '/' , '' ) } .md`) . default ;
3129
3230 const regex = / ^ # + .* / gm;
3331 const found = text . match ( regex ) || [ ] ;
You can’t perform that action at this time.
0 commit comments