Skip to content
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

Use @classdesc notation #2178

Merged
merged 3 commits into from Jun 9, 2014
Merged

Use @classdesc notation #2178

merged 3 commits into from Jun 9, 2014

Conversation

probins
Copy link
Contributor

@probins probins commented Jun 9, 2014

Phew! When I offered to add @classdesc to classes https://groups.google.com/forum/#!topic/ol3-dev/7l9rQ6W5c7A I hadn't realised there were quite so many. 113 files updated, some using existing description, some new. Some of these are really stating the obvious, but can be changed later as needed.

Some of the vector base sources I have left for now, while I work out how they fit together. And some others I have left, as I don't know what they are for or when you would use them. These are:

  • ol.ImageTile
  • ol.Kinetic
  • ol.render.canvas.Immediate
  • ol.Tile
  • ol.TileCoord
  • ol.webgl.Context

I added the word 'abstract' to those I consider to be abstract base classes, not usually instantiated in apps. jsdoc does process the @abstract tag, but there are issues with this at the moment. In any case, I think these should be differentiated in the html somehow. I'll raise a topic on the list for this.

There's a generated output at http://probins.github.io/classdesc/apidoc/

@elemoine
Copy link
Member

elemoine commented Jun 9, 2014

+1 from me. Thanks a lot for the effort @probins!

@pagameba
Copy link
Member

pagameba commented Jun 9, 2014

Just had a look, I think this is a very useful change. Great work! I think the classdesc div could use a bit of top padding, but that's not relevant to this work.

@tschaub
Copy link
Member

tschaub commented Jun 9, 2014

I agree this is a great improvement. Thanks for the huge effort on it @probins!

tschaub added a commit that referenced this pull request Jun 9, 2014
@tschaub tschaub merged commit 2a42e77 into openlayers:master Jun 9, 2014
@probins
Copy link
Contributor Author

probins commented Jun 10, 2014

it would be good if someone could find time to add a desc for those I list above. I suspect these won't be used very much, but there's not much point having them in the api if people don't know what they're for :-)

And I think there should be a rule: no additions to the api without some docs to describe them.

@probins probins deleted the classdesc branch June 10, 2014 10:02
pagameba added a commit to pagameba/ol3 that referenced this pull request Jun 10, 2014
@pagameba
Copy link
Member

it would be good if someone could find time to add a desc for those I list above

see #2183

pagameba added a commit to pagameba/ol3 that referenced this pull request Jul 3, 2014
oterral pushed a commit to geoadmin/ol3 that referenced this pull request Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants