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

Jazzy doc actualization #2347

Merged
merged 4 commits into from
Mar 11, 2020
Merged

Jazzy doc actualization #2347

merged 4 commits into from
Mar 11, 2020

Conversation

Udumft
Copy link
Contributor

@Udumft Udumft commented Mar 4, 2020

Resolves #2314.

This PR actualizes Jazzy config with current public classes, protocols and other entities.
I tried to group all entities to where they belong.

@Udumft Udumft added topic: documentation build Issues related to builds and dependency management. documentation labels Mar 4, 2020
@Udumft Udumft added this to the v1.0.0 milestone Mar 4, 2020
@Udumft Udumft self-assigned this Mar 4, 2020
Comment on lines +25 to +28
- VoiceControllerDelegate
- MapboxVoiceController
- NavigationOptions
- NavigationView
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 tried to group items to where they belong, but I might be mistaken :)

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good place to put these types. 👍

docs/jazzy.yml Outdated
Comment on lines 75 to 83
- DashedLineView
- HighlightedButton
- LineView
- ProgressBar
- SeparatorView
- SubtitleLabel
- TitleLabel
- TurnArrowView
- ManeuverView
- WayNameLabel
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some Items are explicitly marked with :nodoc:. Seems like we need to provide some description to include them.

@Udumft
Copy link
Contributor Author

Udumft commented Mar 4, 2020

I could use some help with checking what to do with :nodoc: entities listed and some suggestions about new entities grouping in custom_categories

@Udumft Udumft requested a review from 1ec5 March 6, 2020 07:14
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Thanks @Udumft, this PR is very nearly ready to land!

Comment on lines +25 to +28
- VoiceControllerDelegate
- MapboxVoiceController
- NavigationOptions
- NavigationView
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good place to put these types. 👍

docs/jazzy.yml Outdated
- name: Maps
children:
- NavigationMapView
- NavigationMapViewDelegate
- MGLMapView
- name: Styling
children:
- LanesStyleKit
- ManeuversStyleKit
Copy link
Contributor

Choose a reason for hiding this comment

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

These classes are internal implementation details that don’t have any documentation, so we don’t need to list them in the table of contents. If they’re triggering jazzy warnings, let’s add a :nodoc: comment to them.

docs/jazzy.yml Outdated
Comment on lines 61 to 63
- StylableView
- StylableTextView
- StylableButton
Copy link
Contributor

Choose a reason for hiding this comment

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

These classes are :nodoc:’d because they’re intentionally left undocumented: the NSAppearance system requires them to be public, but developers unknowingly use them as proxy objects when configuring the appearance of the associated views.

- DashedLineView
- HighlightedButton
- LineView
- ProgressBar
- SeparatorView
- SubtitleLabel
- TitleLabel
- TurnArrowView
- ManeuverView
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh wow, this class got renamed a long time ago in #745. 😅 ManeuverView is marked :nodoc:, but we should actually document it, because developers may need to adjust its appearance() when creating a new Style. Let’s go with this description for now:

A view that contains a simple image indicating a type of maneuver.

Comment on lines +112 to +114
- MBCongestionAttribute
- MBCurrentLegAttribute
- MBRouteLineWidthByZoomLevel
Copy link
Contributor

Choose a reason for hiding this comment

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

Somehow we missed these constants when removing the class prefix from global symbols. As a separate task, we should rename these symbols to remove the class prefix. To avoid conflicts with other modules, we should nest them inside the class that uses them, NavigationMapView.

/cc @JThramer

…tly specified type for Style.previewMapStyleURL for correct doc generation, updated podspec source file search mask, actualized jazzy config for custom categories.
@@ -38,7 +38,7 @@ open class Style: NSObject {
/**
URL of the style to display on the map when previewing a route, for example on CarPlay or your own route preview map.
*/
@objc open var previewMapStyleURL = MGLStyle.navigationPreviewDayStyleURL
@objc open var previewMapStyleURL: URL = MGLStyle.navigationPreviewDayStyleURL
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added type explicitly to silence Jazzy warning and correct type displaying in a doc.

@Udumft Udumft marked this pull request as ready for review March 10, 2020 12:00
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@Udumft Udumft merged commit d7891cf into master Mar 11, 2020
@Udumft Udumft deleted the 2314-jazzy-doc-actualization branch March 11, 2020 07:04
@1ec5 1ec5 modified the milestones: v1.0.0, v0.x next Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to builds and dependency management. documentation topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jazzy table of contents specifies nonexistent symbols
2 participants