Merge pull request #676 from datopian/clean/up
Update package manager and next config for mdx
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
const toc = require('remark-toc')
|
|
||||||
const slug = require('remark-slug')
|
|
||||||
const gfm = require('remark-gfm')
|
|
||||||
const footnotes = require('remark-footnotes')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const withMDX = require('@next/mdx')({
|
|
||||||
extension: /\.mdx?$/,
|
|
||||||
options: {
|
|
||||||
remarkPlugins: [gfm, toc, slug, footnotes],
|
|
||||||
rehypePlugins: [],
|
|
||||||
providerImportSource: '@mdx-js/react',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
module.exports = withMDX({
|
|
||||||
// Append the default value with md extensions
|
|
||||||
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
|
||||||
})
|
|
||||||
18
examples/data-literate/next.config.mjs
Normal file
18
examples/data-literate/next.config.mjs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import gfm from 'remark-gfm'
|
||||||
|
import toc from 'remark-toc'
|
||||||
|
import slug from 'remark-slug'
|
||||||
|
import withMDXImp from '@next/mdx'
|
||||||
|
|
||||||
|
const withMDX = withMDXImp({
|
||||||
|
extension: /\.mdx?$/,
|
||||||
|
options: {
|
||||||
|
remarkPlugins: [gfm, toc, slug],
|
||||||
|
rehypePlugins: [],
|
||||||
|
// If you use `MDXProvider`, uncomment the following line.
|
||||||
|
providerImportSource: "@mdx-js/react",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
export default withMDX({
|
||||||
|
// Append the default value with md extensions
|
||||||
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
||||||
|
})
|
||||||
50860
examples/data-literate/package-lock.json
generated
Normal file
50860
examples/data-literate/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -25,8 +25,8 @@
|
|||||||
"portal": "https://github.com/datopian/portal.js.git",
|
"portal": "https://github.com/datopian/portal.js.git",
|
||||||
"postcss": "^8.4.7",
|
"postcss": "^8.4.7",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react": "17.0.2",
|
"react": "17.0.1",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.1",
|
||||||
"react-vega": "^7.4.4",
|
"react-vega": "^7.4.4",
|
||||||
"remark": "^13.0.0",
|
"remark": "^13.0.0",
|
||||||
"remark-footnotes": "^3.0.0",
|
"remark-footnotes": "^3.0.0",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user