-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variation: Create only one HTML for documentation #12
Comments
Hi @donaldpipowitch - thanks for all the issues and PRs you have filed recently. It is very helpful for me to see other use cases and views of people who are working with dgeni. This is a very good question. The way I see these things is that each file that will be output is created from a single doc. Each doc is just a JavaScript object with properties, which can be basic strings or complex objects in their own right. So if you want to render a single file containing everything then you simply create a processor that will create a single doc that contains a property which is a collection the individual docs. Then you returna new You would provide a special template for this doc which will iterate over the collection and render each of the items accordingly. This processor needs to run before the I think we should add some kind of "table of contents" doc to this example project to illustrate this. |
Thank you for the response. I'll try to create such a processor. Don't know when I'll have time for this, though. |
By the way we do this sort of thing already in the AngularJS docs in a couple of the processors: |
Hi @petebacondarwin, I'm sorry, I can't find either |
https://github.com/angular/dgeni-packages/blob/master/ngdoc/processors/apiDocs.js#L55-L92 and Although in my latest refactorings these have been moved around a bit. See https://github.com/angular/dgeni-packages/tree/partialIds |
Ah! I've looked in the Angular repository itself for these, not inside dgeni-packages. Thank you! |
I know why I was confused. You said
and I thought you would refer to the AngularJS GitHub repo and not dgeni-packages/ngdocs. The reason for this is that I though ngdocs would be for general projects based on Angular, but it seems that is spe |
Hi @petebacondarwin,
most dgeni examples I saw so far show how one
doc
can be converted to one templated HTML. However I have trouble finding out how to generate just on big HTML - instead of multiple small ones.Given the existing example with
app.js
andscript.js
what do I need to change in the config to generate a documentation like this?:The text was updated successfully, but these errors were encountered: