Fix documentation not building
This commit is contained in:
parent
eadc08d61d
commit
c48abc1c9a
@ -8,7 +8,7 @@
|
||||
import TermKit
|
||||
|
||||
/// A collection of buttons.
|
||||
public struct ButtonCollection: ButtonContext.Widget, Wrapper {
|
||||
public struct ButtonCollection: ButtonWidget, Wrapper {
|
||||
|
||||
/// The content of the collection.
|
||||
var content: Body
|
||||
|
||||
@ -11,11 +11,11 @@ import TermKit
|
||||
public enum ButtonContext: ViewRenderData {
|
||||
|
||||
/// The type of the widgets.
|
||||
public typealias WidgetType = Widget
|
||||
public typealias WidgetType = ButtonWidget
|
||||
/// The wrapper type.
|
||||
public typealias WrapperType = ButtonCollection
|
||||
|
||||
/// The type of the widgets.
|
||||
public protocol Widget: Meta.Widget { }
|
||||
|
||||
}
|
||||
|
||||
/// The type of the widgets.
|
||||
public protocol ButtonWidget: Meta.Widget { }
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
import TermKit
|
||||
|
||||
/// 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.
|
||||
var label: String
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
import TermKit
|
||||
|
||||
/// A collection of menus.
|
||||
public struct MenuCollection: MenuContext.Widget, Wrapper {
|
||||
public struct MenuCollection: MenuWidget, Wrapper {
|
||||
|
||||
/// The content of the collection.
|
||||
var content: Body
|
||||
|
||||
@ -11,11 +11,11 @@ import TermKit
|
||||
public enum MenuContext: ViewRenderData {
|
||||
|
||||
/// The type of the widgets.
|
||||
public typealias WidgetType = Widget
|
||||
public typealias WidgetType = MenuWidget
|
||||
/// The wrapper type.
|
||||
public typealias WrapperType = MenuCollection
|
||||
|
||||
/// The type of the widgets.
|
||||
public protocol Widget: Meta.Widget { }
|
||||
|
||||
}
|
||||
|
||||
/// The type of the widgets.
|
||||
public protocol MenuWidget: Meta.Widget { }
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
import TermKit
|
||||
|
||||
/// A simple button widget.
|
||||
public struct Button: TermKitWidget, ButtonContext.Widget, MenuContext.Widget {
|
||||
public struct Button: TermKitWidget, ButtonWidget, MenuWidget {
|
||||
|
||||
/// The button's label.
|
||||
var label: String
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user