From 10b10d7565fe7723e14ba310eab72ebd3858696b Mon Sep 17 00:00:00 2001 From: octt <6083316-octospacc@users.noreply.gitlab.com> Date: Thu, 22 Sep 2022 15:33:09 +0000 Subject: [PATCH] Fix file; Update build script --- .github/workflows/main.yml | 2 +- .gitlab-ci.yml | 2 +- Build.sh | 7 +++++++ public/index.html | 39 +++++++++++++++++++++----------------- 4 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f82aaaf7..4661a125 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - name: Build run: | sudo apt update - sudo apt install -y npm + sudo apt install -y wget npm sudo npm install -g tiddlywiki ./Build.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a4d35e1..985f6a41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: alpine:latest before_script: | apk update - apk add npm + apk add wget npm npm install -g tiddlywiki pages: diff --git a/Build.sh b/Build.sh index ff9eb07d..2790446d 100755 --- a/Build.sh +++ b/Build.sh @@ -1,7 +1,14 @@ #!/bin/sh + +URL="https://kb.octt.eu.org" + cd ./public + 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 + +wget -O "-1.html" "$URL" +wget -O "-2.html" "$URL/-1.html" diff --git a/public/index.html b/public/index.html index bdd6b0d0..54920941 100644 --- a/public/index.html +++ b/public/index.html @@ -139,9 +139,7 @@
It seems like your browser isn't executing ~JavaScript code.
Solutions:
The following is a preview of the Welcome Page.
...
Just to be clear with any of you people that experience TiddlyWiki for the first time... if you make any edits here, they will not magically appear on my site - The worst you can actually do is locally save your edits. 🙃
~OcttKB || Powered by TiddlyWiki.
+It seems like your browser isn't executing ~JavaScript code.
Solutions:
The following is a preview of the Welcome Page.
...
Just to be clear with any of you people that experience TiddlyWiki for the first time... if you make any edits here, they will not magically appear on my site - The worst you can actually do is locally save your edits. 🙃
~OcttKB || Powered by TiddlyWiki.
@@ -153,7 +151,8 @@