Skip to content

Commit 4d36295

Browse files
committed
Fix Broken Documentation Links
1 parent 1a6e32c commit 4d36295

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Sources/CodeEditSourceEditor/Documentation.docc/Documentation.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ``SourceEditor``
1+
# ``CodeEditSourceEditor``
22

33
A code editor with syntax highlighting powered by tree-sitter.
44

@@ -34,8 +34,9 @@ Licensed under the [MIT license](https://github.com/CodeEditApp/CodeEdit/blob/ma
3434

3535
### Text View
3636

37-
- ``SourceEditor`` The SwiftUI API for the source editor.
38-
- ``SourceEditorConfiguration`` Customize the source editor's behavior, layout, appearance, etc.
37+
- <doc:SourceEditor> The SwiftUI API for the source editor.
38+
- ``SourceEditorConfiguration`` Customize the source editor's behavior, layout, appearance, and more.
39+
- ``SourceEditorState`` Listen to the current state of the editor. Cursor positions, scroll positions, and more.
3940
- ``TextViewController`` The AppKit view controller for the source editor.
4041
- ``GutterView`` A view used to display line numbers and folding regions.
4142

Sources/CodeEditSourceEditor/Documentation.docc/SourceEditor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ``SourceEditor``
1+
# Source Editor
22

33
## Usage
44

Sources/CodeEditSourceEditor/SourceEditorConfiguration/SourceEditorConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ import AppKit
3131
/// - The category initializer.
3232
/// - The passthrough variable in `TextViewController`.
3333

34-
/// Configuration object for the ``SourceEditor``. Determines appearance, behavior, layout and what features are
34+
/// Configuration object for the <doc:SourceEditor>. Determines appearance, behavior, layout and what features are
3535
/// enabled (peripherals).
3636
///
3737
/// To update the configuration, update the ``TextViewController/configuration`` property, or pass a value to the
38-
/// ``SourceEditor`` SwiftUI API. Both methods will call the `didSetOnController` method on this type, which will
38+
/// <doc:SourceEditor> SwiftUI API. Both methods will call the `didSetOnController` method on this type, which will
3939
/// update the text controller as necessary for the new configuration.
4040
public struct SourceEditorConfiguration: Equatable {
4141
/// Configure the appearance of the editor. Font, theme, line height, etc.

Sources/CodeEditSourceEditor/TextViewCoordinator/TextViewCoordinator.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
import AppKit
99

10-
/// A protocol that can be used to receive extra state change messages from ``SourceEditor``.
10+
/// A protocol that can be used to receive extra state change messages from <doc:SourceEditor>.
1111
///
1212
/// These are used as a way to push messages up from underlying components into SwiftUI land without requiring passing
13-
/// callbacks for each message to the ``SourceEditor`` initializer.
13+
/// callbacks for each message to the
14+
/// ``SourceEditor/init(_:language:configuration:state:highlightProviders:undoManager:coordinators:)`` initializer.
1415
///
1516
/// They're very useful for updating UI that is directly related to the state of the editor, such as the current
1617
/// cursor position. For an example, see the ``CombineCoordinator`` class, which implements combine publishers for the

0 commit comments

Comments
 (0)