Skip to content

Commit

Permalink
docs: fixed link replacement in site generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 2, 2024
1 parent 6339e2d commit afbb754
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afbb754

Please sign in to comment.