-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from mattjennings/svelte-5
Svelte 5
- Loading branch information
Showing
86 changed files
with
14,307 additions
and
5,512 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
.DS_Store | ||
node_modules | ||
/.svelte-kit | ||
/dist | ||
/dist-docs | ||
/package | ||
|
||
.astro/ | ||
.vercel | ||
.vercel_build_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"semi": false | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"semi": false, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"pluginSearchDirs": ["."], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// @ts-check | ||
import { defineConfig } from 'astro/config' | ||
import starlight from '@astrojs/starlight' | ||
import liveCode from 'astro-live-code' | ||
|
||
import svelte from '@astrojs/svelte' | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
srcDir: 'docs', | ||
outDir: 'dist-docs', | ||
vite: { | ||
resolve: { | ||
alias: { | ||
'svelte-modals/legacy': '/src/lib/legacy.svelte.ts', | ||
'svelte-modals': '/src/lib/index.ts', | ||
$lib: '/docs/lib' | ||
}, | ||
dedupe: ['svelte-modals'] | ||
} | ||
}, | ||
integrations: [ | ||
starlight({ | ||
title: 'Svelte Modals', | ||
social: { | ||
github: 'https://github.com/mattjennings/svelte-modals' | ||
}, | ||
sidebar: [ | ||
{ | ||
label: 'Overview', | ||
items: [ | ||
{ label: 'Getting Started', slug: 'overview/getting-started' }, | ||
{ label: 'How it works', slug: 'overview/how-it-works' } | ||
] | ||
}, | ||
{ | ||
label: 'Modal Components', | ||
items: [ | ||
{ label: 'Props', slug: 'modal-components/props' }, | ||
{ label: 'Transitions', slug: 'modal-components/transitions' }, | ||
{ label: 'Snippets', slug: 'modal-components/snippets' }, | ||
{ label: 'Lazy loading', slug: 'modal-components/lazy-loading' }, | ||
{ label: 'Preventing close', slug: 'modal-components/preventing-close' } | ||
] | ||
}, | ||
{ | ||
label: 'API', | ||
items: [ | ||
{ label: 'modals', slug: 'api/modals' }, | ||
{ label: '<Modals />', slug: 'api/modals-component' } | ||
] | ||
}, | ||
{ | ||
label: 'Migrations', | ||
items: [{ label: 'v2', slug: 'migrations/v2' }] | ||
} | ||
], | ||
customCss: ['./docs/styles.css'] | ||
}), | ||
svelte({ | ||
preprocess: [] | ||
}), | ||
liveCode({ | ||
layout: '/docs/lib/layouts/code/Code.astro', | ||
defaultProps: { | ||
'client:load': true | ||
} | ||
}) | ||
] | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.