Compare commits

...

2 Commits

Author SHA1 Message Date
b83c13852e
doc: move assets into public folder
Fixes issues with built version of the site

Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-04-29 14:46:53 +01:00
1aac5ffda8
doc: fix bad formatter spec link
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-04-29 14:42:01 +01:00
7 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ repl-result-*
# docs # docs
node_modules 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", description: "one CLI to format your repo",
themeConfig: { themeConfig: {
logo: '../assets/logo.svg', logo: '/logo.svg',
// https://vitepress.dev/reference/default-theme-config // https://vitepress.dev/reference/default-theme-config
nav: [ nav: [

View File

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

@ -11,4 +11,4 @@ To run `treefmt` in your project, please follow these steps:
In the following sections we will guide you through installing and configuring `treefmt` in detail. In the following sections we will guide you through installing and configuring `treefmt` in detail.
[install]: installation.md [install]: installation.md
[here]: formatters-spec.md [here]: formatter-spec.md

View File

@ -21,7 +21,7 @@ _: {
set -xeuo pipefail set -xeuo pipefail
for tape in $PRJ_ROOT/docs/vhs/*; do 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 done
''; '';
} }