diff --git a/README.md b/README.md index 9ae967c..bf78e7e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # documentation +[![Greenkeeper badge](https://badges.greenkeeper.io/documentationjs/documentation.svg)](https://greenkeeper.io/) + [![Circle CI](https://circleci.com/gh/documentationjs/documentation/tree/master.svg?style=shield)](https://circleci.com/gh/documentationjs/documentation/tree/master) [![npm version](https://badge.fury.io/js/documentation.svg)](http://badge.fury.io/js/documentation) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/documentationjs/documentation?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) diff --git a/lib/commands/readme.js b/lib/commands/readme.js index 9573c0e..27202da 100644 --- a/lib/commands/readme.js +++ b/lib/commands/readme.js @@ -114,7 +114,7 @@ module.exports.handler = function readme(argv /*: Object*/) { }; // wrap the inject utility as an remark plugin -function plugin(remark, options) { +function plugin(options) { return function transform(targetAst, file, next) { if (!inject(options.section, targetAst, options.toInject)) { return next(new Error(`Heading ${options.section} not found.`)); diff --git a/lib/inline_tokenizer.js b/lib/inline_tokenizer.js index 062ce30..1c5eb90 100644 --- a/lib/inline_tokenizer.js +++ b/lib/inline_tokenizer.js @@ -56,11 +56,11 @@ var tokenizeTutorial = makeTokenizer( * This does not handle the `[text]({@link url})` and `[text]({@tutorial url})` forms of these tags. * That's a JSDoc misfeature; just use regular markdown syntax instead: `[text](url)`. * - * @param {Object} processor - remark instance + * @param {Object} options - for the plugin * @returns {undefined} */ -module.exports = function(processor /*: Object*/) { - var proto = processor.Parser.prototype; +module.exports = function(options /*: Object*/) { + var proto = this.Parser.prototype; proto.inlineTokenizers.tokenizeLink = tokenizeLink; proto.inlineTokenizers.tokenizeTutorial = tokenizeTutorial; var methods = proto.inlineMethods; diff --git a/package.json b/package.json index c20fc33..d21136c 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "documentation": "./bin/documentation.js" }, "dependencies": { - "ansi-html": "^0.0.6", + "ansi-html": "^0.0.7", "babel-core": "^6.17.0", - "babel-generator": "6.19.0", - "babel-plugin-system-import-transformer": "2.4.0", + "babel-generator": "6.24.1", + "babel-plugin-system-import-transformer": "3.1.0", "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-preset-es2015": "^6.16.0", "babel-preset-react": "^6.16.0", @@ -38,12 +38,12 @@ "micromatch": "^2.1.6", "mime": "^1.3.4", "module-deps-sortable": "4.0.6", - "parse-filepath": "^0.6.3", + "parse-filepath": "^1.0.1", "pify": "^2.3.0", "read-pkg-up": "^2.0.0", - "remark": "^6.0.1", - "remark-html": "5.0.1", - "remark-toc": "^3.0.0", + "remark": "^7.0.0", + "remark-html": "6.0.0", + "remark-toc": "^4.0.0", "remote-origin-url": "0.4.0", "resolve": "^1.1.6", "shelljs": "^0.7.5", @@ -62,18 +62,18 @@ "devDependencies": { "are-we-flow-yet": "^1.0.0", "chdir": "0.0.0", - "cz-conventional-changelog": "1.2.0", + "cz-conventional-changelog": "2.0.0", "documentation-schema": "0.0.1", - "flow-bin": "^0.37.4", - "fs-extra": "^1.0.0", + "flow-bin": "^0.43.1", + "fs-extra": "^2.1.2", "husky": "^0.13.3", "json-schema": "0.2.3", "lint-staged": "^3.4.0", - "mock-fs": "^3.5.0", + "mock-fs": "^4.2.0", "prettier": "^0.22.0", - "standard-changelog": "0.0.1", - "tap": "^8.0.0", - "tmp": "^0.0.29" + "standard-changelog": "1.0.1", + "tap": "^10.3.2", + "tmp": "^0.0.31" }, "keywords": [ "documentation", @@ -110,5 +110,11 @@ "*.js": [ "prettier --write --single-quote" ] + }, + "greenkeeper": { + "ignore": [ + "remote-origin-url", + "yargs" + ] } }