Skip to content

Commit

Permalink
API docs using yuidocsjs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Feb 2, 2016
1 parent e916f22 commit e4103c2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
api-docs
build-output
dist
.idea
Expand All @@ -14,4 +15,4 @@ http.log
http_ebooks.log
http_app.log
http_app-ebooks.log
.vscode
.vscode
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
"prepare": "npm run prepare:submodule && npm run prepare:local",
"prepare:local": "npm outdated && npm install && npm update && node readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/gitHubForksUpdater.js",
"prepare:submodule": "cd readium-js && npm run prepare && cd .. && ls",
"clean": "node --version && npm --version && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js build-output && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js dist",
"clean": "node --version && npm --version && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js build-output && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js api-docs/* && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js dist",
"apidocs": "node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/yuidocjs/lib/cli.js -N -C -c yuidocs.json",
"prebuild": "npm run clean",
"build": "npm run build:scripts",
"lint": "node ./readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/jshint_glob.js js/**.js",
Expand Down
9 changes: 9 additions & 0 deletions package/package_scripts_build.cson
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@
npm run rimraf
build-output
&&
npm run rimraf
api-docs/*
&&
npm run rimraf
dist
'

#=====================
apidocs: '
npm run yuidocjs
'

#=====================
'prebuild': '
Expand Down
2 changes: 1 addition & 1 deletion readium-js
16 changes: 16 additions & 0 deletions yuidocs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"COMMAND LINE": "node node_modules/yuidocjs/lib/cli.js -N -C -c yuidocs.json",
"name": "readium-js-viewer",
"description": "Readium - viewer (reader+library) written in Javascript+HTML+CSS etc.",
"version": "0.0.0",
"url": "https://github.com/readium/readium-js-viewer",
"logo": "http://readium.org/sites/readium.org/files/header-logo.png",
"options": {
"linkNatives": "true",
"exclude": "readium-js,epub_content,package,src,lib,node_modules,api-docs,dev,tests,gen,build-output,dist,build-config",
"paths": [
"src"
],
"outdir": "./api-docs"
}
}

0 comments on commit e4103c2

Please sign in to comment.