add pages
This commit is contained in:
parent
e54d4c5485
commit
084743df2c
5 changed files with 37 additions and 0 deletions
25
.forgejo/workflows/web.yaml
Normal file
25
.forgejo/workflows/web.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
automate-ifc:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Install checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: https://github.com/tj-actions/changed-files@v42
|
||||
- name: Do computations
|
||||
env:
|
||||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
run: |
|
||||
if [[ ! -d web ]]
|
||||
then
|
||||
git clone https://git.forgeons.org/rvba/web
|
||||
fi
|
||||
cd web && git pull
|
||||
cd scripts
|
||||
for file in ${ALL_CHANGED_FILES}; do
|
||||
./web.sh "$file"
|
||||
|
1
dist/.gitignore
vendored
Normal file
1
dist/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.html
|
1
pages/index.md
Normal file
1
pages/index.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Forgeons !
|
0
scripts/index.html
Normal file
0
scripts/index.html
Normal file
10
scripts/web.sh
Executable file
10
scripts/web.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
file=$1
|
||||
filename=$(basename -- "$file")
|
||||
extension="${filename##*.}"
|
||||
filename="${filename%.*}"
|
||||
|
||||
#echo "making $filename.html"
|
||||
|
||||
pandoc ../pages/$filename.md -t html > ../dist/$filename.html
|
Loading…
Reference in a new issue