Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Oct 31, 2019
1 parent 255584c commit ab15205
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 381 deletions.

This file was deleted.

125 changes: 0 additions & 125 deletions packages/docusaurus-1.x/lib/core/__tests__/anchors.test.js

This file was deleted.

7 changes: 5 additions & 2 deletions packages/docusaurus-1.x/lib/core/renderMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

const _ = require('lodash');
const hljs = require('highlight.js');
const Markdown = require('remarkable');
const {Remarkable: Markdown} = require('remarkable');
const {linkify} = require('remarkable/linkify');
const prismjs = require('prismjs');
const loadLanguages = require('prismjs/components/index');
const chalk = require('chalk');
Expand Down Expand Up @@ -83,7 +84,6 @@ class MarkdownRenderer {
return '';
},
html: true,
linkify: true,
};

// Allow overriding default options
Expand All @@ -100,6 +100,9 @@ class MarkdownRenderer {
// Register anchors plugin
md.use(anchors);

// Linkify
md.use(linkify);

// Allow client sites to register their own plugins
if (siteConfig.markdownPlugins) {
siteConfig.markdownPlugins.forEach(plugin => {
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-1.x/lib/core/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

const Remarkable = require('remarkable');
const {Remarkable} = require('remarkable');
const mdToc = require('markdown-toc');
const striptags = require('striptags');
const toSlug = require('./toSlug');
Expand Down
22 changes: 11 additions & 11 deletions packages/docusaurus-1.x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@babel/register": "^7.6.2",
"@babel/traverse": "^7.6.3",
"@babel/types": "^7.6.3",
"autoprefixer": "^9.6.1",
"autoprefixer": "^9.7.0",
"babylon": "^6.18.0",
"chalk": "^2.4.2",
"chokidar": "^3.0.2",
"chokidar": "^3.2.3",
"classnames": "^2.2.6",
"color": "^2.0.1",
"commander": "^2.20.0",
Expand All @@ -50,30 +50,30 @@
"feed": "^1.1.0",
"fs-extra": "^8.1.0",
"gaze": "^1.1.3",
"glob": "^7.1.3",
"highlight.js": "^9.15.8",
"imagemin": "^6.0.0",
"glob": "^7.1.5",
"highlight.js": "^9.16.1",
"imagemin": "^7.0.0",
"imagemin-gifsicle": "^6.0.1",
"imagemin-jpegtran": "^6.0.0",
"imagemin-optipng": "^6.0.0",
"imagemin-optipng": "^7.1.0",
"imagemin-svgo": "^7.0.0",
"lodash": "^4.17.15",
"markdown-toc": "^1.2.0",
"mkdirp": "^0.5.1",
"portfinder": "^1.0.21",
"postcss": "^7.0.17",
"portfinder": "^1.0.25",
"postcss": "^7.0.21",
"prismjs": "^1.17.1",
"react": "^16.8.4",
"react-dev-utils": "^9.0.1",
"react-dev-utils": "^9.1.0",
"react-dom": "^16.8.4",
"remarkable": "^1.7.4",
"remarkable": "^2.0.0",
"request": "^2.88.0",
"shelljs": "^0.8.3",
"sitemap": "^3.2.2",
"striptags": "^3.1.1",
"tcp-port-used": "^1.0.1",
"tiny-lr": "^1.1.1",
"tree-node-cli": "^1.2.5",
"truncate-html": "^1.0.2"
"truncate-html": "^1.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@endiliey/static-site-generator-webpack-plugin": "^4.0.0",
"std-env": "^2.2.1",
"style-loader": "^1.0.0",
"terser-webpack-plugin": "^2.1.3",
"terser-webpack-plugin": "^2.2.1",
"wait-file": "^1.0.5",
"webpack": "^4.41.2",
"webpack-bundle-analyzer": "^3.6.0",
Expand Down
Loading

1 comment on commit ab15205

@yangshun
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The images are not copied to the generated directory. Might be caused by one of the image dependencies upgrades.

Please sign in to comment.