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

Document version property #2871

Merged
merged 4 commits into from
Jul 14, 2016
Merged

Document version property #2871

merged 4 commits into from
Jul 14, 2016

Conversation

davidtheclark
Copy link
Contributor

* Gets the version number of Mapbox GL JS.
*
* @var version
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we declare that version is a string?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we provide any additional context here for users who don't immediately make the leap from version number to git tags, npm, GitHub releases, etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know of a way to declare that a var is a string. If I add a type, e.g. @var version {string}, compilation for that item seems to fail. Do you know of another way this should be marked with JSDoc?

Regarding context, what do you think of this? To learn more about the differences between published versions of Mapbox GL JS, have a look at [the changelog](https://github.com/mapbox/mapbox-gl-js/blob/master/CHANGELOG.md). Sufficient? I guess I'm not sure what else to say here ... open to ideas.

@lucaswoj
Copy link
Contributor

Looks like @var is intended to support a type parameter: http://usejsdoc.org/tags-member.html. It is good to capture the metadata even if this doesn't show up in our documentation theme as-written.

I've pushed a few commits. 🚢 if this looks good to you!

@davidtheclark
Copy link
Contributor Author

Thanks, @lucaswoj, and sorry for my obtuseness --- I just put the type in the wrong place (;一_一). What you've done makes sense.

@davidtheclark davidtheclark merged commit 24b3d71 into mb-pages Jul 14, 2016
@davidtheclark davidtheclark deleted the version-doc branch July 14, 2016 22:12
lucaswoj pushed a commit that referenced this pull request Jul 19, 2016
* Document version property

* Specify the types for mapboxgl properties

* Improve docs for `mapboxgl#version`

* Move mapboxgl docs to mapbox-gl.js
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.

2 participants