10 inherit (mkdocs-macros) pname version src;
12 mkdocs-macros-test = callPackage ./mkdocs-macros-test.nix { };
24 runCommand "mkdocs-macros-example-docs" env ''
28 base_dir=${pname}-${version}/test
29 tar --extract "--file=${src}"
31 for test_dir in $base_dir/*/; do
33 mkdocs build --site-dir=$out/$test_dir
37 # Do some static checks on the generated content
39 # Non-existent variables
40 cat debug/index.html | grep "another one: that"
42 cat module/index.html | grep "part from an <em>included</em> file!"
43 # Variable replacement
44 cat module_dir/index.html | grep "total costs is 50 euros"
45 # New syntax with square brackets
46 cat new_syntax/index.html | grep "expensive"
47 # General info on macros
48 cat simple/index.html | grep "Macros Plugin Environment"