Skip to content

Commit 136e3d2

Browse files
Merge branch 'main' into feat/code-folding
2 parents 0996a5d + a148366 commit 136e3d2

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

Sources/CodeEditSourceEditor/Documentation.docc/Documentation.md

Lines changed: 7 additions & 5 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,10 +34,12 @@ 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.
39-
- ``TextViewController`` The AppKit view controller for the source editor.
40-
- ``GutterView`` A view used to display line numbers and folding regions.
37+
- <doc:SourceEditorView>
38+
- ``SourceEditor``
39+
- ``SourceEditorConfiguration``
40+
- ``SourceEditorState``
41+
- ``TextViewController``
42+
- ``GutterView``
4143

4244
### Themes
4345

Sources/CodeEditSourceEditor/Documentation.docc/SourceEditor.md renamed to Sources/CodeEditSourceEditor/Documentation.docc/SourceEditorView.md

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

33
## Usage
44

@@ -90,3 +90,6 @@ let editorController = TextViewController(
9090
)
9191
```
9292

93+
## Topics
94+
95+
- ``SourceEditor``

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:SourceEditorView>. 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:SourceEditorView> 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:SourceEditorView>.
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)