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';
10
10
import ListOfContents from '../helpers/list-of-contents' ;
11
11
import ListOfContentsMobile from '../helpers/list-of-contents-select' ;
12
12
13
- const reqSource = require . context ( '!raw-loader!@docs/pages' , true , / \. m d / ) ;
14
-
15
13
const useStyles = makeStyles ( ( theme ) => ( {
16
14
hidden : {
17
15
height : '100%'
@@ -27,7 +25,7 @@ const DocPage = ({ children }) => {
27
25
const router = useRouter ( ) ;
28
26
const classes = useStyles ( ) ;
29
27
30
- const text = reqSource ( `. /${ router . pathname . replace ( '/' , '' ) } .md`) . default ;
28
+ const text = require ( `!raw-loader!@docs/pages /${ router . pathname . replace ( '/' , '' ) } .md`) . default ;
31
29
32
30
const regex = / ^ # + .* / gm;
33
31
const found = text . match ( regex ) || [ ] ;
You can’t perform that action at this time.
0 commit comments