MNT Reform: Open Source Portable Computer https://mntre.com/reform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
363B

  1. #!/bin/bash
  2. function build {
  3. dot -Tsvg system-diagram.dot -o system-diagram.svg
  4. rsvg-convert -f pdf -o system-diagram.pdf system-diagram.svg
  5. kramdown system.md >system.html
  6. sed -i 's/width="[^"]*"/width="100%"/' system-diagram.svg
  7. sed -i 's/height="[^"]*"//' system-diagram.svg
  8. }
  9. build
  10. while :
  11. do inotifywait -e modify -r *.dot *.md
  12. build
  13. done