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