diff options
| Commit | f6d40fff04fcf28e3a9f79afc3f00c6b6ac7f383 (patch) | |
|---|---|---|
| Author | 2025-07-21 07:27:29 +0300 | |
| Committer | 2025-07-21 07:45:00 +0300 | |
| Files | 9e2c8be8cd766f60ba022cfb8c90a78b549291ae /generate.sh | |
| syndamia.com-f6d40fff04fcf28e3a9f79afc3f00c6b6ac7f383.tar syndamia.com-f6d40fff04fcf28e3a9f79afc3f00c6b6ac7f383.tar.gz syndamia.com-f6d40fff04fcf28e3a9f79afc3f00c6b6ac7f383.zip | ||
| Parent | fe054ac33b1d28ae16dbae9305651188f0b22608 (diff) | |
feat(src/ext): Replace icons.du with icons.awk
Adding the substitutions in an AWK BEGIN block is much faster than with
a dunbar file. It also eliminates the HTML file, generated in ext.
However, this does bring up the question whether having cross-file
definitions is a bug or a feature. It would be better for dunbar
implementation compatibility.
1 files changed, 1 insertions, 3 deletions
| -rwxr-xr-x | generate.sh | 4 |
diff --git a/generate.sh b/generate.sh index 3d62dcb..170450d 100755 --- a/generate.sh +++ b/generate.sh @@ -36,12 +36,10 @@ EOF -o . \ -e ./ext/meta.awk -e ./ext/attention.awk \ -e ./ext/heading-anchors.awk -e ./ext/pagenav.awk \ + -e ./ext/icons.awk \ -wo \ -he ./ext/header.du.html -fo ./ext/footer.du.html \ - ./ext/*.du \ $(find "$GEN_DIR" -type f -name "*.du") - - rm ./ext/icons.html # }}} # 2. Tiny version, strip away styles and other stuff {{{ # TODO |