-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can't generate an api index page #3
Comments
Ok, so I got that figured out. For anyone else who's interested I created a file in my project: ngdocs/api/index.ngdoc containing this markup:
and added the ngdocs location to my docgen src:
It does seem to only work if the @name attribute is "index" though - is it possible to modify this so I can use my project title as the name? Also, I'd like to be able to name my package to something other than "API" which is what I'm attempting with this line:
I suspect it's something to do with line 22 of docgen.js
How do you override package configuration later? BTW, this is a very neat project - much better than copying the documentation folder from angularjs which is what I have been doing until now... |
Ok, figure that out too!! Again, for anyone else I managed it by adding these lines to my document generation script:
I'd appreciate it it if you could let me know if this is correct wingedfox? I also saw this line in docgen.js
but that doesn't seem to be necessary to update the site header. |
Hi, Thanks for taking an effort to make things working for you. I'll check the code and get back to you with the answer, probably this is the obsolete code. Also, please add a PR with the docs additions. |
We are waiting you come back with the answer... |
@andy-dorman, index template requires To set website title you use correct method, now also you can override template and define title right there. If I understand you right, 'API' in the header is not the package name, but the area name. There might be 'Guide', 'Error' and other areas as well. |
Or any other static .ngdocs. I'm generating my docs using the API with this script:
and I'm getting this output:
Looks as though I need to create an api/index.ngdoc file somewhere but I'm not totally clear where? I'm assuming I can create this kind of thing in my project and point dgeni-alive at it?
Like many others I feel I'm more than a little in the dark as to exactly how dgeni wants to work...
The text was updated successfully, but these errors were encountered: