Ist it possible, to create more than one doc?
What I want:
- I want to create a developers-doc similar to the doc of JMVC / canjs etc. itself, where co-developers can have a look to understand the code.
- I want to create a user-manual, in which the usage of the apṕ is explained. The advantage is, that I can render a link to the specific page of the usermanual in every widget of the app automatically.
- Same as 2. but for the admins of the app. So when I solve 2. I have this topic as well.
I do not want to deliver the developers-doc in a production-build. So I want the different docs in different folders.
I am able to manipulate scripts/docjs:
- load('steal/rhino/rhino.js');
- steal("documentjs", function(DocumentJS){
- DocumentJS('myapp/index.html', {
- out: 'myapp/docs',
- markdown : ['myapp', 'steal', 'jquerypp', 'can', 'funcunit'],
- parent : 'myapp',
- templates : 'myapp/lib/doctemplates'
- });
- DocumentJS('myapp/index.html', {
- out: 'myapp/docs2',
- markdown : ['myapp', 'steal', 'jquerypp', 'can', 'funcunit'],
- parent : 'myapp',
- templates : 'myapp/lib/doctemplates'
- });
- });
It produces the different folders as I want it to. But how could I tell the script, which files to use for the docs.
The developer-docs are made by information given in the .js files itself. For the userguide I could touch an md.file.
eg:
model.js contains the dev-doc-information
modelUG.md contains the Userguide-infomation.
modelAG.md contains the Adminguide-information.
It is no problem, to strukture it using the directives, but I want it to be separated in the folders.
What I coul do is to put the md-files in a different folder structure. But when I do so, it is less comfortable to maintain the Guides.
Any Idea?