www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 6a9de5b798ae168c5c88f984917ffc15fb7565ce
parent dea2fc5307ef816d6825713d63d5a947f0db7d81
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Wed, 30 Oct 2024 09:39:05 -0700

Add automatically generated sitemap.txt

Hopefully this will aid page discovery a bit.

Diffstat:
MMakefile | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,10 +1,14 @@ +proto = https +domain = www.spaceplanner.app +urlprefix = ${proto}://${domain} + prefix = /var/www/htdocs/www.spaceplanner.app libs =\ github.com/svgdotjs/svg.js@3.2.4 \ github.com/svgdotjs/svg.panzoom.js@2.1.2 \ github.com/mrdoob/three.js@r169 \ -install: update_policies +install: update_policies files/sitemap.txt rsync $$(./libnames ${libs} | sed 's/^/--exclude=lib\//') -va --del files/ ${prefix} uninstall: @@ -28,4 +32,10 @@ update_policies: clean: rm -rf lib/ -.PHONY: install install_libs update_libs update_policies +files/sitemap.txt: + find files -type f -name '*.html' | \ + awk -vp=${urlprefix} '!match($$0, "/dev/") { sub("files/", "", $$0); printf "%s/%s\n", p, $$0 }' > $@ + +# sitemap.txt isn't really phony, but I don't want to maintain a +# list of the html files in here right now +.PHONY: install install_libs update_libs update_policies files/sitemap.txt