-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
136 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(executable | ||
(name capsule) | ||
(public_name capsule) | ||
(libraries yocaml yocaml_runtime yocaml_eio static cmdliner)) | ||
(libraries yocaml yocaml_runtime yocaml_eio generator cmdliner)) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class type with_configuration = object | ||
method configuration : Config.t | ||
end | ||
|
||
class type with_target_path = object | ||
method target_path : Yocaml.Path.t | ||
end | ||
|
||
class type with_source_path = object | ||
method source_path : Yocaml.Path.t | ||
end | ||
|
||
class type common = object ('a) | ||
method document_kind : Model.Types.document_kind | ||
method page_title : string option | ||
method page_charset : string option | ||
method cover : Model.Cover.t option | ||
method description : string option | ||
method published_at : Yocaml.Archetype.Datetime.t option | ||
method updated_at : Yocaml.Archetype.Datetime.t option | ||
method synopsis : string | ||
method section : string option | ||
method breadcrumb : Model.Link.t list | ||
method tags : string list | ||
method display_toc : bool | ||
method toc : string option | ||
method with_toc : string option -> 'a | ||
method on_description : (string option -> string option) -> 'a | ||
method on_synopsis : (string -> string) -> 'a | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type t | ||
|
||
include Types.MODEL with type t := t | ||
|
||
val meta_for : t -> Meta.t option list | ||
val resolve : Url.t -> t -> t |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
type t | ||
|
||
include Types.NORMALIZABLE with type t := t | ||
|
||
val make : name:string -> content:string -> t | ||
val from_option : string -> string option -> t option | ||
val from_list : string -> string list -> t option | ||
val normalize : t -> Yocaml.Data.t | ||
val normalize_options : t option list -> Yocaml.Data.t |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
type document_kind = | ||
| Page | ||
| Article | ||
|
||
module type NORMALIZABLE = sig | ||
type t | ||
|
||
val normalize : t -> Yocaml.Data.t | ||
end | ||
|
||
module type VALIDABLE = sig | ||
type t | ||
|
||
val validate : Yocaml.Data.t -> t Yocaml.Data.Validation.validated_value | ||
end | ||
|
||
module type MODEL = sig | ||
include NORMALIZABLE | ||
include VALIDABLE with type t := t | ||
end | ||
|
||
module type KEY_VALUE = sig | ||
type t | ||
type key | ||
type value | ||
|
||
val from_list : (key * value) list -> t | ||
val to_list : t -> (key * value) list | ||
val empty : t | ||
val has_elements : t -> Yocaml.Data.t | ||
|
||
include MODEL with type t := t | ||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.