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
Docs: Display interfaces #84
Comments
Is the comment style you're using a standard, or are you doing your own thing? |
Not sure what you mean @mlynch |
@ihadeed basically, is the whole |
@mlynch I did some modifications in the dgeni template to display the |
Cool, I'm trying to figure out how we might get those comments that document the actual object into a doc so people can see the params... |
I had no luck finding any dgeni tutorials/docs... |
hi @ihadeed |
@mlynch do you guys already have code for this in the ionic framework repo? or should I write it from scratch? |
Just had a look at https://github.com/driftyco/ionic-native/blob/master/scripts/docs/typescript-package/processors/readTypeScriptModules.spec.js#L69-L132 Seems like the processor can already read interfaces. It just needs to be rendered in the template. |
@ihadeed Adjust template https://github.com/driftyco/ionic-native/blob/master/scripts/docs/templates/common.template.html maybe need processor |
@ramonornela seems like the I will look into it more tonight and see how this could be done. |
Ionic Native usage
Typescript Package available in 0.12. |
Problem too Ionic see LoadingController LoadingOptions. |
I think that dgeni Ionic can be created a project separated and use npm as well ionic-app-scripts |
In dgeni-config register processor |
@ramonornela yeah I saw that page in the framework's docs. They're typing the docs manually for the interfaces. But the interfaces are written in a different file, maybe that's why. In our case it should be easier to automatically document them since everything is one page. |
I think that @see resolve
|
Yeah you're right they're registered in dgeni-config .. https://github.com/driftyco/ionic-native/blob/master/scripts/docs/dgeni-config.js#L4 I just looked into the code and figured out how (almost) everything works. Looks like dgeni opens up I think this current method wouldn't work out for I suggest changing the doc generation process for ionic native and make it loop through all the |
Many plugins have interfaces to define an object parameter of a method
It would be nice to have these interfaces visible in the ionic-native docs to make it easier for people to learn the usage.
@tlancina
The text was updated successfully, but these errors were encountered: