Skip to content

Jazzy doc actualization#2347

Merged
Udumft merged 4 commits into
masterfrom
2314-jazzy-doc-actualization
Mar 11, 2020
Merged

Jazzy doc actualization#2347
Udumft merged 4 commits into
masterfrom
2314-jazzy-doc-actualization

Conversation

@Udumft
Copy link
Copy Markdown
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 thread MapboxNavigation-Documentation.podspec Outdated
Comment thread docs/jazzy.yml
Comment on lines +25 to +28
- VoiceControllerDelegate
- MapboxVoiceController
- NavigationOptions
- NavigationView
Copy link
Copy Markdown
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
Copy Markdown
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. 👍

Comment thread docs/jazzy.yml Outdated
Comment on lines 75 to 83
- DashedLineView
- HighlightedButton
- LineView
- ProgressBar
- SeparatorView
- SubtitleLabel
- TitleLabel
- TurnArrowView
- ManeuverView
- WayNameLabel
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 thread MapboxNavigation-Documentation.podspec Outdated
Comment thread docs/jazzy.yml
Comment on lines +25 to +28
- VoiceControllerDelegate
- MapboxVoiceController
- NavigationOptions
- NavigationView
Copy link
Copy Markdown
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. 👍

Comment thread docs/jazzy.yml Outdated
- name: Styling
children:
- LanesStyleKit
- ManeuversStyleKit
Copy link
Copy Markdown
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.

Comment thread docs/jazzy.yml Outdated
Comment on lines +61 to +63
- StylableView
- StylableTextView
- StylableButton
Copy link
Copy Markdown
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.

Comment thread docs/jazzy.yml
- SubtitleLabel
- TitleLabel
- TurnArrowView
- ManeuverView
Copy link
Copy Markdown
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 thread docs/jazzy.yml
Comment on lines +112 to +114
- MBCongestionAttribute
- MBCurrentLegAttribute
- MBRouteLineWidthByZoomLevel
Copy link
Copy Markdown
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.
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
Copy Markdown
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.

Comment thread MapboxCoreNavigation/MBNavigator.swift
@Udumft Udumft marked this pull request as ready for review March 10, 2020 12:00
Copy link
Copy Markdown
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