mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-02-03 16:07:37 +01:00
19 lines
504 B
Bash
19 lines
504 B
Bash
#!/bin/sh
|
|
mkdir -p ./public
|
|
cd ./public
|
|
|
|
# Build single-page no-JS wiki
|
|
tiddlywiki \
|
|
--load ./index.html \
|
|
--output ./ \
|
|
--rendertiddler $:/core/templates/static.template.css Style.css text/plain \
|
|
--rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
|
|
|
|
# Apply patches to the static HTML
|
|
python3 ../PatchStatic.py
|
|
|
|
# Deploy copies of immediately previous versions
|
|
Url="https://kb.octt.eu.org"
|
|
wget -O ./-1.html "$Url" || true
|
|
wget -O ./-2.html "$Url/-1.html" || true
|