-
Notifications
You must be signed in to change notification settings - Fork 55
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
Generate API reference documentation #162
Conversation
|
||
jazzy \ | ||
--config docs/jazzy.yml \ | ||
--sdk macosx \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, jazzy doesn’t support compiling a single docset across multiple operating systems, so we have to choose one when building the module. Fortunately, Turf has very little variation between operating systems, so I’ve chosen macOS for simplicity. The only API-level differences are on Linux, but type aliases keep things pretty consistent.
Also linked Turf.js functions in readme to Turf.js demonstration page.
Added a script to generate an API reference docset using jazzy. The script and jazzy configuration are based on that of MapboxDirections, except for the Mapbox branding. It just uses the default jazzy theme, which comes with a handy search box. For now, the docset will be published to mapbox.github.io using GitHub Pages like some other small projects in this GitHub organization.
Documented the rest of the public symbols. Updated some documentation comments that had been referring to symbols removed in v1.0.0. Added inline cross-references to each ported initializer, method, and property to indicate the Turf.js package and method it was ported from. Linked the readme to the Turf.js demonstration page, which is more user-friendly and gives a good conceptual understanding of the functionality.
Fixes #44.
/cc @mapbox/navigation-ios @mapbox/maps-ios @mapbox/docs