Fix documentation not building
This commit is contained in:
parent
eadc08d61d
commit
c48abc1c9a
@ -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
|
||||||
|
|||||||
@ -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 { }
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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 { }
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user