website: create website

This commit introduces a the Kilo website. It is generated with
Docusaurus and can be deployed with standard services like Netlify.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
This commit is contained in:
Lucas Servén Marín
2020-03-09 23:17:32 +01:00
parent e681c10cb4
commit 3d9c5f322d
23 changed files with 11455 additions and 9 deletions

View File

@@ -200,6 +200,21 @@ header: .header
exit 1; \
fi
website/docs/README.md: README.md
rm -rf website/docs
mkdir website/docs
find docs -type f -name '*.md' | xargs -I{} ln {} website/{}
rm -rf website/static/img/graphs
cp -r docs/graphs website/static/img/
cp README.md website/docs/
sed -i 's/\.\/docs\///g' $@
find $(@D) -type f -name '*.md' | xargs -I{} sed -i 's/\.\//\/img\//g' {}
sed -i 's/graphs\//\/img\/graphs\//g' $@
website/build/index.html: website/docs/README.md
yarn --cwd website install
yarn --cwd website build
container: .container-$(ARCH)-$(VERSION) container-name
.container-$(ARCH)-$(VERSION): $(BINS) Dockerfile
@i=0; for a in $(ALL_ARCH); do [ "$$a" = $(ARCH) ] && break; i=$$((i+1)); done; \