Merge pull request #676 from datopian/clean/up

Update package manager and next config for mdx
This commit is contained in:
Rising Odegua 2022-03-07 12:51:03 +01:00 committed by GitHub
commit 9b1b675b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 50880 additions and 14462 deletions

View File

@ -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'],
})

View 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

File diff suppressed because it is too large Load Diff

View File

@ -25,8 +25,8 @@
"portal": "https://github.com/datopian/portal.js.git",
"postcss": "^8.4.7",
"prop-types": "^15.7.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-vega": "^7.4.4",
"remark": "^13.0.0",
"remark-footnotes": "^3.0.0",

File diff suppressed because it is too large Load Diff