Skip to content

Commit

Permalink
Generate documentation for dependencies (mapbox#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
OdNairy authored Aug 22, 2024
1 parent 4eb4d65 commit e469fc8
Show file tree
Hide file tree
Showing 20 changed files with 195 additions and 155 deletions.
14 changes: 0 additions & 14 deletions Sources/MapboxMaps/Documentation.docc/API Catalogs/Common.md

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Core Maps
# Core Maps API

Maps rendering SDK also known as GL-Native

## Topics

### Offline
- <doc:Offline>
- <doc://MapboxMaps/Offline>

### Free Camera
- <doc:Free-Camera>
- <doc://MapboxMaps/Free-Camera>

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Maps rendering SDK also known as GL-Native. These are for internal use only.
## Topics

### Symbols

- ``MapRecorder-240jd``
- ``FeatureExtensionValue``
- ``Size``
- ``StylePackError-class``
- ``RequestErrorType``

<!-- functions -->
- ``MBMMapLoadingErrorTypeToString(_:)``
- ``MBMRenderModeTypeToString(_:)``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The simplified diagram of the events emitted by the map is displayed below.

- ``Signal``
- ``AnyCancelable``
- ``Cancelable``
- ``MapboxCommon/Cancelable``
- ``EventTimeInterval``

### Extras
Expand Down
29 changes: 15 additions & 14 deletions Sources/MapboxMaps/Documentation.docc/API Catalogs/Location APIs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@
- ``Puck3DConfiguration``
- ``Model``
- ``PuckBearing``
- ``Location``
- ``LocationProvider``
- ``MapboxCommon/Location``
- ``MapboxCommon/LocationProvider``
- ``AppleLocationProviderDelegate``
- ``AppleLocationProvider``
- ``LocationError``
- ``Coordinate2D``
- ``LocationExtraKeys``
- ``LocationProviderRequest``
- ``MapboxCommon/LocationError``
- ``MapboxCommon/Coordinate2D``
- ``MapboxCommon/LocationExtraKeys``
- ``MapboxCommon/LocationProviderRequest``
<!-- There are no methods or fields available. Should we remove it? -->
- ``LocationServiceFactory``
- ``DeviceLocationProvider``
- ``MapboxCommon/LocationServiceFactory``
- ``MapboxCommon/DeviceLocationProvider``
- ``HeadingObserver``
- ``HeadingProvider``
- ``LocationObserver``
- ``LocationServiceObserver``
- ``MapboxCommon/LocationObserver``
- ``MapboxCommon/LocationServiceObserver``
- ``Heading``
- ``PuckRenderingData``
- ``AccuracyAuthorization``
- ``AccuracyLevel``
- ``LocationErrorCode``
- ``PermissionStatus``
- ``MapboxCommon/AccuracyAuthorization``
- ``MapboxCommon/AccuracyLevel``
- ``MapboxCommon/LocationErrorCode``
- ``MapboxCommon/PermissionStatus``
- ``MapboxCommon/IntervalSettings``
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

### Map Recording

- ``MapRecorder``
- ``MapRecorderOptions-struct``
- ``MapPlayerOptions-struct``

Expand All @@ -24,9 +23,9 @@

### Logs

- ``LogConfiguration``
- ``LogWriterBackend``
- ``LoggingLevel``
- ``MapboxCommon/LogConfiguration``
- ``MapboxCommon/LogWriterBackend``
- ``MapboxCommon/LoggingLevel``

### Debug

Expand All @@ -35,4 +34,4 @@

### Crashes

- ``NSExceptionHandler``
- ``MapboxCommon/NSExceptionHandler``
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@

### Settings

- ``MapboxCommonSettings``
- ``MapboxOptions``
- ``MapboxCommon/MapboxCommonSettings``
- ``MapboxCommon/MapboxOptions``
- ``MapboxMapsOptions``

### Common Settings

- ``SettingsService``
- ``SettingsServiceFactory``
- ``SettingsServiceError``
- ``SettingsServiceStorageType``

<!-- What is this? oO -->
- ``IntervalSettings``
- ``SdkInformation``
- ``MapboxCommon/SettingsService``
- ``MapboxCommon/SettingsServiceFactory``
- ``MapboxCommon/SettingsServiceError``
- ``MapboxCommon/SettingsServiceStorageType``
- ``MapboxCommon/SdkInformation``

### Constants

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@

### TileStore

- ``TileStore``
- ``TileStoreOptions``
- ``MapboxCommon/TileStore``
- ``MapboxCommon/TileStoreOptions``
- ``TileCacheBudget``
- ``TileCacheBudgetInMegabytes``
- ``TileCacheBudgetInTiles``
- ``TileCoverOptions-struct``
- ``TileOptions``
- ``TileRegion``
- ``MapboxCommon/TileRegion``
- ``TileRegionError-enum``
- ``TileRegionLoadOptions``
- ``TileRegionLoadProgress``
- ``MapboxCommon/TileRegionLoadOptions``
- ``MapboxCommon/TileRegionLoadProgress``
<!--- Should we hide it? There are no fields available -->
- ``TilesetDescriptor``
- ``MapboxCommon/TilesetDescriptor``
- ``TilesetDescriptorOptions``
- ``CanonicalTileID``
- ``TileStoreObserver``
- ``TileRegionLoadProgressCallback``
- ``MapboxCommon/TileRegionLoadProgressCallback``
- ``TileStoreUsageMode``
- ``TileRegionError-enum``
<!--should next item be public?-->
- ``TileDataDomain``
- ``MapboxCommon/TileDataDomain``
- ``TileCacheBudgetType``
- ``TileRegionEstimateOptions``
- ``TileRegionEstimateProgress``
- ``TileRegionEstimateResult``
- ``TileRegionEstimateProgressCallback``
- ``CacheClearingError``
- ``CacheClearingErrorType``
- ``MapboxCommon/TileRegionEstimateOptions``
- ``MapboxCommon/TileRegionEstimateProgress``
- ``MapboxCommon/TileRegionEstimateResult``
- ``MapboxCommon/TileRegionEstimateProgressCallback``
- ``MapboxCommon/CacheClearingError``
- ``MapboxCommon/CacheClearingErrorType``

### Style pack

Expand Down
43 changes: 0 additions & 43 deletions Sources/MapboxMaps/Documentation.docc/API Catalogs/Turf.md

This file was deleted.

12 changes: 12 additions & 0 deletions Sources/MapboxMaps/Documentation.docc/API Catalogs/TurfAPI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Turf

Describes `turf-swift` dependency objects

## Topics

### GeoJSON

- ``Feature-swift.typealias``
- ``Geometry-swift.typealias``
- ``MapboxCommon/GeometryType``
- ``Turf``
5 changes: 2 additions & 3 deletions Sources/MapboxMaps/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ The Mapbox Maps SDK for iOS is a public library for displaying interactive, thor
- <doc:Gestures>
- <doc:Settings-and-Constants>


### Dependencies
- <doc:CoreMaps>
- <doc:Common>
- <doc:Turf>
- <doc:TurfAPI>

### Internal
- <doc:CoreMapsInternal>
- <doc:CommonInternal>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ``MapboxMap``
# ``/MapboxMaps/MapboxMap``

## Topics

Expand Down
11 changes: 11 additions & 0 deletions Sources/MapboxMaps/Documentation.docc/Overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# MapboxMaps Documentation

@Metadata {
@TechnologyRoot
}

## Topics

- ``/MapboxMaps``
- ``/MapboxCommon``
- ``/Turf``
4 changes: 2 additions & 2 deletions Sources/MapboxMaps/Foundation/MapRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import Foundation
}

/// Stops the current recording session.
/// Recorded section can be replayed with ``replay()`` function.
/// Returns the ``Data`` containing the recorded sequence in raw format.
/// Recorded section can be replayed with ``replay(recordedSequence:options:completion:)`` function.
/// Returns the `Data` containing the recorded sequence in raw format.
public func stop() -> Data {
recorder.stopRecording().data
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MapboxMaps/Foundation/MapboxMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ extension MapboxMap {

extension MapboxMap {

/// Create a ``MapRecorder`` to record the current MapboxMap
/// Create a ``MapRecorder-4soa`` to record the current MapboxMap
@_spi(Experimental) public final func makeRecorder() throws -> MapRecorder {
try MapRecorder(mapView: __map)
}
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ targets:
settings:
base:
RUN_DOCUMENTATION_COMPILER: YES
OTHER_DOCC_FLAGS: "--warnings-as-errors"
OTHER_DOCC_FLAGS: "--help" # Disable embedded documentation compiler in favor of custom docc behavior. That should fix missing documentation symbols issue (MAPSIOS-1467).
3 changes: 2 additions & 1 deletion scripts/doc-generation/build-docc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ process_template() {

build_doc() {
pushd "$public_repo_root/"
xcodegen
xcodebuild docbuild -config Release -scheme MapboxMaps -destination "generic/platform=iOS" \
COMPILER_INDEX_STORE_ENABLE=NO OTHER_DOCC_FLAGS="--warnings-as-errors --experimental-enable-custom-templates --output-path $docc_archive --hosting-base-path $hosting_base_path"
COMPILER_INDEX_STORE_ENABLE=NO OTHER_DOCC_FLAGS_UNIFIED="--experimental-enable-custom-templates --output-path $docc_archive --hosting-base-path $hosting_base_path"
popd
}

Expand Down
Loading

0 comments on commit e469fc8

Please sign in to comment.