Add darkhttpd and introduce README.md

This commit is contained in:
Konstantin Nazarov 2023-06-12 13:40:15 +01:00
parent 36943fd971
commit c1960ddb71
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22
7 changed files with 24 additions and 4 deletions

View file

@ -45,6 +45,9 @@ clean:
deploy:
rsync -avP --delete output/ root@knazarov.com:/var/www/knazarov.com/
serve:
darkhttpd output/
install:
install -d $(DESTDIR)$(PREFIX)/srv/knazarov.com
rsync -av --no-o --no-g output/ $(DESTDIR)$(PREFIX)/srv/knazarov.com

16
README.md Normal file
View file

@ -0,0 +1,16 @@
# My personal website
This is source code for [knazarov.com](https://knazarov.com), my personal website.
It is written mostly in bash, and uses [markdown.awk](https://git.sr.ht/~knazarov/markdown.awk) to convert
markdown posts and pages to HTML.
The site has very minimal CSS (about 110 lines) that should be enough to display fine in most browsers
including mobile.
I don't intend the code to be easily readable, but given that it's not much, you can probably figure
things out.
## Building
If you're on any Linux system, you can just type `make` in your terminal, and the result will be in the
`./output` directory. However, if you're on a Mac, you probably would need to use gnu awk/sed.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
expand() {
TITLE="$1"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
remove_nbsp() {
sed 's#\ # #g'

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

View file

@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
gawk
gnused
rsync
darkhttpd
];
src = ./.;