summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-09-15 14:59:01 +0000
committerLars Wirzenius <liw@liw.fi>2022-09-15 14:59:01 +0000
commit8f971ba80843f6bde3a1484f665726e360548a76 (patch)
treeb701a315368617fd4302f811ccedc59fefbbd0c4
parent1bf4d8fd3e6c2f43085670a570562561d188afac (diff)
parent458ffa9772d400b42a4ac52dd4b314f98e83f077 (diff)
downloadewww-8f971ba80843f6bde3a1484f665726e360548a76.tar.gz
Merge branch 'fix-subplot' into 'main'
fix: use new Subplot external YAML metadata file See merge request larswirzenius/ewww!31
-rwxr-xr-xcheck10
-rw-r--r--ewww.md20
-rw-r--r--ewww.subplot18
3 files changed, 23 insertions, 25 deletions
diff --git a/check b/check
index a3939c0..3f172ba 100755
--- a/check
+++ b/check
@@ -48,11 +48,11 @@ if cargo fmt --help >/dev/null 2>/dev/null; then
$hideok cargo fmt -- --check
fi
-for md in [^CR]*.md; do
- $hideok echo "$md ====================================="
- codegen "$md" test.py
- docgen "$md" "$(basename "$md" .md).pdf"
- docgen "$md" "$(basename "$md" .md).html"
+for subplot in [^CR]*.subplot; do
+ $hideok echo "$subplot ====================================="
+ codegen "$subplot" test.py
+ docgen "$subplot" "$(basename "$subplot" .subplot).pdf"
+ docgen "$subplot" "$(basename "$subplto" .subplot).html"
$hideok echo
done
diff --git a/ewww.md b/ewww.md
index 9844592..3a1212f 100644
--- a/ewww.md
+++ b/ewww.md
@@ -1,23 +1,3 @@
----
-title: "Ewww &mdash; a Web server for static sites"
-author: Lars Wirzenius
-bindings:
- - subplot/ewww.yaml
- - lib/daemon.yaml
- - lib/files.yaml
- - lib/runcmd.yaml
-impls:
- python:
- - subplot/ewww.py
- - subplot/http.py
- - lib/daemon.py
- - lib/files.py
- - lib/runcmd.py
-classes:
- - scenario-disabled
-...
-
-
# Introduction
Ewww is a web server for static sites. It aims to be simple code,
diff --git a/ewww.subplot b/ewww.subplot
new file mode 100644
index 0000000..a710712
--- /dev/null
+++ b/ewww.subplot
@@ -0,0 +1,18 @@
+title: "Ewww &mdash; a Web server for static sites"
+author: Lars Wirzenius
+markdowns:
+ - ewww.md
+bindings:
+ - subplot/ewww.yaml
+ - lib/daemon.yaml
+ - lib/files.yaml
+ - lib/runcmd.yaml
+impls:
+ python:
+ - subplot/ewww.py
+ - subplot/http.py
+ - lib/daemon.py
+ - lib/files.py
+ - lib/runcmd.py
+classes:
+ - scenario-disabled