The canjs API documentation pulls documentation from many modules into a single site. Is there any reference material for how to set something like this up? Even just pointing to the pertinent files on github would be helpful. Our application is currently divided into many modules similar to canjs and we are looking at how to set up the documentation properly. I believe at some point bit-docs was supposed to make it easy do this, but I’m not sure what that state of that currently is.
Bitovi University’s bit-docs config is probably the easy place to start:
"author": "Bitovi",
"license": "MIT",
"bugs": {
"url": "https://github.com/bitovi/academy/issues"
},
"homepage": "https://github.com/bitovi/academy#readme",
"devDependencies": {
"axios": "^0.18.0",
"bit-docs": "0.2.0",
"bottleneck": "^2.17.1",
"cheerio": "^1.0.0-rc.3",
"colors": "^1.3.3",
"detect-browser": "^4.2.0",
"dotenv": "^7.0.0",
"gh-pages": "^2.0.1",
"html2canvas": "^1.0.0-alpha.12",
"recursive-readdir": "^2.2.2",
"steal-qunit": "^1.0.2"
},
"bit-docs": {
"dependencies": {
You’ll notice that repo has a static and templates folder that act as overrides:
In CanJS, the glob setting goes looking for things starting with can-
in node_modules:
"templates": []
},
"dependencies": {
"bit-docs-glob-finder": "^0.0.5",
"bit-docs-dev": "^0.0.3",
"bit-docs-js": "^0.0.6",
"bit-docs-tag-sourceref": "^0.0.3",
"bit-docs-generate-html": "^0.11.0",
"bit-docs-generate-searchmap": "^0.2.0",
"bit-docs-html-canjs": "3.0.0-pre.6",
"bit-docs-prettify": "^0.3.0",
"bit-docs-html-highlight-line": "^0.5.3",
"bit-docs-tag-demo": "^0.5.3",
"bit-docs-tag-package": "^1.0.0",
"bit-docs-html-codepen-link": "^2.0.3",
"bit-docs-html-toc": "^1.1.1"
},
"glob": {
"pattern": "{node_modules,docs}/{can-*,steal-stache}/**/*.{js,md}",
"ignore": [
"node_modules/can-namespace/**/*",
Thanks, this is very helpful.
Out of curiosity is there anything that you use to generate release notes across multiple modules?
We have a script to do this: