-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from gr-im/use-new-version-of-yocaml
Use new version of yocaml
- Loading branch information
Showing
8 changed files
with
20 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
let run (module R : Sigs.RESOLVER) chain = | ||
Yocaml.Action.write_static_file R.Target.blog | ||
Yocaml.Action.Static.write_file_with_metadata R.Target.blog | ||
(let open Yocaml.Task in | ||
R.track_common_dependencies | ||
>>> Yocaml.Pipeline.track_file R.Source.articles | ||
>>> Yocaml_yaml.Pipeline.read_file_with_metadata | ||
(module Model.Page) | ||
R.Source.blog | ||
>>> first @@ Model.Articles.index chain R.Source.articles | ||
>>> Static.on_metadata @@ Model.Articles.index chain R.Source.articles | ||
>>> Yocaml_omd.content_to_html () | ||
>>> Yocaml_jingoo.Pipeline.as_template | ||
(module Model.Articles) | ||
(R.Source.template "blog.html") | ||
>>> Yocaml_jingoo.Pipeline.as_template | ||
(module Model.Articles) | ||
(R.Source.template "layout.html") | ||
>>> drop_first ()) | ||
(R.Source.template "layout.html")) |
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
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,2 +1,9 @@ | ||
let run (module R : Sigs.RESOLVER) = | ||
Batch_copy.run ~extension:[ "css" ] ~source:R.Source.css ~target:R.Target.css | ||
Yocaml.Action.Static.write_file R.Target.css | ||
(Yocaml.Pipeline.pipe_files ~separator:"\n" | ||
Yocaml.Path. | ||
[ | ||
R.Source.css / "fonts.css"; | ||
R.Source.css / "reset.css"; | ||
R.Source.css / "style.css"; | ||
]) |
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
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