diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-09-17 07:16:43 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-09-17 07:16:43 +0200 |
| commit | 40013704cf16f53468940a7d0160b40e8241a87c (patch) | |
| tree | f8ddc584fd90a450733332a3b9e6bbb898b4ab4e /scripts/build.sh | |
| parent | 71a1444ec305d537cbfadb1a599df7dcacde13a1 (diff) | |
| download | jo.mssola.com-40013704cf16f53468940a7d0160b40e8241a87c.tar.gz jo.mssola.com-40013704cf16f53468940a7d0160b40e8241a87c.zip | |
Remove jekyll
This is a complete rewrite of my blog to a vastly simpler form. That is,
we only need HTML and a couple of build scripts to have something
equivalent, without all the dependencies that jekyll brings. I have also
taken the chance to remove a lot of stuff that was actually not needed.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'scripts/build.sh')
| -rwxr-xr-x | scripts/build.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..2985cfc --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +ROOT_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )/.." &> /dev/null && pwd )" + +rm -r $ROOT_DIR/build/* +cp -r $ROOT_DIR/src/public/* $ROOT_DIR/build/ +find build/ -type f -name *.html -exec ruby scripts/render.rb {} \; + +cp -r $ROOT_DIR/images $ROOT_DIR/build/ +cp -r $ROOT_DIR/stylesheets $ROOT_DIR/build/ |
