Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
feat: added usesSrc to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnforte authored and jescalan committed Aug 25, 2020
1 parent 5f42861 commit 8421d21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports = withMdxEnhanced({
fileExtensions: ['mdx'],
remarkPlugins: [],
rehypePlugins: [],
usesSrc: false
extendFrontMatter: {
process: (mdxContent, frontMatter) => {},
phase: 'prebuild|loader|both',
Expand Down Expand Up @@ -98,6 +99,12 @@ Array of [remark plugins](https://mdxjs.com/advanced/plugins#using-remark-and-re
Array of [rehype plugins](https://mdxjs.com/advanced/plugins#using-remark-and-rehype-plugins) used to transform `.mdx` files.

### usesSrc

> `boolean` | optional | **default: `checks for src/pages to set the flag`**
It dictates if next mdx enhanced should use the src/pages for looking for the pages' folder. Otherwise, it will use the pages in the top-level directory. Also, if not set, it automatically checks for the src/pages directories.

### extendFrontMatter

> `object` | optional
Expand Down

0 comments on commit 8421d21

Please sign in to comment.