Skip to content

Commit

Permalink
doc: move assets into public folder
Browse files Browse the repository at this point in the history
Fixes issues with built version of the site

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed May 2, 2024
1 parent e252f6b commit 894f90f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ repl-result-*

# docs
node_modules
docs/.vitepress/cache
docs/.vitepress/cache
docs/.vitepress/dist
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion nix/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
}
Expand Down

0 comments on commit 894f90f

Please sign in to comment.