diff options
Diffstat (limited to '00_blog/00040_Haskell')
| -rw-r--r-- | 00_blog/00040_Haskell/00200_Estatico-Page-Maker/index.md | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/00_blog/00040_Haskell/00200_Estatico-Page-Maker/index.md b/00_blog/00040_Haskell/00200_Estatico-Page-Maker/index.md index 8559136..8c1c2f9 100644 --- a/00_blog/00040_Haskell/00200_Estatico-Page-Maker/index.md +++ b/00_blog/00040_Haskell/00200_Estatico-Page-Maker/index.md @@ -8,7 +8,7 @@ And so I wrote ... a simple static website generator in **Haskell**. Of course I know that there are plenty of these out there, still I wanted my very own masturbatory solution. -I use **pandoc** et al. for most of the work anyway. +I use **pandoc** et al. for most of the heavy work anyway. ## Features @@ -22,12 +22,10 @@ I use **pandoc** et al. for most of the work anyway. * Generate MP4 from OGG **Videos** with **ffmpeg** ## Try It -You can find the most recent version following the links below. -Build it with _stack_ or use the docker images. +You can find the most recent version here. Build it with _stack build_. +Install it with _stack install_. * <https://gitweb.softwarefools.com/?p=miguel/estatico.git> -* <https://github.com/miguelclean/estatico> -* <https://hub.docker.com/r/migueldirty/estatico/builds> ## Pandoc Themes @@ -37,27 +35,20 @@ from **pandoc**: [./pandoc\_colors](./pandoc_colors) ## Example Website This very website <https://www.idziorek.net> is a real-world example making -use of estático. You can find the source code here: +use of estático. You can find its source code here: * <https://gitweb.softwarefools.com/?p=miguel/idziorek_net.git> -## Example Usage (Docker) +## Example Usage -__NOTE: make sure DIR\_OUT exists and is a free directory__ +Just have a look at the example websites inside the _examples_ directory for a start.\ +You can build it with: -You can use the example websites inside the examples/ directory for a start. + $ estatico-exe ./examples/example01 /tmp/www.example01.com www.example01.com -Inside the input directory (e.g. ./examples/example01/) run something along this lines: +This will build the static website in _\/tmp\/www.example01.com_ (directory must exist), +assuming _www.example01.com_ as the base url. - DIR_IN=`pwd` - DIR_OUT=/mnt/yourwebsiteroot - HTML_ROOT=https://www.example.com - SUDO=sudo - IMAGE=migueldirty/estatico - ${SUDO} docker run --rm -v${DIR_IN}:/in:ro -v${DIR_OUT}:/out:rw ${IMAGE} /in /out ${HTML_ROOT} - -Or if you want to test it locally use some local DIR\_OUT and HTML\_ROOT instead: - - DIR_OUT=/home/miguel/testpage - HTML_ROOT=/home/miguel/testpage +And then simply sync it to your server: + $ rsync -r -u -v /tmp/www.example01.net/* your-server:/var/www/www.example01.net/ |
