Add darkhttpd and introduce README.md
This commit is contained in:
parent
36943fd971
commit
c1960ddb71
7 changed files with 24 additions and 4 deletions
3
Makefile
3
Makefile
|
@ -45,6 +45,9 @@ clean:
|
||||||
deploy:
|
deploy:
|
||||||
rsync -avP --delete output/ root@knazarov.com:/var/www/knazarov.com/
|
rsync -avP --delete output/ root@knazarov.com:/var/www/knazarov.com/
|
||||||
|
|
||||||
|
serve:
|
||||||
|
darkhttpd output/
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -d $(DESTDIR)$(PREFIX)/srv/knazarov.com
|
install -d $(DESTDIR)$(PREFIX)/srv/knazarov.com
|
||||||
rsync -av --no-o --no-g output/ $(DESTDIR)$(PREFIX)/srv/knazarov.com
|
rsync -av --no-o --no-g output/ $(DESTDIR)$(PREFIX)/srv/knazarov.com
|
||||||
|
|
16
README.md
Normal file
16
README.md
Normal 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.
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
expand() {
|
expand() {
|
||||||
TITLE="$1"
|
TITLE="$1"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
remove_nbsp() {
|
remove_nbsp() {
|
||||||
sed 's#\ # #g'
|
sed 's#\ # #g'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
|
||||||
gawk
|
gawk
|
||||||
gnused
|
gnused
|
||||||
rsync
|
rsync
|
||||||
|
darkhttpd
|
||||||
];
|
];
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
Loading…
Reference in a new issue