0

Grunt ワークフローのプロジェクトで docco を実行する grunt-docco ( https://github.com/DavidSouther/grunt-docco ) を使用しています。

ただし、使用されているMarked ( https://github.com/chjj/marked ) にオプションを渡すことに関する問題 ( https://github.com/DavidSouther/grunt-docco/issues/34 )に遭遇しました。ドッコの内部。

私の質問は、docco インスタンスを作成するときに、マークされたオプションを渡す方法はありますか? docco がこのようなことを行うためのドキュメントは、私には完全に明確ではありませんが、何らかの方法があるに違いないことはわかっています。

できれば助けてください!grunt タスクのスタック トレースは次のとおりです。

Running "docco:debug" (docco) task
docco: public/js/collections/SomeCollection1.js -> doc/SomeCollection1.html
docco: public/js/collections/SomeCollection2.js -> doc/SomeCollection2.html
docco: public/js/common.js -> doc/common.html
docco: public/js/config.js -> doc/config.html
docco: public/js/config/file-types.js -> doc/file-types.html
docco: public/js/controllers/GlobalController.js -> doc/GlobalController.html
docco: public/js/layouts/SomeLayout.js -> doc/SomeLayout.html
docco: public/js/layouts/AppLayout.js -> doc/AppLayout.html
Fatal error: Cannot read property 'javascript' of undefined
Please report this to https://github.com/chjj/marked.
TypeError: Cannot read property 'javascript' of undefined
Please report this to https://github.com/chjj/marked.
at Object.marked.setOptions.highlight (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/docco.js:105:34)
at Renderer.code (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/node_modules/marked/lib/marked.js:744:23)
at Parser.tok (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/node_modules/marked/lib/marked.js:953:28)
at Parser.parse (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/node_modules/marked/lib/marked.js:896:17)
at Function.Parser.parse (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/node_modules/marked/lib/marked.js:883:17)
at marked (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/node_modules/marked/lib/marked.js:1163:19)
at format (/home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/docco.js:119:40)
at /home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt-docco/node_modules/docco/docco.js:44:11
at fs.js:266:14
at /home/jenkins/jenkins/workspace/MyProject (Tech)/web-client/client/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js:90:5
4

0 に答える 0