Build to publish in a separate path
This commit is contained in:
parent
f1eb82cf0b
commit
0c1caf26d2
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
out/
|
out/
|
||||||
|
srv/
|
||||||
venv
|
venv
|
9
Makefile
9
Makefile
@ -1,11 +1,12 @@
|
|||||||
.PHONY: *
|
.PHONY: *
|
||||||
|
|
||||||
build:
|
build:
|
||||||
./build.py
|
./build.py out/
|
||||||
pagefind --site out/
|
pagefind --site out/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
test -e out && rm -rf out
|
test -e out && rm -rf out || true
|
||||||
|
test -e srv && rm -rf srv || true
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
while inotifywait -r -e modify -e move -e create -e delete build.py Makefile src/; do make build; done
|
while inotifywait -r -e modify -e move -e create -e delete build.py Makefile src/; do make build; done
|
||||||
@ -14,4 +15,6 @@ serve:
|
|||||||
python -m http.server --directory out/
|
python -m http.server --directory out/
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
rsync -av out/* ssh.alogoulogoi.com:/srv/www.alogoulogoi.com
|
./build.py srv/
|
||||||
|
pagefind --site srv/
|
||||||
|
rsync -av srv/* ssh.alogoulogoi.com:/srv/www.alogoulogoi.com
|
5
build.py
5
build.py
@ -12,11 +12,10 @@ import markdown
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("src", help="source directory", nargs="?", default="./src")
|
parser.add_argument("out", help="output directory")
|
||||||
parser.add_argument("out", help="output directory", nargs="?", default="./out")
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
src = pathlib.Path(args.src)
|
src = pathlib.Path("src")
|
||||||
out = pathlib.Path(args.out)
|
out = pathlib.Path(args.out)
|
||||||
|
|
||||||
md = markdown.Markdown(extensions=["attr_list", "footnotes", "md_in_html", "meta"])
|
md = markdown.Markdown(extensions=["attr_list", "footnotes", "md_in_html", "meta"])
|
||||||
|
@ -8,7 +8,7 @@ I self-host a Gitea instance at [git.alogoulogoi.com](https://git.alogoulogoi.co
|
|||||||
|
|
||||||
# Colophon
|
# Colophon
|
||||||
|
|
||||||
**Technology:** This website is built from [Markdown and HTML sources](https://git.alogoulogoi.com/Jaculabilis/www) using [Python-Markdown](https://python-markdown.github.io/). It is hosted on a NixOS VPS running Nginx and serving static files deployed via `rsync`.
|
This website is built from [Markdown and HTML sources](https://git.alogoulogoi.com/Jaculabilis/www) using [Python-Markdown](https://python-markdown.github.io/). The static files are deployed to a NixOS VPS via `rsync` and served by Nginx.
|
||||||
|
|
||||||
Before the Internet was a deployment system for JavaScript, it was a web of interlinked hypertext documents. This site's design reflects that forgotten dream. The pages are self-contained, the styling is minimal, and the content is accessible without scripting enabled.
|
Before the Internet was a deployment system for JavaScript, it was a web of interlinked hypertext documents. This site's design reflects that forgotten dream. The pages are self-contained, the styling is minimal, and the content is accessible without scripting enabled.
|
||||||
|
|
||||||
@ -17,5 +17,3 @@ A selection of other sites used as design inspiration:
|
|||||||
* [brutalist-web.design](https://brutalist-web.design/)
|
* [brutalist-web.design](https://brutalist-web.design/)
|
||||||
* [blog.aqwari.net](https://blog.aqwari.net/)
|
* [blog.aqwari.net](https://blog.aqwari.net/)
|
||||||
* [spectrum-os.org](https://spectrum-os.org/)
|
* [spectrum-os.org](https://spectrum-os.org/)
|
||||||
|
|
||||||
**Privacy:** Nginx keeps request logs, but I never check them. I don't know what I'd do with them, either.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user