doc: move assets into public folder

Fixes issues with built version of the site

Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
Brian McGee 2024-04-29 14:46:53 +01:00
parent e252f6bd0c
commit 894f90f084
Signed by: brianmcgee
GPG Key ID: D49016E76AD1E8C0
6 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

@ -13,4 +13,5 @@ repl-result-*
# docs
node_modules
docs/.vitepress/cache
docs/.vitepress/cache
docs/.vitepress/dist

View File

@ -6,7 +6,7 @@ export default defineConfig({
description: "one CLI to format your repo",
themeConfig: {
logo: '../assets/logo.svg',
logo: '/logo.svg',
// https://vitepress.dev/reference/default-theme-config
nav: [

View File

@ -6,7 +6,7 @@ hero:
name: "Treefmt"
text: "One CLI to format your repo"
image:
src: ./assets/fmt.gif
src: /fmt.gif
alt: Treefmt
actions:
- theme: brand

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -21,7 +21,7 @@ _: {
set -xeuo pipefail
for tape in $PRJ_ROOT/docs/vhs/*; do
vhs $tape -o "$PRJ_ROOT/docs/assets/$(basename $tape .tape).gif"
vhs $tape -o "$PRJ_ROOT/docs/public/$(basename $tape .tape).gif"
done
'';
}