diff --git a/.gitea/workflows/neocities.yml b/.gitea/workflows/neocities.yml index 1f19dc6..9cc0285 100644 --- a/.gitea/workflows/neocities.yml +++ b/.gitea/workflows/neocities.yml @@ -1,51 +1,30 @@ -name: Deploy to neocities +name: deploy to neocities on: - push: - branches: + push: + branches: - master -env: - FORCE_COLOR: 1 - node_version: lts/* - concurrency: group: deploy-to-neocities cancel-in-progress: true - jobs: - deploy: + jekyll: + name: Build and deploy Jekyll site runs-on: ubuntu-latest + steps: - - run: npm i markdown-to-html-cli -g - - uses: actions/checkout@v4 - - name: finish posts.html - env: - genhtml: ${{ needs.setup.outputs.genhtml }} - run: | - cd ${{github.workspace}} - ./gen_posts.sh > public/posts.html - - run: | - cd ${{github.workspace}} - for entry in notes/* - do - filename=$(basename "$entry" .md) - timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` - dest="public/posts/$timestamp" - dest+="_$filename" - dest+=".html" - markdown-to-html --no-dark-mode false --markdown-style-theme light --source $entry --output $dest - done -# - name: gen_pico8 -# run: | -# cd ${{github.worpskace}} -# ./gen_games.sh >> public/gaming.html -# echo " " >> public/gaming.html - - - name: Deploy to neocities - uses: bcomnes/deploy-to-neocities@v1 - with: - api_token: ${{ secrets.NEOCITIES_API_TOKEN }} - cleanup: true - dist_dir: public - protected_files: 'dropbox/*' + - name: Checkout + uses: actions/checkout@v2 + + - name: Build + uses: jerryjvl/jekyll-build-action@v1 + + - name: Deploy to neocities + uses: bcomnes/deploy-to-neocities@v1 + with: + api_token: ${{ secrets.NEOCITIES_API_TOKEN }} + cleanup: true + dist_dir: _site + protected_files: 'dropbox/*' + diff --git a/.gitea/workflows/neocities.yml.old b/.gitea/workflows/neocities.yml.old new file mode 100644 index 0000000..1f19dc6 --- /dev/null +++ b/.gitea/workflows/neocities.yml.old @@ -0,0 +1,51 @@ +name: Deploy to neocities +on: + push: + branches: + - master + +env: + FORCE_COLOR: 1 + node_version: lts/* + +concurrency: + group: deploy-to-neocities + cancel-in-progress: true + + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - run: npm i markdown-to-html-cli -g + - uses: actions/checkout@v4 + - name: finish posts.html + env: + genhtml: ${{ needs.setup.outputs.genhtml }} + run: | + cd ${{github.workspace}} + ./gen_posts.sh > public/posts.html + - run: | + cd ${{github.workspace}} + for entry in notes/* + do + filename=$(basename "$entry" .md) + timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` + dest="public/posts/$timestamp" + dest+="_$filename" + dest+=".html" + markdown-to-html --no-dark-mode false --markdown-style-theme light --source $entry --output $dest + done +# - name: gen_pico8 +# run: | +# cd ${{github.worpskace}} +# ./gen_games.sh >> public/gaming.html +# echo " " >> public/gaming.html + + - name: Deploy to neocities + uses: bcomnes/deploy-to-neocities@v1 + with: + api_token: ${{ secrets.NEOCITIES_API_TOKEN }} + cleanup: true + dist_dir: public + protected_files: 'dropbox/*' diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..75a48da --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,12 @@ + + + + + + + {{ page.title }} + + + {{ content }} + + diff --git a/beppe_online/Cargo.toml b/beppe_online/Cargo.toml deleted file mode 100644 index c3c796e..0000000 --- a/beppe_online/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "beppe_online" -version = "0.1.0" -edition = "2021" -authors = ["Beppe Vanrolleghem beppe.vanrolleghem@gmail.com"] -description = "Testing out wasm" - -[lib] -crate-type = ["cdylib"] - - - -[dependencies] -wasm-bindgen = "0.2" -leptos = { version = "0.6.12", features = ["csr"] } - diff --git a/beppe_online/index.html b/beppe_online/index.html deleted file mode 100644 index a37c733..0000000 --- a/beppe_online/index.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/beppe_online/src/basic.frag b/beppe_online/src/basic.frag deleted file mode 100644 index 49bb667..0000000 --- a/beppe_online/src/basic.frag +++ /dev/null @@ -1,10 +0,0 @@ -precision mediump float; - -uniform float u_time; - -void main() { - float r = sin(u_time * .0003); - float g = sin(u_time*.0005); - float b = sin(u_time*.0007); - gl_fragColor = vec4(r,g,b,1.); -} diff --git a/beppe_online/src/basic.vert b/beppe_online/src/basic.vert deleted file mode 100644 index b5d74da..0000000 --- a/beppe_online/src/basic.vert +++ /dev/null @@ -1,7 +0,0 @@ -precision mediump float; - -attribute vec2 a_position; - -void main() { - gl_Position = vec4(a_position, 0.0, 1.0); -} diff --git a/beppe_online/src/lib.rs b/beppe_online/src/lib.rs deleted file mode 100644 index a303637..0000000 --- a/beppe_online/src/lib.rs +++ /dev/null @@ -1,5 +0,0 @@ -use leptos::*; - -fn main() { - mount_to_body(|| view! {

"hi"

}) -} diff --git a/compile.sh b/compile.sh deleted file mode 100755 index 8bd5fc5..0000000 --- a/compile.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -t='[' -for entry in notes/* -do - filename=$(basename "$entry" .md) - timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` - dest="public/posts/$timestamp" - dest+="_$filename" - dest+=".html" - t+="{\"source\":\"$entry\",\"name\":\"$filename\",\"dest\":\"$dest\",\"time\":\"$timestamp\"}," -done -echo "${t%?}]" - diff --git a/gen_games.sh b/gen_games.sh deleted file mode 100755 index a6d3248..0000000 --- a/gen_games.sh +++ /dev/null @@ -1,11 +0,0 @@ -html='