From afbb754464f8a4964d5605469c01da897c4f9768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 2 Oct 2024 22:41:20 +0200 Subject: [PATCH] docs: fixed link replacement in site generation --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4a79da5e..1bca0910 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,10 @@ site: site/dist/index.html site/dist/docs site/dist/index.html: README.md site/dist/style.css site/template.html mkdir -p site/dist sed '1s/Website/GitHub/;1s|https://gptme.org/|https://github.com/ErikBjare/gptme|' README.md | \ - pandoc -s -f gfm -t html5 -o $@ --metadata title="gptme - agent in your terminal" --css style.css --template=site/template.html + cat README.md \ + | sed '0,/Website/{s/Website/GitHub/}' - \ + | sed '0,/gptme.org\/\"/{s/gptme.org\/\"/github.com\/ErikBjare\/gptme\"/}' - \ + | pandoc -s -f gfm -t html5 -o $@ --metadata title="gptme - agent in your terminal" --css style.css --template=site/template.html cp -r media site/dist site/dist/style.css: site/style.css