Fix documentation not building

This commit is contained in:
david-swift 2024-07-20 09:20:30 +02:00
parent eadc08d61d
commit c48abc1c9a
6 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@
import TermKit import TermKit
/// A collection of buttons. /// A collection of buttons.
public struct ButtonCollection: ButtonContext.Widget, Wrapper { public struct ButtonCollection: ButtonWidget, Wrapper {
/// The content of the collection. /// The content of the collection.
var content: Body var content: Body

View File

@ -11,11 +11,11 @@ import TermKit
public enum ButtonContext: ViewRenderData { public enum ButtonContext: ViewRenderData {
/// The type of the widgets. /// The type of the widgets.
public typealias WidgetType = Widget public typealias WidgetType = ButtonWidget
/// The wrapper type. /// The wrapper type.
public typealias WrapperType = ButtonCollection public typealias WrapperType = ButtonCollection
/// The type of the widgets.
public protocol Widget: Meta.Widget { }
} }
/// The type of the widgets.
public protocol ButtonWidget: Meta.Widget { }

View File

@ -8,7 +8,7 @@
import TermKit import TermKit
/// A menu is an item of a `MenuBar`. /// A menu is an item of a `MenuBar`.
public struct Menu: MenuContext.Widget { public struct Menu: MenuWidget {
/// The menu's label, displayed in the menu bar. /// The menu's label, displayed in the menu bar.
var label: String var label: String

View File

@ -8,7 +8,7 @@
import TermKit import TermKit
/// A collection of menus. /// A collection of menus.
public struct MenuCollection: MenuContext.Widget, Wrapper { public struct MenuCollection: MenuWidget, Wrapper {
/// The content of the collection. /// The content of the collection.
var content: Body var content: Body

View File

@ -11,11 +11,11 @@ import TermKit
public enum MenuContext: ViewRenderData { public enum MenuContext: ViewRenderData {
/// The type of the widgets. /// The type of the widgets.
public typealias WidgetType = Widget public typealias WidgetType = MenuWidget
/// The wrapper type. /// The wrapper type.
public typealias WrapperType = MenuCollection public typealias WrapperType = MenuCollection
/// The type of the widgets.
public protocol Widget: Meta.Widget { }
} }
/// The type of the widgets.
public protocol MenuWidget: Meta.Widget { }

View File

@ -8,7 +8,7 @@
import TermKit import TermKit
/// A simple button widget. /// A simple button widget.
public struct Button: TermKitWidget, ButtonContext.Widget, MenuContext.Widget { public struct Button: TermKitWidget, ButtonWidget, MenuWidget {
/// The button's label. /// The button's label.
var label: String var label: String