summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-06 14:45:34 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-06 14:45:34 +0100
commit5e68b92bd94e49b352ca80b4132156446fa9081d (patch)
tree68c8cbf82ebfcfb1a76a7b02b81e931432294e45
parentea129b5b09d881a77f1daeb0c55ab7d23bd6ef8e (diff)
Make the site compatible with gsp 3.0.0
-rwxr-xr-xinclude/fmt-code2
-rw-r--r--src/prj/mkpass/index.gsp4
-rw-r--r--src/prj/mmv/index.gsp46
-rw-r--r--src/prj/totp/index.gsp4
-rw-r--r--src/srp/fw-ec/index.gsp10
-rw-r--r--src/srp/gsp/index.gsp14
6 files changed, 40 insertions, 40 deletions
diff --git a/include/fmt-code b/include/fmt-code
index c02a389..4942700 100755
--- a/include/fmt-code
+++ b/include/fmt-code
@@ -1,3 +1,3 @@
#!/bin/sh
-sed 's|.*|>code{-&}|; $s/>//' "${2%/*}/$1"
+sed 's/.*/@code{-&}/' "${2%/*}/$1"
diff --git a/src/prj/mkpass/index.gsp b/src/prj/mkpass/index.gsp
index 69c1372..145b5f7 100644
--- a/src/prj/mkpass/index.gsp
+++ b/src/prj/mkpass/index.gsp
@@ -79,7 +79,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(basic-usage.sh.gsp) }
+ pre {= m4_fmt_code(basic-usage.sh.gsp) }
}
p {-
@@ -88,7 +88,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(length-flag.sh.gsp) }
+ pre {= m4_fmt_code(length-flag.sh.gsp) }
}
p {-
diff --git a/src/prj/mmv/index.gsp b/src/prj/mmv/index.gsp
index 96465a2..3207611 100644
--- a/src/prj/mmv/index.gsp
+++ b/src/prj/mmv/index.gsp
@@ -83,7 +83,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(ls-files.sh.gsp) }
+ pre {= m4_fmt_code(ls-files.sh.gsp) }
}
p {-
@@ -98,7 +98,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(manual-mv.sh.gsp) }
+ pre {= m4_fmt_code(manual-mv.sh.gsp) }
}
p {-
@@ -109,7 +109,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(camel-to-snake-naïve.sh.gsp) }
+ pre {= m4_fmt_code(camel-to-snake-naïve.sh.gsp) }
}
aside {
@@ -182,7 +182,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(camel-to-snake-smart.sh.gsp) }
+ pre {= m4_fmt_code(camel-to-snake-smart.sh.gsp) }
}
p {-Let me break down how this works.}
@@ -210,7 +210,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(mmv-tr.sh.gsp) }
+ pre {= m4_fmt_code(mmv-tr.sh.gsp) }
}
p {-
@@ -221,7 +221,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(tr.sh.gsp) }
+ pre {= m4_fmt_code(tr.sh.gsp) }
}
p {-
@@ -294,7 +294,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(mmv-rev.sh.gsp) }
+ pre {= m4_fmt_code(mmv-rev.sh.gsp) }
}
p {-
@@ -328,7 +328,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(mmv-rev-zero.sh.gsp) }
+ pre {= m4_fmt_code(mmv-rev-zero.sh.gsp) }
}
p {-
@@ -340,7 +340,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(sed-debugging.sh.gsp) }
+ pre {= m4_fmt_code(sed-debugging.sh.gsp) }
}
p {-
@@ -371,7 +371,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(sed-debugging-rev.sh.gsp) }
+ pre {= m4_fmt_code(sed-debugging-rev.sh.gsp) }
}
p {-
@@ -384,7 +384,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(reverse-embedded-newline.sh.gsp) }
+ pre {= m4_fmt_code(reverse-embedded-newline.sh.gsp) }
}
h3 #e-flag {-Encoding Newlines}
@@ -410,7 +410,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(vipe.sh.gsp) }
+ pre {= m4_fmt_code(vipe.sh.gsp) }
}
aside {
@@ -426,7 +426,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(vim.gsp) }
+ pre {= m4_fmt_code(vim.gsp) }
}
p {-
@@ -466,7 +466,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(sha1sum-long-example.sh.gsp) }
+ pre {= m4_fmt_code(sha1sum-long-example.sh.gsp) }
}
p {-
@@ -474,7 +474,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(sha1sum-short-example.sh.gsp) }
+ pre {= m4_fmt_code(sha1sum-short-example.sh.gsp) }
}
p {-
@@ -540,7 +540,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(mmv-verbose.sh.gsp) }
+ pre {= m4_fmt_code(mmv-verbose.sh.gsp) }
}
p {-
@@ -566,7 +566,7 @@ html lang="en" {
p {-Swap the files @em{-foo} and @em{-bar}:}
figure {
- pre { m4_fmt_code(examples/swap.sh.gsp) }
+ pre {= m4_fmt_code(examples/swap.sh.gsp) }
}
p {-
@@ -574,7 +574,7 @@ html lang="en" {
of spaces:
}
figure {
- pre { m4_fmt_code(examples/hyphens.sh.gsp) }
+ pre {= m4_fmt_code(examples/hyphens.sh.gsp) }
}
p {-
@@ -584,7 +584,7 @@ html lang="en" {
to @em{-02-the-return-of-the-king.mp4}):
}
figure {
- pre { m4_fmt_code(examples/number.sh.gsp) }
+ pre {= m4_fmt_code(examples/number.sh.gsp) }
}
p {-
@@ -599,7 +599,7 @@ html lang="en" {
from @em{-moreutils}:
}
figure {
- pre { m4_fmt_code(examples/vipe.sh.gsp) }
+ pre {= m4_fmt_code(examples/vipe.sh.gsp) }
}
p {-
@@ -615,7 +615,7 @@ html lang="en" {
‘@code{-\\n}’ extension:
}
figure {
- pre { m4_fmt_code(examples/camel-to-snake.sh.gsp) }
+ pre {= m4_fmt_code(examples/camel-to-snake.sh.gsp) }
}
p {-
@@ -623,7 +623,7 @@ html lang="en" {
newline characters:
}
figure {
- pre { m4_fmt_code(examples/lowercase.sh.gsp) }
+ pre {= m4_fmt_code(examples/lowercase.sh.gsp) }
}
p {-
@@ -635,7 +635,7 @@ html lang="en" {
the input files position in the input list):
}
figure {
- pre { m4_fmt_code(examples/i-flag.sh.gsp) }
+ pre {= m4_fmt_code(examples/i-flag.sh.gsp) }
}
}
diff --git a/src/prj/totp/index.gsp b/src/prj/totp/index.gsp
index c447242..a0308a2 100644
--- a/src/prj/totp/index.gsp
+++ b/src/prj/totp/index.gsp
@@ -95,7 +95,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(basic-usage.sh.gsp) }
+ pre {= m4_fmt_code(basic-usage.sh.gsp) }
}
aside {
@@ -116,7 +116,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(zbarimg.sh.gsp) }
+ pre {= m4_fmt_code(zbarimg.sh.gsp) }
}
p {-
diff --git a/src/srp/fw-ec/index.gsp b/src/srp/fw-ec/index.gsp
index 254becc..3b8a94a 100644
--- a/src/srp/fw-ec/index.gsp
+++ b/src/srp/fw-ec/index.gsp
@@ -72,7 +72,7 @@ html lang="en" {
figcaption {
code {-~/board/hx20/led.c}
}
- pre { m4_fmt_code(led.diff.gsp) }
+ pre {= m4_fmt_code(led.diff.gsp) }
}
p {-
@@ -105,14 +105,14 @@ html lang="en" {
figcaption {
code {-~/board/hx20/board.h}
}
- pre { m4_fmt_code(fn-lock-1.diff.gsp) }
+ pre {= m4_fmt_code(fn-lock-1.diff.gsp) }
}
figure {
figcaption {
code {-~/board/hx20/keyboard-customization.c}
}
- pre { m4_fmt_code(fn-lock-2.diff.gsp) }
+ pre {= m4_fmt_code(fn-lock-2.diff.gsp) }
}
p {-
@@ -188,7 +188,7 @@ html lang="en" {
figcaption {
code {-~/board/hx20/keyboard_customization.c}
}
- pre { m4_fmt_code(hybrid.diff.gsp) }
+ pre {= m4_fmt_code(hybrid.diff.gsp) }
}
p {-
@@ -203,7 +203,7 @@ html lang="en" {
@code{-keyboard_scancode_callback()} in
@code{-~/board/hx20/keyboard_customization.c}
}
- pre { m4_fmt_code(kbd-sc-cb.c.gsp) }
+ pre {= m4_fmt_code(kbd-sc-cb.c.gsp) }
}
p {-
diff --git a/src/srp/gsp/index.gsp b/src/srp/gsp/index.gsp
index 0f48965..b417165 100644
--- a/src/srp/gsp/index.gsp
+++ b/src/srp/gsp/index.gsp
@@ -80,7 +80,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(markdown.md.gsp) }
+ pre {= m4_fmt_code(markdown.md.gsp) }
}
p {- Oh no.}
@@ -125,7 +125,7 @@ html lang="en" {
}
figure {
- pre .pug { m4_fmt_code(pug.pug.gsp) }
+ pre .pug {= m4_fmt_code(pug.pug.gsp) }
}
p {-
@@ -156,7 +156,7 @@ html lang="en" {
}
figure {
- pre .gsp { m4_fmt_code(example.gsp.gsp) }
+ pre .gsp {= m4_fmt_code(example.gsp.gsp) }
}
p {-
@@ -180,7 +180,7 @@ html lang="en" {
}
figure {
- pre { m4_fmt_code(abbr.m4.gsp) }
+ pre {= m4_fmt_code(abbr.m4.gsp) }
}
p {-
@@ -229,7 +229,7 @@ html lang="en" {
}
figure {
- pre .js { m4_fmt_code(grammar.js.gsp) }
+ pre .js {= m4_fmt_code(grammar.js.gsp) }
}
aside {
@@ -262,7 +262,7 @@ html lang="en" {
figcaption {
code {-queries/highlights.scm}
}
- pre { m4_fmt_code(highlights.scm.gsp) }
+ pre {= m4_fmt_code(highlights.scm.gsp) }
}
p {-
@@ -277,7 +277,7 @@ html lang="en" {
figcaption {
code {-queries/folds.scm}
}
- pre { m4_fmt_code(folds.scm.gsp) }
+ pre {= m4_fmt_code(folds.scm.gsp) }
}
h2 #takeaway {-The Takeaway}