Skip to content

Commit

Permalink
docs: update add-utility script & @svecodocs/kit for contrast (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Dec 2, 2024
1 parent 5daaf19 commit 35bde43
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 155 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ yarn.lock
CHANGELOG.md
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
sites/docs/src/routes/api/search.json/**/*
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scripts/add-utility.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function toKebabCase(str) {
}

const utilsDir = "./packages/runed/src/lib/utilities";
const contentDir = "./sites/docs/content/utilities";
const contentDir = "./sites/docs/src/content/utilities";
const demosDir = "./sites/docs/src/lib/components/demos";

const utilName = readlineSync.question("What is the name of the utility? ");
Expand Down Expand Up @@ -50,8 +50,8 @@ fs.writeFileSync(
demoFile,
`
<script lang="ts">
import { ${utilName} } from 'runed';
import DemoContainer from '$lib/components/demo-container.svelte';
import { ${utilName} } from 'runed';
import { DemoContainer } from '@svecodocs/ui';
</script>
<DemoContainer>
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"url": "https://github.com/svecosystem/runed.git"
},
"devDependencies": {
"@svecodocs/kit": "^0.0.4",
"@svecodocs/kit": "^0.0.5",
"@sveltejs/adapter-cloudflare": "^4.8.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
Expand Down
Loading

0 comments on commit 35bde43

Please sign in to comment.