doc: scripts to run embedmd on markdown files

This will help keep READMEs in sync with code.

Also adds a README for the add example.

Updates #14
This commit is contained in:
Michael McLoughlin
2018-12-31 20:25:29 -08:00
parent 816fa4c0e6
commit 4550badf58
4 changed files with 59 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ post=$(go list ./... | grep -E 'avo/(examples|tests)')
go install ./internal/cmd/avogen
# Attempt to delete generated files, to prove we can recreate them.
grep -REl 'Code generated.*DO NOT EDIT\.$' . | xargs rm -v
grep -REl 'Code generated.*DO NOT EDIT\.$' . | grep -v '.md$' | xargs rm -v
# Generate once.
go generate -v -x ${core}
@@ -19,3 +19,6 @@ go generate -v -x ${core}
# Generate dependent packages.
go generate -v -x ${post}
# Regenerate documentation.
./script/doc