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

Generate API reference documentation #162

Merged
merged 4 commits into from
Oct 4, 2021
Merged

Generate API reference documentation #162

merged 4 commits into from
Oct 4, 2021

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Oct 1, 2021

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.

polygon

Fixes #44.

/cc @mapbox/navigation-ios @mapbox/maps-ios @mapbox/docs

@1ec5 1ec5 added this to the v2.0 milestone Oct 1, 2021
@1ec5 1ec5 requested review from macdrevx and a team October 1, 2021 21:11
@1ec5 1ec5 self-assigned this Oct 1, 2021

jazzy \
--config docs/jazzy.yml \
--sdk macosx \
Copy link
Contributor Author

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.

1ec5 added 2 commits October 1, 2021 16:11
Also linked Turf.js functions in readme to Turf.js demonstration page.
@1ec5 1ec5 force-pushed the 1ec5-docs-turfjs branch from db40889 to a77381a Compare October 1, 2021 23:12
@1ec5
Copy link
Contributor Author

1ec5 commented Oct 1, 2021

v2.0.0 will come with marked improvement in documentation coverage:

Version Coverage
v0.1.0 0.1.0
v0.1.1 0.1.1
v0.2.0 0.2.0
v0.2.1 0.2.1
v0.3.0 0.3.0
v0.4.0 0.4.0
v0.5.0 0.5.0
v1.0.0 1.0.0
v1.1.0 1.1.0
v1.2.0-beta.1 1.2.0-beta.1
v1.2.0-rc.1 1.2.0-rc.1
v1.2.0 1.2.0
v2.0.0-alpha.1 2.0.0-alpha.1
v2.0.0-alpha.2 2.0.0-alpha.2
v2.0.0-alpha.3 2.0.0-alpha.3
v2.0.0-beta.1 2.0.0-beta.1
v2.0.0-rc.1 2.0.0-rc.1
v2.0.0-rc.2 2.0.0-rc.2
This PR 100% documented

@1ec5 1ec5 merged commit 33da423 into main Oct 4, 2021
@1ec5 1ec5 deleted the 1ec5-docs-turfjs branch October 4, 2021 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish documentation
2 participants