Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sevanspowell committed Apr 6, 2021
1 parent 5c6a00b commit 674b8d9
Show file tree
Hide file tree
Showing 14 changed files with 2,089 additions and 4 deletions.
3 changes: 2 additions & 1 deletion default.nix
Expand Up @@ -32,10 +32,11 @@ let
nixosTests = recRecurseIntoAttrs (import ./nix/nixos/tests {
inherit pkgs;
});
docScripts = pkgs.callPackage ./docs/default.nix { };

self = {
inherit metadataServerHaskellPackages metadataValidatorGitHubTarball;
inherit haskellPackages hydraEvalErrors nixosTests;
inherit haskellPackages hydraEvalErrors nixosTests docScripts;

inherit (pkgs.iohkNix) checkCabalProject;

Expand Down
Binary file added docs/01-settings-webhook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/02-webhook-creation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions docs/default.nix
@@ -0,0 +1,26 @@
{ emacs, git, cardano-cli, cardano-metadata-submitter, runCommand, lib, coreutils, gawk, curl, jq }:

let
buildInputs =
[ emacs
git
cardano-metadata-submitter
cardano-cli
coreutils
gawk
curl
];
in
runCommand
"generate-documentation-scripts"
{ inherit buildInputs; }
''
mkdir -p $out/bin
cd $out/bin
cp ${./main.org} ./main.org
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "./main.org")'
mv ./main.org $out/main.org
bash ./mk-nix-setup.sh
mv metadata-config.nix $out/
''

0 comments on commit 674b8d9

Please sign in to comment.