-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-282: Build the Agda doc site in CI (#5128)
* PLT-282: Build the Agda doc site in CI The README link won't work until this is merged, but it should be fine after that. Definitely some improvements to be made to the site (it's unstyled!), but I'll leave those for later. * Revert path workaround
- Loading branch information
Showing
6 changed files
with
47 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ inputs, cell }: | ||
|
||
let | ||
# Doing this in two derivations so the call to agda is cached, since | ||
# that's very slow. Makes it easier to iterate on the site build. | ||
plutus-metatheory-agda-html = cell.library.pkgs.stdenv.mkDerivation { | ||
name = "plutus-metatheory-doc"; | ||
src = inputs.self + /plutus-metatheory; | ||
buildInputs = [ cell.packages.agda-with-stdlib ]; | ||
buildPhase = '' | ||
mkdir "$out" | ||
agda --html --html-highlight=auto --html-dir="$out" "src/index.lagda.md" | ||
''; | ||
dontInstall = true; | ||
}; | ||
plutus-metatheory-site = cell.library.pkgs.runCommand "plutus-metatheory-site" | ||
{ | ||
buildInputs = [ cell.library.pkgs.jekyll ]; | ||
} | ||
'' | ||
mkdir "$out" | ||
# disable the disk cache otherwise it tries to write to the source | ||
jekyll build \ | ||
--disable-disk-cache \ | ||
-s ${plutus-metatheory-agda-html} \ | ||
-d "$out" | ||
''; | ||
in | ||
plutus-metatheory-site |
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 was deleted.
Oops, something went wrong.