Generate documentation by assembling markdown and litcoffee files
This commit is contained in:
parent
83318c7884
commit
eb81cee609
5 changed files with 42 additions and 20 deletions
12
package.json
12
package.json
|
@ -5,13 +5,21 @@
|
|||
"private": "true",
|
||||
"main": "dyna3.js",
|
||||
"scripts": {
|
||||
"clean": "rm -r site",
|
||||
"clean": "rm -rf site docbuild",
|
||||
"doc:extra":
|
||||
"mkdir -p docbuild && coffee src/helpers/pkglock_to_externals.litcoffee --doc > docbuild/extlist.md",
|
||||
"doc:collate":
|
||||
"mkdir -p site/doc && coffee doc/gendoc.litcoffee > site/doc/dyna3.md",
|
||||
"doc": "npm run doc:extra && npm run doc:collate",
|
||||
"prebuild": "npm run clean",
|
||||
"build:coffee": "coffee -o site -c -m src/*.litcoffee",
|
||||
"build:ext":
|
||||
"coffee src/helpers/pkglock_to_externals.litcoffee > site/externals.js",
|
||||
"build:doc":
|
||||
"npm run doc && pandoc -s --toc site/doc/dyna3.md > site/doc/dyna3.html",
|
||||
"build:copy": "cp src/*.html site && cp -r node_modules site",
|
||||
"build": "npm run build:coffee && npm run build:ext && npm run build:copy",
|
||||
"build":
|
||||
"npm run build:coffee && npm run build:ext && npm run build:doc && npm run build:copy",
|
||||
"test": "qunit"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue