diff --git a/documentation/docs/12-packaging.md b/documentation/docs/12-packaging.md index 21ae61eab54a..f6fb034c099f 100644 --- a/documentation/docs/12-packaging.md +++ b/documentation/docs/12-packaging.md @@ -4,7 +4,7 @@ title: Packaging You can use SvelteKit to build component libraries as well as apps. -When you're creating an app, the contents of `src/routes` is the public-facing stuff; [`src/lib`](#modules-lib) contains your app's internal library. +When you're creating an app, the contents of `src/routes` is the public-facing stuff; [`src/lib`](#modules-$lib) contains your app's internal library. A SvelteKit component library has the exact same structure as a SvelteKit app, except that `src/lib` is the public-facing bit. `src/routes` might be a documentation or demo site that accompanies the library, or it might just be a sandbox you use during development. diff --git a/documentation/migrating/03-project-files.md b/documentation/migrating/03-project-files.md index a1e4e66fc3f3..8ad0b58f8ab6 100644 --- a/documentation/migrating/03-project-files.md +++ b/documentation/migrating/03-project-files.md @@ -22,7 +22,7 @@ This file also has no direct equivalent, since SvelteKit apps can run in serverl ### src/service-worker.js -Most imports from `@sapper/service-worker` have equivalents in [`$service-worker`](/docs#modules-service-worker): +Most imports from `@sapper/service-worker` have equivalents in [`$service-worker`](/docs#modules-$service-worker): - `timestamp` is unchanged - `files` is unchanged @@ -39,4 +39,4 @@ The `
` is no longer necessary, though you can continue mounting ### src/node_modules -A common pattern in Sapper apps is to put your internal library in a directory inside `src/node_modules`. This doesn't work with Vite, so we use [`src/lib`](/docs#modules-lib) instead. +A common pattern in Sapper apps is to put your internal library in a directory inside `src/node_modules`. This doesn't work with Vite, so we use [`src/lib`](/docs#modules-$lib) instead. diff --git a/documentation/migrating/04-pages.md b/documentation/migrating/04-pages.md index 281b35f51787..6a6dd5855ed0 100644 --- a/documentation/migrating/04-pages.md +++ b/documentation/migrating/04-pages.md @@ -8,11 +8,11 @@ Your custom error page component should be renamed from `_error.svelte` to `__er ### Imports -The `goto`, `prefetch` and `prefetchRoutes` imports from `@sapper/app` should be replaced with identical imports from [`$app/navigation`](/docs#modules-app-navigation). +The `goto`, `prefetch` and `prefetchRoutes` imports from `@sapper/app` should be replaced with identical imports from [`$app/navigation`](/docs#modules-$app-navigation). The `stores` import from `@sapper/app` should be replaced — see the [Stores](#pages-and-layouts-stores) section below. -Any files you previously imported from directories in `src/node_modules` will need to be replaced with [`$lib`](/docs#modules-lib) imports. +Any files you previously imported from directories in `src/node_modules` will need to be replaced with [`$lib`](/docs#modules-$lib) imports. ### Preload