summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-01-10 08:31:10 +0200
committerLars Wirzenius <liw@liw.fi>2020-01-10 08:31:10 +0200
commit8a3c7d4c7aabc502cc3a872c21307656cc1fa95b (patch)
treede2ae4195a27469d39bb281bb452d00aaeac815b /check
parent5003c7b5113017ea8b6678f0277050088de9c852 (diff)
downloadsubplot-8a3c7d4c7aabc502cc3a872c21307656cc1fa95b.tar.gz
Change: format docs in ./check
Diffstat (limited to 'check')
-rwxr-xr-xcheck20
1 files changed, 12 insertions, 8 deletions
diff --git a/check b/check
index 0446117..b9a3ec6 100755
--- a/check
+++ b/check
@@ -2,21 +2,25 @@
set -eu
-if false; then
-cargo clippy -q
-cargo test -q
-
-find src -type f -name '*.rs' -exec rustfmt --check '{}' +
-fi
-
codegen() {
cargo run -q --bin sp-codegen -- "$1" --output "$2" --run \
--templates "$(pwd)/templates"
}
-for md in *.md
+docgen() {
+ cargo run -q --bin sp-docgen -- "$1" --output "$2"
+}
+
+cargo clippy -q
+cargo test -q
+
+find src -type f -name '*.rs' -exec rustfmt --check '{}' +
+
+for md in [^R]*.md
do
echo "$md ====================================="
codegen "$md" test.py
+ docgen "$md" "$(basename "$md" .md).pdf"
+ docgen "$md" "$(basename "$md" .md).html"
echo
done