feat(v2): composition syntax highlighting & live code editors (#1555)

* feat(v2): composition syntax highlighting & react-live playground

* mobile friendly tweak

* refactor styling

* revert docs
This commit is contained in:
Endi 2019-06-04 15:59:51 +07:00 committed by GitHub
parent 246c1814c0
commit 305a4f0a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 287 additions and 84 deletions

View file

@ -25,7 +25,6 @@ const DEFAULT_OPTIONS = {
docItemComponent: '@theme/DocItem',
remarkPlugins: [],
rehypePlugins: [],
prismTheme: '',
};
module.exports = function(context, opts) {
@ -161,7 +160,7 @@ module.exports = function(context, opts) {
},
configureWebpack(config, isServer, {getBabelLoader, getCacheLoader}) {
const {rehypePlugins, remarkPlugins, prismTheme} = options;
const {rehypePlugins, remarkPlugins} = options;
return {
module: {
rules: [
@ -176,7 +175,6 @@ module.exports = function(context, opts) {
options: {
remarkPlugins,
rehypePlugins,
prismTheme,
},
},
{