@kamod-ch/preactpress 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/assets/favicon-32.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/favicon.svg +28 -0
- package/assets/logo-dark.svg +5 -0
- package/assets/logo-light.svg +5 -0
- package/assets/logo.svg +5 -0
- package/bin/preactpress.mjs +13 -0
- package/dist/client/app.d.ts +6 -0
- package/dist/client/app.d.ts.map +1 -0
- package/dist/client/app.js +168 -0
- package/dist/client/app.js.map +1 -0
- package/dist/client/entry-client.d.ts +2 -0
- package/dist/client/entry-client.d.ts.map +1 -0
- package/dist/client/entry-client.js +27 -0
- package/dist/client/entry-client.js.map +1 -0
- package/dist/client/entry-ssr.d.ts +14 -0
- package/dist/client/entry-ssr.d.ts.map +1 -0
- package/dist/client/entry-ssr.js +59 -0
- package/dist/client/entry-ssr.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/loadPage.d.ts +5 -0
- package/dist/client/loadPage.d.ts.map +1 -0
- package/dist/client/loadPage.js +62 -0
- package/dist/client/loadPage.js.map +1 -0
- package/dist/client/prefetchLinks.d.ts +2 -0
- package/dist/client/prefetchLinks.d.ts.map +1 -0
- package/dist/client/prefetchLinks.js +55 -0
- package/dist/client/prefetchLinks.js.map +1 -0
- package/dist/client/theme-default/AlgoliaSearch.d.ts +12 -0
- package/dist/client/theme-default/AlgoliaSearch.d.ts.map +1 -0
- package/dist/client/theme-default/AlgoliaSearch.js +66 -0
- package/dist/client/theme-default/AlgoliaSearch.js.map +1 -0
- package/dist/client/theme-default/Features.d.ts +9 -0
- package/dist/client/theme-default/Features.d.ts.map +1 -0
- package/dist/client/theme-default/Features.js +25 -0
- package/dist/client/theme-default/Features.js.map +1 -0
- package/dist/client/theme-default/Hero.d.ts +9 -0
- package/dist/client/theme-default/Hero.d.ts.map +1 -0
- package/dist/client/theme-default/Hero.js +23 -0
- package/dist/client/theme-default/Hero.js.map +1 -0
- package/dist/client/theme-default/Layout.d.ts +6 -0
- package/dist/client/theme-default/Layout.d.ts.map +1 -0
- package/dist/client/theme-default/Layout.js +224 -0
- package/dist/client/theme-default/Layout.js.map +1 -0
- package/dist/client/theme-default/Logo.d.ts +16 -0
- package/dist/client/theme-default/Logo.d.ts.map +1 -0
- package/dist/client/theme-default/Logo.js +30 -0
- package/dist/client/theme-default/Logo.js.map +1 -0
- package/dist/client/theme-default/NavLinks.d.ts +12 -0
- package/dist/client/theme-default/NavLinks.d.ts.map +1 -0
- package/dist/client/theme-default/NavLinks.js +18 -0
- package/dist/client/theme-default/NavLinks.js.map +1 -0
- package/dist/client/theme-default/SidebarNav.d.ts +12 -0
- package/dist/client/theme-default/SidebarNav.d.ts.map +1 -0
- package/dist/client/theme-default/SidebarNav.js +21 -0
- package/dist/client/theme-default/SidebarNav.js.map +1 -0
- package/dist/client/theme-default/SocialLinks.d.ts +8 -0
- package/dist/client/theme-default/SocialLinks.d.ts.map +1 -0
- package/dist/client/theme-default/SocialLinks.js +13 -0
- package/dist/client/theme-default/SocialLinks.js.map +1 -0
- package/dist/client/theme-default/ThemeToggle.d.ts +4 -0
- package/dist/client/theme-default/ThemeToggle.d.ts.map +1 -0
- package/dist/client/theme-default/ThemeToggle.js +31 -0
- package/dist/client/theme-default/ThemeToggle.js.map +1 -0
- package/dist/client/theme-default/index.d.ts +2 -0
- package/dist/client/theme-default/index.d.ts.map +1 -0
- package/dist/client/theme-default/index.js +2 -0
- package/dist/client/theme-default/index.js.map +1 -0
- package/dist/client/types.d.ts +36 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/client/usePageHead.d.ts +10 -0
- package/dist/client/usePageHead.d.ts.map +1 -0
- package/dist/client/usePageHead.js +182 -0
- package/dist/client/usePageHead.js.map +1 -0
- package/dist/client/useSiteSearch.d.ts +10 -0
- package/dist/client/useSiteSearch.d.ts.map +1 -0
- package/dist/client/useSiteSearch.js +54 -0
- package/dist/client/useSiteSearch.js.map +1 -0
- package/dist/node/build.d.ts +15 -0
- package/dist/node/build.d.ts.map +1 -0
- package/dist/node/build.js +310 -0
- package/dist/node/build.js.map +1 -0
- package/dist/node/buildCache.d.ts +15 -0
- package/dist/node/buildCache.d.ts.map +1 -0
- package/dist/node/buildCache.js +41 -0
- package/dist/node/buildCache.js.map +1 -0
- package/dist/node/check.d.ts +11 -0
- package/dist/node/check.d.ts.map +1 -0
- package/dist/node/check.js +228 -0
- package/dist/node/check.js.map +1 -0
- package/dist/node/cli.d.ts +2 -0
- package/dist/node/cli.d.ts.map +1 -0
- package/dist/node/cli.js +157 -0
- package/dist/node/cli.js.map +1 -0
- package/dist/node/config-helpers.d.ts +8 -0
- package/dist/node/config-helpers.d.ts.map +1 -0
- package/dist/node/config-helpers.js +5 -0
- package/dist/node/config-helpers.js.map +1 -0
- package/dist/node/config.d.ts +13 -0
- package/dist/node/config.d.ts.map +1 -0
- package/dist/node/config.js +167 -0
- package/dist/node/config.js.map +1 -0
- package/dist/node/content.d.ts +16 -0
- package/dist/node/content.d.ts.map +1 -0
- package/dist/node/content.js +72 -0
- package/dist/node/content.js.map +1 -0
- package/dist/node/createContentLoader.d.ts +19 -0
- package/dist/node/createContentLoader.d.ts.map +1 -0
- package/dist/node/createContentLoader.js +11 -0
- package/dist/node/createContentLoader.js.map +1 -0
- package/dist/node/devCss.d.ts +7 -0
- package/dist/node/devCss.d.ts.map +1 -0
- package/dist/node/devCss.js +70 -0
- package/dist/node/devCss.js.map +1 -0
- package/dist/node/devSsr.d.ts +6 -0
- package/dist/node/devSsr.d.ts.map +1 -0
- package/dist/node/devSsr.js +112 -0
- package/dist/node/devSsr.js.map +1 -0
- package/dist/node/dynamicRoutes.d.ts +21 -0
- package/dist/node/dynamicRoutes.d.ts.map +1 -0
- package/dist/node/dynamicRoutes.js +120 -0
- package/dist/node/dynamicRoutes.js.map +1 -0
- package/dist/node/favicon.d.ts +9 -0
- package/dist/node/favicon.d.ts.map +1 -0
- package/dist/node/favicon.js +71 -0
- package/dist/node/favicon.js.map +1 -0
- package/dist/node/feed.d.ts +7 -0
- package/dist/node/feed.d.ts.map +1 -0
- package/dist/node/feed.js +37 -0
- package/dist/node/feed.js.map +1 -0
- package/dist/node/hooks.d.ts +9 -0
- package/dist/node/hooks.d.ts.map +1 -0
- package/dist/node/hooks.js +20 -0
- package/dist/node/hooks.js.map +1 -0
- package/dist/node/html.d.ts +56 -0
- package/dist/node/html.d.ts.map +1 -0
- package/dist/node/html.js +222 -0
- package/dist/node/html.js.map +1 -0
- package/dist/node/index.d.ts +12 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +9 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/init.d.ts +12 -0
- package/dist/node/init.d.ts.map +1 -0
- package/dist/node/init.js +93 -0
- package/dist/node/init.js.map +1 -0
- package/dist/node/lastUpdated.d.ts +3 -0
- package/dist/node/lastUpdated.d.ts.map +1 -0
- package/dist/node/lastUpdated.js +24 -0
- package/dist/node/lastUpdated.js.map +1 -0
- package/dist/node/loadSiteModule.d.ts +2 -0
- package/dist/node/loadSiteModule.d.ts.map +1 -0
- package/dist/node/loadSiteModule.js +10 -0
- package/dist/node/loadSiteModule.js.map +1 -0
- package/dist/node/markdown.d.ts +31 -0
- package/dist/node/markdown.d.ts.map +1 -0
- package/dist/node/markdown.js +508 -0
- package/dist/node/markdown.js.map +1 -0
- package/dist/node/markdownHeadings.d.ts +12 -0
- package/dist/node/markdownHeadings.d.ts.map +1 -0
- package/dist/node/markdownHeadings.js +70 -0
- package/dist/node/markdownHeadings.js.map +1 -0
- package/dist/node/markdownInclude.d.ts +6 -0
- package/dist/node/markdownInclude.d.ts.map +1 -0
- package/dist/node/markdownInclude.js +74 -0
- package/dist/node/markdownInclude.js.map +1 -0
- package/dist/node/markdownSnippets.d.ts +32 -0
- package/dist/node/markdownSnippets.d.ts.map +1 -0
- package/dist/node/markdownSnippets.js +172 -0
- package/dist/node/markdownSnippets.js.map +1 -0
- package/dist/node/mdx.d.ts +3 -0
- package/dist/node/mdx.d.ts.map +1 -0
- package/dist/node/mdx.js +9 -0
- package/dist/node/mdx.js.map +1 -0
- package/dist/node/packageRoot.d.ts +4 -0
- package/dist/node/packageRoot.d.ts.map +1 -0
- package/dist/node/packageRoot.js +7 -0
- package/dist/node/packageRoot.js.map +1 -0
- package/dist/node/pageDataLoaders.d.ts +6 -0
- package/dist/node/pageDataLoaders.d.ts.map +1 -0
- package/dist/node/pageDataLoaders.js +68 -0
- package/dist/node/pageDataLoaders.js.map +1 -0
- package/dist/node/paths.d.ts +5 -0
- package/dist/node/paths.d.ts.map +1 -0
- package/dist/node/paths.js +12 -0
- package/dist/node/paths.js.map +1 -0
- package/dist/node/plugin.d.ts +7 -0
- package/dist/node/plugin.d.ts.map +1 -0
- package/dist/node/plugin.js +282 -0
- package/dist/node/plugin.js.map +1 -0
- package/dist/node/resolveDeps.d.ts +5 -0
- package/dist/node/resolveDeps.d.ts.map +1 -0
- package/dist/node/resolveDeps.js +25 -0
- package/dist/node/resolveDeps.js.map +1 -0
- package/dist/node/serve.d.ts +6 -0
- package/dist/node/serve.d.ts.map +1 -0
- package/dist/node/serve.js +41 -0
- package/dist/node/serve.js.map +1 -0
- package/dist/node/server.d.ts +7 -0
- package/dist/node/server.d.ts.map +1 -0
- package/dist/node/server.js +55 -0
- package/dist/node/server.js.map +1 -0
- package/dist/node/siteConfig.d.ts +206 -0
- package/dist/node/siteConfig.d.ts.map +1 -0
- package/dist/node/siteConfig.js +2 -0
- package/dist/node/siteConfig.js.map +1 -0
- package/dist/node/tagIndex.d.ts +27 -0
- package/dist/node/tagIndex.d.ts.map +1 -0
- package/dist/node/tagIndex.js +84 -0
- package/dist/node/tagIndex.js.map +1 -0
- package/dist/shared/contentChunk.d.ts +4 -0
- package/dist/shared/contentChunk.d.ts.map +1 -0
- package/dist/shared/contentChunk.js +14 -0
- package/dist/shared/contentChunk.js.map +1 -0
- package/dist/shared/contentSchema.d.ts +43 -0
- package/dist/shared/contentSchema.d.ts.map +1 -0
- package/dist/shared/contentSchema.js +44 -0
- package/dist/shared/contentSchema.js.map +1 -0
- package/dist/shared/deadLinks.d.ts +9 -0
- package/dist/shared/deadLinks.d.ts.map +1 -0
- package/dist/shared/deadLinks.js +27 -0
- package/dist/shared/deadLinks.js.map +1 -0
- package/dist/shared/escapeHtml.d.ts +3 -0
- package/dist/shared/escapeHtml.d.ts.map +1 -0
- package/dist/shared/escapeHtml.js +11 -0
- package/dist/shared/escapeHtml.js.map +1 -0
- package/dist/shared/index.d.ts +15 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +15 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/locale.d.ts +11 -0
- package/dist/shared/locale.d.ts.map +1 -0
- package/dist/shared/locale.js +84 -0
- package/dist/shared/locale.js.map +1 -0
- package/dist/shared/pageChrome.d.ts +80 -0
- package/dist/shared/pageChrome.d.ts.map +1 -0
- package/dist/shared/pageChrome.js +160 -0
- package/dist/shared/pageChrome.js.map +1 -0
- package/dist/shared/pageHead.d.ts +3 -0
- package/dist/shared/pageHead.d.ts.map +1 -0
- package/dist/shared/pageHead.js +28 -0
- package/dist/shared/pageHead.js.map +1 -0
- package/dist/shared/pageMeta.d.ts +60 -0
- package/dist/shared/pageMeta.d.ts.map +1 -0
- package/dist/shared/pageMeta.js +72 -0
- package/dist/shared/pageMeta.js.map +1 -0
- package/dist/shared/rewrites.d.ts +5 -0
- package/dist/shared/rewrites.d.ts.map +1 -0
- package/dist/shared/rewrites.js +23 -0
- package/dist/shared/rewrites.js.map +1 -0
- package/dist/shared/route.d.ts +5 -0
- package/dist/shared/route.d.ts.map +1 -0
- package/dist/shared/route.js +15 -0
- package/dist/shared/route.js.map +1 -0
- package/dist/shared/search.d.ts +39 -0
- package/dist/shared/search.d.ts.map +1 -0
- package/dist/shared/search.js +63 -0
- package/dist/shared/search.js.map +1 -0
- package/dist/shared/sidebar.d.ts +18 -0
- package/dist/shared/sidebar.d.ts.map +1 -0
- package/dist/shared/sidebar.js +51 -0
- package/dist/shared/sidebar.js.map +1 -0
- package/dist/shared/slug.d.ts +4 -0
- package/dist/shared/slug.d.ts.map +1 -0
- package/dist/shared/slug.js +21 -0
- package/dist/shared/slug.js.map +1 -0
- package/dist/shared/socialIcons.d.ts +13 -0
- package/dist/shared/socialIcons.d.ts.map +1 -0
- package/dist/shared/socialIcons.js +27 -0
- package/dist/shared/socialIcons.js.map +1 -0
- package/dist/shared/tags.d.ts +6 -0
- package/dist/shared/tags.d.ts.map +1 -0
- package/dist/shared/tags.js +39 -0
- package/dist/shared/tags.js.map +1 -0
- package/dist/shared/theme.d.ts +8 -0
- package/dist/shared/theme.d.ts.map +1 -0
- package/dist/shared/theme.js +25 -0
- package/dist/shared/theme.js.map +1 -0
- package/dist/shared/themeLabels.d.ts +18 -0
- package/dist/shared/themeLabels.d.ts.map +1 -0
- package/dist/shared/themeLabels.js +51 -0
- package/dist/shared/themeLabels.js.map +1 -0
- package/dist/shared/url.d.ts +7 -0
- package/dist/shared/url.d.ts.map +1 -0
- package/dist/shared/url.js +10 -0
- package/dist/shared/url.js.map +1 -0
- package/package.json +108 -0
- package/src/client/app.tsx +194 -0
- package/src/client/entry-client.tsx +27 -0
- package/src/client/entry-ssr.tsx +77 -0
- package/src/client/index.ts +2 -0
- package/src/client/loadPage.ts +68 -0
- package/src/client/prefetchLinks.ts +60 -0
- package/src/client/theme-default/AlgoliaSearch.tsx +89 -0
- package/src/client/theme-default/Features.tsx +75 -0
- package/src/client/theme-default/Hero.tsx +60 -0
- package/src/client/theme-default/Layout.tsx +525 -0
- package/src/client/theme-default/Logo.tsx +104 -0
- package/src/client/theme-default/NavLinks.tsx +65 -0
- package/src/client/theme-default/SidebarNav.tsx +103 -0
- package/src/client/theme-default/SocialLinks.tsx +41 -0
- package/src/client/theme-default/ThemeToggle.tsx +79 -0
- package/src/client/theme-default/index.ts +1 -0
- package/src/client/theme-default/styles.css +1450 -0
- package/src/client/types.ts +37 -0
- package/src/client/usePageHead.ts +212 -0
- package/src/client/useSiteSearch.ts +57 -0
- package/src/client/virtual.d.ts +103 -0
- package/src/shared/contentChunk.ts +14 -0
- package/src/shared/contentSchema.ts +85 -0
- package/src/shared/deadLinks.ts +33 -0
- package/src/shared/escapeHtml.ts +11 -0
- package/src/shared/index.ts +83 -0
- package/src/shared/locale.ts +116 -0
- package/src/shared/pageChrome.ts +244 -0
- package/src/shared/pageHead.ts +26 -0
- package/src/shared/pageMeta.ts +136 -0
- package/src/shared/rewrites.ts +35 -0
- package/src/shared/route.ts +14 -0
- package/src/shared/search.ts +105 -0
- package/src/shared/sidebar.ts +67 -0
- package/src/shared/slug.ts +23 -0
- package/src/shared/socialIcons.ts +44 -0
- package/src/shared/tags.ts +36 -0
- package/src/shared/theme.ts +26 -0
- package/src/shared/themeLabels.ts +72 -0
- package/src/shared/url.ts +14 -0
- package/templates/default/.preactpress/config.ts +31 -0
- package/templates/default/README.md +45 -0
- package/templates/default/about.md +11 -0
- package/templates/default/guide/first-five-minutes.md +83 -0
- package/templates/default/index.html +18 -0
- package/templates/default/index.md +55 -0
- package/templates/default/package.json +15 -0
- package/templates/default/pnpm-lock.yaml +2917 -0
- package/templates/docs/.preactpress/config.ts +94 -0
- package/templates/docs/README.md +21 -0
- package/templates/docs/about.md +10 -0
- package/templates/docs/components/Counter.tsx +25 -0
- package/templates/docs/de/guide/getting-started.md +19 -0
- package/templates/docs/de/guide/what-is-preactpress.md +15 -0
- package/templates/docs/de/index.md +23 -0
- package/templates/docs/dist/404.html +29 -0
- package/templates/docs/dist/about/index.html +32 -0
- package/templates/docs/dist/assets/esm-DzlBxN5p.js +110 -0
- package/templates/docs/dist/assets/interactive-64o6YwrR.js +9 -0
- package/templates/docs/dist/assets/interactive-BedCloEw.js +9 -0
- package/templates/docs/dist/assets/main-BVLeh8GO.js +1 -0
- package/templates/docs/dist/assets/main-CreUBb3N.js +1 -0
- package/templates/docs/dist/assets/main-oodK-zZy.css +2 -0
- package/templates/docs/dist/de/guide/getting-started/index.html +36 -0
- package/templates/docs/dist/de/guide/what-is-preactpress/index.html +38 -0
- package/templates/docs/dist/de/index.html +29 -0
- package/templates/docs/dist/favicon-32.png +0 -0
- package/templates/docs/dist/favicon.png +0 -0
- package/templates/docs/dist/favicon.svg +28 -0
- package/templates/docs/dist/guide/advanced/index.html +53 -0
- package/templates/docs/dist/guide/commands/index.html +89 -0
- package/templates/docs/dist/guide/configuration/index.html +196 -0
- package/templates/docs/dist/guide/creating-pages/index.html +234 -0
- package/templates/docs/dist/guide/custom-themes/index.html +52 -0
- package/templates/docs/dist/guide/default-theme/index.html +53 -0
- package/templates/docs/dist/guide/deploy/index.html +195 -0
- package/templates/docs/dist/guide/first-five-minutes/index.html +99 -0
- package/templates/docs/dist/guide/getting-started/index.html +173 -0
- package/templates/docs/dist/guide/markdown-and-mdx/index.html +59 -0
- package/templates/docs/dist/guide/routing/index.html +192 -0
- package/templates/docs/dist/guide/what-is-preactpress/index.html +141 -0
- package/templates/docs/dist/index.html +30 -0
- package/templates/docs/dist/interactive/index.html +37 -0
- package/templates/docs/dist/markdown-examples/index.html +231 -0
- package/templates/docs/dist/preactpress-content/404.json +8 -0
- package/templates/docs/dist/preactpress-content/_index.json +50 -0
- package/templates/docs/dist/preactpress-content/about.json +15 -0
- package/templates/docs/dist/preactpress-content/de.json +45 -0
- package/templates/docs/dist/preactpress-content/de__guide__getting-started.json +26 -0
- package/templates/docs/dist/preactpress-content/de__guide__what-is-preactpress.json +21 -0
- package/templates/docs/dist/preactpress-content/guide__advanced.json +46 -0
- package/templates/docs/dist/preactpress-content/guide__commands.json +26 -0
- package/templates/docs/dist/preactpress-content/guide__configuration.json +51 -0
- package/templates/docs/dist/preactpress-content/guide__creating-pages.json +71 -0
- package/templates/docs/dist/preactpress-content/guide__custom-themes.json +15 -0
- package/templates/docs/dist/preactpress-content/guide__default-theme.json +36 -0
- package/templates/docs/dist/preactpress-content/guide__deploy.json +56 -0
- package/templates/docs/dist/preactpress-content/guide__first-five-minutes.json +36 -0
- package/templates/docs/dist/preactpress-content/guide__getting-started.json +51 -0
- package/templates/docs/dist/preactpress-content/guide__markdown-and-mdx.json +31 -0
- package/templates/docs/dist/preactpress-content/guide__routing.json +71 -0
- package/templates/docs/dist/preactpress-content/guide__what-is-preactpress.json +51 -0
- package/templates/docs/dist/preactpress-content/markdown-examples.json +71 -0
- package/templates/docs/dist/preactpress-content/tags__markdown.json +16 -0
- package/templates/docs/dist/preactpress-search.json +166 -0
- package/templates/docs/dist/preactpress-theme.js +1 -0
- package/templates/docs/dist/tags/markdown/index.html +32 -0
- package/templates/docs/guide/advanced.md +44 -0
- package/templates/docs/guide/commands.md +41 -0
- package/templates/docs/guide/configuration.md +130 -0
- package/templates/docs/guide/creating-pages.md +171 -0
- package/templates/docs/guide/custom-themes.md +39 -0
- package/templates/docs/guide/default-theme.md +41 -0
- package/templates/docs/guide/deploy.md +197 -0
- package/templates/docs/guide/first-five-minutes.md +82 -0
- package/templates/docs/guide/getting-started.md +146 -0
- package/templates/docs/guide/markdown-and-mdx.md +59 -0
- package/templates/docs/guide/routing.md +263 -0
- package/templates/docs/guide/what-is-preactpress.md +87 -0
- package/templates/docs/index.html +18 -0
- package/templates/docs/index.md +28 -0
- package/templates/docs/interactive.mdx +32 -0
- package/templates/docs/markdown-examples.md +72 -0
- package/templates/docs/package.json +15 -0
- package/templates/docs/partials/shared-note.md +3 -0
- package/templates/docs/parts/include-body.md +9 -0
- package/templates/docs/pnpm-lock.yaml +2917 -0
- package/templates/docs/snippets/greet.ts +3 -0
- package/templates/hono/.preactpress/config.ts +100 -0
- package/templates/hono/.preactpress/theme/CodeSnippet.tsx +41 -0
- package/templates/hono/.preactpress/theme/FeatureGrid.tsx +27 -0
- package/templates/hono/.preactpress/theme/Hero.tsx +45 -0
- package/templates/hono/.preactpress/theme/Layout.tsx +388 -0
- package/templates/hono/.preactpress/theme/Logo.tsx +26 -0
- package/templates/hono/.preactpress/theme/ThemeToggle.tsx +72 -0
- package/templates/hono/.preactpress/theme/hono.css +1058 -0
- package/templates/hono/README.md +41 -0
- package/templates/hono/about.md +10 -0
- package/templates/hono/components/Counter.tsx +25 -0
- package/templates/hono/de/about.md +10 -0
- package/templates/hono/de/guide/commands.md +44 -0
- package/templates/hono/de/guide/configuration.md +64 -0
- package/templates/hono/de/guide/deploy.md +197 -0
- package/templates/hono/de/guide/first-five-minutes.md +82 -0
- package/templates/hono/de/guide/getting-started.md +146 -0
- package/templates/hono/de/guide/routing.md +220 -0
- package/templates/hono/de/guide/seiten-erstellen.md +171 -0
- package/templates/hono/de/guide/what-is-preactpress.md +87 -0
- package/templates/hono/de/index.mdx +51 -0
- package/templates/hono/de/interactive.mdx +32 -0
- package/templates/hono/de/markdown-examples.md +142 -0
- package/templates/hono/de/parts/include-body.md +9 -0
- package/templates/hono/de/snippets/greet.ts +3 -0
- package/templates/hono/dist/404.html +29 -0
- package/templates/hono/dist/README/index.html +104 -0
- package/templates/hono/dist/about/index.html +32 -0
- package/templates/hono/dist/assets/Counter-CCEByS-J.js +1 -0
- package/templates/hono/dist/assets/Hero--o6WMNvm.js +2 -0
- package/templates/hono/dist/assets/de-D5r6Ye70.js +10 -0
- package/templates/hono/dist/assets/hono-BXWYYdyv.js +10 -0
- package/templates/hono/dist/assets/interactive-Bxo-WBpC.js +9 -0
- package/templates/hono/dist/assets/interactive-BznI4IQ3.js +9 -0
- package/templates/hono/dist/assets/main-Bqi-VFEk.js +2 -0
- package/templates/hono/dist/assets/main-DIIN7FO0.css +1 -0
- package/templates/hono/dist/de/about/index.html +32 -0
- package/templates/hono/dist/de/guide/commands/index.html +41 -0
- package/templates/hono/dist/de/guide/configuration/index.html +105 -0
- package/templates/hono/dist/de/guide/deploy/index.html +195 -0
- package/templates/hono/dist/de/guide/first-five-minutes/index.html +99 -0
- package/templates/hono/dist/de/guide/getting-started/index.html +173 -0
- package/templates/hono/dist/de/guide/routing/index.html +165 -0
- package/templates/hono/dist/de/guide/seiten-erstellen/index.html +234 -0
- package/templates/hono/dist/de/guide/what-is-preactpress/index.html +141 -0
- package/templates/hono/dist/de/index.html +30 -0
- package/templates/hono/dist/de/interactive/index.html +37 -0
- package/templates/hono/dist/de/markdown-examples/index.html +97 -0
- package/templates/hono/dist/de/parts/include-body/index.html +36 -0
- package/templates/hono/dist/de/tags/markdown/index.html +32 -0
- package/templates/hono/dist/favicon-32.png +0 -0
- package/templates/hono/dist/favicon.png +0 -0
- package/templates/hono/dist/favicon.svg +28 -0
- package/templates/hono/dist/guide/commands/index.html +41 -0
- package/templates/hono/dist/guide/configuration/index.html +158 -0
- package/templates/hono/dist/guide/creating-pages/index.html +234 -0
- package/templates/hono/dist/guide/deploy/index.html +195 -0
- package/templates/hono/dist/guide/first-five-minutes/index.html +99 -0
- package/templates/hono/dist/guide/getting-started/index.html +173 -0
- package/templates/hono/dist/guide/routing/index.html +165 -0
- package/templates/hono/dist/guide/what-is-preactpress/index.html +141 -0
- package/templates/hono/dist/index.html +30 -0
- package/templates/hono/dist/interactive/index.html +37 -0
- package/templates/hono/dist/markdown-examples/index.html +105 -0
- package/templates/hono/dist/partials/shared-note/index.html +30 -0
- package/templates/hono/dist/parts/include-body/index.html +36 -0
- package/templates/hono/dist/preactpress-content/404.json +8 -0
- package/templates/hono/dist/preactpress-content/README.json +26 -0
- package/templates/hono/dist/preactpress-content/about.json +15 -0
- package/templates/hono/dist/preactpress-content/de__about.json +15 -0
- package/templates/hono/dist/preactpress-content/de__guide__commands.json +36 -0
- package/templates/hono/dist/preactpress-content/de__guide__configuration.json +41 -0
- package/templates/hono/dist/preactpress-content/de__guide__deploy.json +56 -0
- package/templates/hono/dist/preactpress-content/de__guide__first-five-minutes.json +36 -0
- package/templates/hono/dist/preactpress-content/de__guide__getting-started.json +51 -0
- package/templates/hono/dist/preactpress-content/de__guide__routing.json +61 -0
- package/templates/hono/dist/preactpress-content/de__guide__seiten-erstellen.json +71 -0
- package/templates/hono/dist/preactpress-content/de__guide__what-is-preactpress.json +51 -0
- package/templates/hono/dist/preactpress-content/de__markdown-examples.json +131 -0
- package/templates/hono/dist/preactpress-content/de__parts__include-body.json +16 -0
- package/templates/hono/dist/preactpress-content/de__tags__markdown.json +16 -0
- package/templates/hono/dist/preactpress-content/guide__commands.json +36 -0
- package/templates/hono/dist/preactpress-content/guide__configuration.json +51 -0
- package/templates/hono/dist/preactpress-content/guide__creating-pages.json +71 -0
- package/templates/hono/dist/preactpress-content/guide__deploy.json +56 -0
- package/templates/hono/dist/preactpress-content/guide__first-five-minutes.json +36 -0
- package/templates/hono/dist/preactpress-content/guide__getting-started.json +51 -0
- package/templates/hono/dist/preactpress-content/guide__routing.json +61 -0
- package/templates/hono/dist/preactpress-content/guide__what-is-preactpress.json +51 -0
- package/templates/hono/dist/preactpress-content/markdown-examples.json +141 -0
- package/templates/hono/dist/preactpress-content/partials__shared-note.json +10 -0
- package/templates/hono/dist/preactpress-content/parts__include-body.json +16 -0
- package/templates/hono/dist/preactpress-content/tags__markdown.json +16 -0
- package/templates/hono/dist/preactpress-search.json +242 -0
- package/templates/hono/dist/preactpress-theme.js +1 -0
- package/templates/hono/dist/tags/markdown/index.html +32 -0
- package/templates/hono/guide/commands.md +44 -0
- package/templates/hono/guide/configuration.md +177 -0
- package/templates/hono/guide/creating-pages.md +171 -0
- package/templates/hono/guide/deploy.md +197 -0
- package/templates/hono/guide/first-five-minutes.md +82 -0
- package/templates/hono/guide/getting-started.md +146 -0
- package/templates/hono/guide/routing.md +263 -0
- package/templates/hono/guide/what-is-preactpress.md +87 -0
- package/templates/hono/index.html +18 -0
- package/templates/hono/index.mdx +51 -0
- package/templates/hono/interactive.mdx +32 -0
- package/templates/hono/markdown-examples.md +160 -0
- package/templates/hono/package.json +15 -0
- package/templates/hono/partials/shared-note.md +3 -0
- package/templates/hono/parts/include-body.md +9 -0
- package/templates/hono/pnpm-lock.yaml +2917 -0
- package/templates/hono/snippets/greet.ts +3 -0
- package/templates/magazine/.preactpress/config.ts +36 -0
- package/templates/magazine/.preactpress/theme/Layout.tsx +319 -0
- package/templates/magazine/.preactpress/theme/TeaserGrid.tsx +39 -0
- package/templates/magazine/.preactpress/theme/ThemeToggle.tsx +73 -0
- package/templates/magazine/.preactpress/theme/magazine.css +587 -0
- package/templates/magazine/article-markets.md +24 -0
- package/templates/magazine/article-tech.mdx +35 -0
- package/templates/magazine/index.data.ts +19 -0
- package/templates/magazine/index.html +14 -0
- package/templates/magazine/index.mdx +13 -0
- package/templates/magazine/package.json +15 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Hono Starter</title>
|
|
7
|
+
<script src="/preactpress-theme.js"></script>
|
|
8
|
+
<meta name="description" content="Fast, lightweight docs and landing pages built on Web Standards.">
|
|
9
|
+
<meta property="og:title" content="Hono Starter">
|
|
10
|
+
<meta property="og:description" content="Fast, lightweight docs and landing pages built on Web Standards.">
|
|
11
|
+
<meta property="og:type" content="website">
|
|
12
|
+
<meta property="og:url" content="/parts/include-body/">
|
|
13
|
+
<meta name="twitter:card" content="summary">
|
|
14
|
+
<meta name="twitter:title" content="Hono Starter">
|
|
15
|
+
<meta name="twitter:description" content="Fast, lightweight docs and landing pages built on Web Standards.">
|
|
16
|
+
<link rel="canonical" href="/parts/include-body/">
|
|
17
|
+
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","headline":"Hono Starter","name":"Hono Starter","description":"Fast, lightweight docs and landing pages built on Web Standards.","url":"/parts/include-body/","dateModified":"2026-06-05T06:17:56.203Z"}</script>
|
|
18
|
+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
19
|
+
<link rel="icon" href="/favicon-32.png" type="image/png" sizes="32x32">
|
|
20
|
+
<link rel="icon" href="/favicon.png" type="image/png" sizes="any">
|
|
21
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
|
22
|
+
<link rel="stylesheet" crossorigin href="/assets/main-DIIN7FO0.css">
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<template id="__PREACTPRESS_PAGE_DATA__">{"kind":"markdown","meta":{},"html":"\u003cp>Line one — skipped.\nLine two — skipped.\nLine three — skipped.\nLine four — skipped.\u003c/p>\n\u003ch2 id=\"included-body\" class=\"pp-heading\">Included body\u003ca class=\"pp-heading-anchor\" href=\"#included-body\" aria-label=\"Link to this section\">#\u003c/a>\u003c/h2>\n\u003cp>This paragraph is pulled in via \u003ccode>&lt;!-- include not found: /home/watzak/master/kamod/preactpress/templates/hono/parts/… --&gt;\u003c/code>.\u003c/p>\n\u003cp>Line seven — skipped.\u003c/p>\n","tags":[],"pageType":"website","headings":[{"id":"included-body","text":"Included body","level":2}],"relativePath":"parts/include-body.md","lastUpdated":"2026-06-05T06:17:56.203Z"}</template>
|
|
26
|
+
<div id="app"><div class="hn-site"><a class="hn-skip" href="#content">Skip to content</a><header class="hn-header"><div class="hn-header-inner"><a class="hn-brand" href="/" aria-label="Hono Starter"><span class="hn-logo" aria-label="Hono Starter"><svg aria-hidden="true" viewBox="0 0 36 36" width="36" height="36"><rect width="36" height="36" rx="11" fill="currentColor" opacity="0.12"></rect><path d="M19.8 5.5c.8 4-2.8 5.9-4.7 8.2-1.8 2.1-2.5 4.9-.3 7 0-2.8 1.7-4.6 4.2-6.7 3.2 3 5.3 5.8 5.3 9.2 0 4.4-3.3 7.3-7.6 7.3-4.8 0-8.3-3.6-8.3-8.4 0-6.1 6.3-9.2 11.4-16.6Z" fill="currentColor"></path><path d="M21.7 25.7c0 2.2-1.7 3.8-3.9 3.8s-4-1.6-4-3.8c0-1.7 1-3.1 3.4-5.2.1 1.7 1.4 2.6 2.4 3.4.8.6 2.1 1 2.1 1.8Z" fill="currentColor" opacity="0.38"></path></svg><span>Hono Starter</span></span></a><div class="hn-header-actions"><nav class="hn-nav" aria-label="Main navigation"><a class href="/guide/what-is-preactpress">Docs</a><a class href="/markdown-examples">Examples</a><a class href="/about">About</a></nav><div class="hn-social" aria-label="Social links"><a href="https://github.com/your-org/your-project" aria-label="GitHub"><span><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path fill="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.404 1.02.005 2.04.137 3 .404 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></span></a></div><details class="hn-locale-switcher"><summary>English</summary><div class="hn-locale-menu"><a href="/parts/include-body" aria-current="page" class="active">English</a><a href="/de/parts/include-body" class>Deutsch</a></div></details><button type="button" class="hn-theme-toggle" aria-label="Toggle theme"><span class="hn-theme-toggle-moon" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor"><path d="M21 14.8A8.5 8.5 0 0 1 9.2 3a7 7 0 1 0 11.8 11.8Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7"></path></svg></span><span class="hn-theme-toggle-sun" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor"><circle cx="12" cy="12" r="3.5" stroke-width="1.7"></circle><path d="M12 2.5v2M12 19.5v2M4.6 4.6 6 6M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4 6 18M18 6l1.4-1.4" stroke-linecap="round" stroke-width="1.7"></path></svg></span></button></div></div></header><div class="hn-doc-shell"><aside class="hn-sidebar" aria-label="Documentation navigation"><div class="hn-sidebar-panel"><label class="hn-search"><span>Search pages</span><input type="search" value placeholder="Filter documentation..."/></label><div class="hn-sidebar-group"><h2>Introduction</h2><ul><li><a class href="/">Welcome</a></li><li><a class href="/guide/what-is-preactpress">What is PreactPress?</a></li><li><a class href="/guide/getting-started">Getting Started</a></li><li><a class href="/guide/routing">Routing</a></li><li><a class href="/guide/deploy">Deploy</a></li><li><a class href="/guide/first-five-minutes">Your first 5 minutes</a></li><li><a class href="/guide/creating-pages">Creating pages</a></li><li><a class href="/guide/commands">Commands</a></li><li><a class href="/guide/configuration">Configuration</a></li></ul></div><div class="hn-sidebar-group"><h2>Reference</h2><ul><li><a class href="/markdown-examples">Markdown examples</a></li><li><a class href="/interactive">Interactive MDX</a></li></ul></div></div></aside><main id="content" class="hn-doc-main"><article class="hn-doc"><h1 class="hn-doc-title">Hono Starter</h1><div class="hn-doc-content"><p>Line one — skipped.
|
|
27
|
+
Line two — skipped.
|
|
28
|
+
Line three — skipped.
|
|
29
|
+
Line four — skipped.</p>
|
|
30
|
+
<h2 id="included-body" class="pp-heading">Included body<a class="pp-heading-anchor" href="#included-body" aria-label="Link to this section">#</a></h2>
|
|
31
|
+
<p>This paragraph is pulled in via <code><!-- include not found: /home/watzak/master/kamod/preactpress/templates/hono/parts/… --></code>.</p>
|
|
32
|
+
<p>Line seven — skipped.</p>
|
|
33
|
+
</div><footer class="hn-doc-meta"><span>Updated Jun 5, 2026</span></footer></article></main><aside class="hn-outline" aria-label="On this page"><div class="hn-outline-panel"><h2>On this page</h2><ul><li class="level-2"><a href="#included-body">Included body</a></li></ul></div></aside></div><footer class="hn-footer">Built with PreactPress.</footer></div></div>
|
|
34
|
+
<script type="module" crossorigin src="/assets/main-Bqi-VFEk.js"></script>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {},
|
|
4
|
+
"html": "<h1 id=\"preactpress-hono-style-starter-site\" class=\"pp-heading\">PreactPress Hono-style starter site<a class=\"pp-heading-anchor\" href=\"#preactpress-hono-style-starter-site\" aria-label=\"Link to this section\">#</a></h1>\n<p>This folder was scaffolded with <code>preactpress init --template hono</code>.</p>\n<p>It combines a hono.dev-inspired landing page with a full documentation starter, MDX examples, and an English/German i18n demo.</p>\n<h2 id=\"commands\" class=\"pp-heading\">Commands<a class=\"pp-heading-anchor\" href=\"#commands\" aria-label=\"Link to this section\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th>Script</th>\n<th>What it does</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pnpm run dev</code></td>\n<td>Start the dev server at <a href=\"http://localhost:5173\" target=\"_blank\" rel=\"noopener noreferrer\">http://localhost:5173</a></td>\n</tr>\n<tr>\n<td><code>pnpm run check</code></td>\n<td>Validate config, routes, and links</td>\n</tr>\n<tr>\n<td><code>pnpm run build</code></td>\n<td>Write static HTML to <code>dist/</code></td>\n</tr>\n<tr>\n<td><code>pnpm run preview</code></td>\n<td>Serve the production build locally</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"where-to-edit\" class=\"pp-heading\">Where to edit<a class=\"pp-heading-anchor\" href=\"#where-to-edit\" aria-label=\"Link to this section\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>*.md</code>, <code>*.mdx</code></td>\n<td>Page content — file path becomes the URL</td>\n</tr>\n<tr>\n<td><code>index.mdx</code>, <code>de/index.mdx</code></td>\n<td>Landing pages with the hero and feature cards</td>\n</tr>\n<tr>\n<td><code>de/*.md</code>, <code>de/*.mdx</code></td>\n<td>German pages for the bundled i18n demo</td>\n</tr>\n<tr>\n<td><code>.preactpress/config.ts</code></td>\n<td>Site title, nav, sidebar, locales, build options</td>\n</tr>\n<tr>\n<td><code>.preactpress/theme/</code></td>\n<td>Custom Hono-style layout, components, and CSS</td>\n</tr>\n<tr>\n<td><code>components/</code></td>\n<td>Preact components for MDX pages</td>\n</tr>\n<tr>\n<td><code>index.html</code></td>\n<td>Vite entry (rarely edited)</td>\n</tr>\n</tbody>\n</table>\n<p>Start with <a href=\"/guide/first-five-minutes\">Your first 5 minutes</a> in the local site, or read the full PreactPress README in the npm package / repository.</p>\n<p>This starter includes English pages at the root and German pages under <code>/de/</code>. Remove the <code>de/</code> folder and <code>locales</code> config if you want a single-language site.</p>\n<h2 id=\"deploy\" class=\"pp-heading\">Deploy<a class=\"pp-heading-anchor\" href=\"#deploy\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> check</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span></span></code></pre><p>Upload <strong>only</strong> <code>dist/</code> to Netlify, Vercel, Cloudflare Pages, GitHub Pages, or any static host. No Node server is required in production.</p>\n<p>Before the first production build, set <code>site.url</code> (and <code>site.base</code> for subpath hosting) in <code>.preactpress/config.ts</code>.</p>\n",
|
|
5
|
+
"tags": [],
|
|
6
|
+
"pageType": "website",
|
|
7
|
+
"headings": [
|
|
8
|
+
{
|
|
9
|
+
"id": "commands",
|
|
10
|
+
"text": "Commands",
|
|
11
|
+
"level": 2
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "where-to-edit",
|
|
15
|
+
"text": "Where to edit",
|
|
16
|
+
"level": 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "deploy",
|
|
20
|
+
"text": "Deploy",
|
|
21
|
+
"level": 2
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"relativePath": "README.md",
|
|
25
|
+
"lastUpdated": "2026-06-05T07:27:55.507Z"
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "About",
|
|
5
|
+
"description": "About this site"
|
|
6
|
+
},
|
|
7
|
+
"html": "<h1 id=\"about-us\" class=\"pp-heading\">About us<a class=\"pp-heading-anchor\" href=\"#about-us\" aria-label=\"Link to this section\">#</a></h1>\n<p>Your content here.</p>\n<p>This page was added as part of the <a href=\"/guide/first-five-minutes\">Your first 5 minutes</a> tutorial. Replace this text with your own copy — team bio, project mission, contact details, or anything else that belongs on an About page.</p>\n",
|
|
8
|
+
"title": "About",
|
|
9
|
+
"description": "About this site",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [],
|
|
13
|
+
"relativePath": "about.md",
|
|
14
|
+
"lastUpdated": "2026-06-04T07:28:10.784Z"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "Über uns",
|
|
5
|
+
"description": "Über diese Website"
|
|
6
|
+
},
|
|
7
|
+
"html": "<h1 id=\"ber-uns\" class=\"pp-heading\">Über uns<a class=\"pp-heading-anchor\" href=\"#ber-uns\" aria-label=\"Link to this section\">#</a></h1>\n<p>Hier steht dein Inhalt.</p>\n<p>Diese Seite wurde im Tutorial <a href=\"/de/guide/first-five-minutes\">Die ersten 5 Minuten</a> hinzugefügt. Ersetze diesen Text durch deine eigenen Inhalte — Teamvorstellung, Projektziel, Kontaktinformationen oder alles, was auf eine Über-uns-Seite gehört.</p>\n",
|
|
8
|
+
"title": "Über uns",
|
|
9
|
+
"description": "Über diese Website",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [],
|
|
13
|
+
"relativePath": "de/about.md",
|
|
14
|
+
"lastUpdated": "2026-06-04T07:28:10.783Z"
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "Befehle",
|
|
5
|
+
"description": "PreactPress-CLI für Entwicklung und Produktions-Builds"
|
|
6
|
+
},
|
|
7
|
+
"html": "<p>Die PreactPress-CLI wird im Site-Root ausgeführt (Ordner mit <code>.preactpress/config.ts</code>).</p>\n<h2 id=\"entwicklung\" class=\"pp-heading\">Entwicklung<a class=\"pp-heading-anchor\" href=\"#entwicklung\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dev</span></span></code></pre><p>Startet Vite mit SSR, Hot Reload und dem gleichen HTML-Head wie in Production.</p>\n<h2 id=\"production\" class=\"pp-heading\">Production<a class=\"pp-heading-anchor\" href=\"#production\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preview</span></span></code></pre><p><code>build</code> schreibt statisches HTML nach <code>outDir</code> (Standard: <code>dist/</code>). <code>preview</code> dient nur zur lokalen Vorschau.</p>\n<h2 id=\"projekt-anlegen\" class=\"pp-heading\">Projekt anlegen<a class=\"pp-heading-anchor\" href=\"#projekt-anlegen\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> init</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> init</span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\"> --template</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> docs</span></span></code></pre><p>Das <code>docs</code>-Template enthält diese Anleitung, i18n-Beispiele und Referenzseiten.</p>\n<h2 id=\"validierung\" class=\"pp-heading\">Validierung<a class=\"pp-heading-anchor\" href=\"#validierung\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> check</span></span></code></pre><p>Prüft Config, Routen-Kollisionen, Nav-/Sidebar-Links, interne Markdown-Links und Draft-Seiten.</p>\n<div class=\"pp-container pp-container-tip\"><p class=\"pp-container-title\">TIP</p><div class=\"pp-container-body\"><p><code>check</code> in CI einbinden, damit kaputte Sidebar-Links vor dem Merge auffallen.</p>\n</div></div>",
|
|
8
|
+
"title": "Befehle",
|
|
9
|
+
"description": "PreactPress-CLI für Entwicklung und Produktions-Builds",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [
|
|
13
|
+
{
|
|
14
|
+
"id": "entwicklung",
|
|
15
|
+
"text": "Entwicklung",
|
|
16
|
+
"level": 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "production",
|
|
20
|
+
"text": "Production",
|
|
21
|
+
"level": 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "projekt-anlegen",
|
|
25
|
+
"text": "Projekt anlegen",
|
|
26
|
+
"level": 2
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "validierung",
|
|
30
|
+
"text": "Validierung",
|
|
31
|
+
"level": 2
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"relativePath": "de/guide/commands.md",
|
|
35
|
+
"lastUpdated": "2026-06-05T05:42:40.467Z"
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "Konfiguration",
|
|
5
|
+
"description": "Site-Config, Theme-Optionen und häufige Frontmatter-Felder"
|
|
6
|
+
},
|
|
7
|
+
"html": "<p>Die Konfiguration liegt in <code>.preactpress/config.ts</code> im Site-Root.</p>\n<h2 id=\"site-metadaten\" class=\"pp-heading\">Site-Metadaten<a class=\"pp-heading-anchor\" href=\"#site-metadaten\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> title: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Meine Docs'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> description: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Kurzbeschreibung für SEO'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> base: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> url: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'https://example.com'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> titleTemplate: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">':title | :siteTitle'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p><code>site.url</code> vor dem Go-Live setzen — für Canonical-URLs, <code>sitemap.xml</code>, Open Graph und <code>hreflang</code>.</p>\n<h2 id=\"inhaltsverzeichnis\" class=\"pp-heading\">Inhaltsverzeichnis<a class=\"pp-heading-anchor\" href=\"#inhaltsverzeichnis\" aria-label=\"Link to this section\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th>Option</th>\n<th>Zweck</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>srcDir</code></td>\n<td>Ordner mit <code>.md</code> / <code>.mdx</code> (Standard <code>.</code>)</td>\n</tr>\n<tr>\n<td><code>srcExclude</code></td>\n<td>Glob-Muster für Nicht-Seiten, z. B. <code>['**/README.md']</code></td>\n</tr>\n<tr>\n<td><code>lastUpdatedGit</code></td>\n<td>Git-Commit-Zeit für „Zuletzt aktualisiert“ (Fallback: mtime)</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"theme-ohne-eigenen-code\" class=\"pp-heading\">Theme ohne eigenen Code<a class=\"pp-heading-anchor\" href=\"#theme-ohne-eigenen-code\" aria-label=\"Link to this section\">#</a></h2>\n<p><code>themeConfig</code> steuert das Standard-Layout:</p>\n<ul>\n<li><code>nav</code> — Kopfzeilen-Links; verschachtelte Dropdowns über <code>items</code></li>\n<li><code>sidebar</code> — flaches Array <strong>oder</strong> Pfad-Map; Gruppen und Einträge unterstützen <code>collapsed</code> und verschachtelte <code>items</code></li>\n<li><code>outline</code>, <code>search</code>, <code>socialLinks</code>, <code>footer</code>, <code>lastUpdated</code>, <code>editLink</code>, <code>logo</code>, <code>labels</code></li>\n<li><code>logo</code> — String-URL oder <code>{ light, dark }</code> für theme-aware Bilder</li>\n<li><code>search</code> — <code>true</code> oder <code>{ provider: 'local' }</code> für Sidebar-Suche; <code>{ provider: 'algolia', options }</code> für Algolia DocSearch in der Nav-Leiste</li>\n<li><code>socialLinks</code> — <code>{ icon, link, ariaLabel? }[]</code> mit eingebauten Icons (<code>github</code>, <code>discord</code>, <code>x</code>, …) oder eigenem <code>{ svg }</code></li>\n</ul>\n<p>Locale-Overrides unter <code>locales.<key>.themeConfig</code>.</p>\n<h2 id=\"globale-head-tags\" class=\"pp-heading\">Globale Head-Tags<a class=\"pp-heading-anchor\" href=\"#globale-head-tags\" aria-label=\"Link to this section\">#</a></h2>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">head</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> [</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'meta'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, { name: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'theme-color'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, content: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'#0f766e'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }]</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">]</span></span></code></pre><h2 id=\"frontmatter-pro-seite\" class=\"pp-heading\">Frontmatter pro Seite<a class=\"pp-heading-anchor\" href=\"#frontmatter-pro-seite\" aria-label=\"Link to this section\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th>Feld</th>\n<th>Zweck</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>title</code> / <code>description</code></td>\n<td>Seitentitel und SEO-Text</td>\n</tr>\n<tr>\n<td><code>titleTemplate</code></td>\n<td>Site-Template überschreiben; <code>false</code> = nur Seitentitel</td>\n</tr>\n<tr>\n<td><code>head</code></td>\n<td>Zusätzliche <code><meta></code> / <code><link></code> / <code><script></code> nur für diese Seite</td>\n</tr>\n<tr>\n<td><code>draft: true</code></td>\n<td>Aus Routen, Suche und Sitemap ausgeschlossen</td>\n</tr>\n</tbody>\n</table>\n<div class=\"pp-container pp-container-warning\"><p class=\"pp-container-title\">WARNING</p><div class=\"pp-container-body\"><p><code>markdown.html</code> nur für vertrauenswürdige Inhalte aktivieren — erlaubt rohes HTML in Markdown.</p>\n</div></div>",
|
|
8
|
+
"title": "Konfiguration",
|
|
9
|
+
"description": "Site-Config, Theme-Optionen und häufige Frontmatter-Felder",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [
|
|
13
|
+
{
|
|
14
|
+
"id": "site-metadaten",
|
|
15
|
+
"text": "Site-Metadaten",
|
|
16
|
+
"level": 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "inhaltsverzeichnis",
|
|
20
|
+
"text": "Inhaltsverzeichnis",
|
|
21
|
+
"level": 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "theme-ohne-eigenen-code",
|
|
25
|
+
"text": "Theme ohne eigenen Code",
|
|
26
|
+
"level": 2
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "globale-head-tags",
|
|
30
|
+
"text": "Globale Head-Tags",
|
|
31
|
+
"level": 2
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "frontmatter-pro-seite",
|
|
35
|
+
"text": "Frontmatter pro Seite",
|
|
36
|
+
"level": 2
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"relativePath": "de/guide/configuration.md",
|
|
40
|
+
"lastUpdated": "2026-06-05T06:34:21.154Z"
|
|
41
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "Deploy",
|
|
5
|
+
"description": "Eine PreactPress-Site bauen und veröffentlichen"
|
|
6
|
+
},
|
|
7
|
+
"html": "<h1 id=\"deploy\" class=\"pp-heading\">Deploy<a class=\"pp-heading-anchor\" href=\"#deploy\" aria-label=\"Link to this section\">#</a></h1>\n<p>PreactPress erzeugt statische Dateien. Produktion bedeutet: Build ausführen und das Ausgabeverzeichnis, normalerweise <code>dist/</code>, auf einen Static Host hochladen.</p>\n<p>In Produktion ist kein Node-Server nötig.</p>\n<h2 id=\"lokal-bauen-und-testen\" class=\"pp-heading\">Lokal bauen und testen<a class=\"pp-heading-anchor\" href=\"#lokal-bauen-und-testen\" aria-label=\"Link to this section\">#</a></h2>\n<p>Führe Release-Checks und Produktionsbuild im Site-Verzeichnis aus:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> check</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span></span></code></pre><p>Sieh dir den Build lokal an:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preview</span></span></code></pre><p>Der Preview-Server stellt den gebauten Output standardmäßig unter <strong><a href=\"http://localhost:4173\" target=\"_blank\" rel=\"noopener noreferrer\">http://localhost:4173</a></strong> bereit.</p>\n<h2 id=\"produktionsmetadaten-konfigurieren\" class=\"pp-heading\">Produktionsmetadaten konfigurieren<a class=\"pp-heading-anchor\" href=\"#produktionsmetadaten-konfigurieren\" aria-label=\"Link to this section\">#</a></h2>\n<p>Setze <code>site.url</code> vor der Veröffentlichung. PreactPress nutzt diese URL für Canonical URLs, Open-Graph-Metadaten, <code>sitemap.xml</code> und <code>robots.txt</code>.</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> title: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Meine Site'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> description: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Kurze Beschreibung für Suche und Social Previews'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> url: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'https://example.com'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> base: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> build: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> sitemap: </span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">true</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> robots: </span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">true</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><h2 id=\"public-base-path\" class=\"pp-heading\">Public Base Path<a class=\"pp-heading-anchor\" href=\"#public-base-path\" aria-label=\"Link to this section\">#</a></h2>\n<p>Standardmäßig nimmt PreactPress an, dass deine Site am Domain-Root ausgeliefert wird:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span>https://example.com/</span></span></code></pre><p>Wenn die Site unter einem Unterpfad liegt, setze <code>site.base</code>:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> url: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'https://user.github.io'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> base: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/my-repo/'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p>Du kannst den Base Path auch nur für einen einzelnen Build überschreiben:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\"> --base</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> /my-repo/</span></span></code></pre><h2 id=\"build-output\" class=\"pp-heading\">Build-Output<a class=\"pp-heading-anchor\" href=\"#build-output\" aria-label=\"Link to this section\">#</a></h2>\n<p>Das Standard-Ausgabeverzeichnis ist <code>dist/</code>:</p>\n<table>\n<thead>\n<tr>\n<th>Ausgabe</th>\n<th>Beschreibung</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>index.html</code>, <code>*/index.html</code></td>\n<td>Statisches HTML für jede Route</td>\n</tr>\n<tr>\n<td><code>assets/*</code></td>\n<td>Gehashtes JavaScript und CSS von Vite</td>\n</tr>\n<tr>\n<td><code>404.html</code></td>\n<td>Fehlerseite</td>\n</tr>\n<tr>\n<td><code>preactpress-search.json</code></td>\n<td>Suchindex für das Standard-Theme</td>\n</tr>\n<tr>\n<td><code>preactpress-content/*.json</code></td>\n<td>Lazy geladene Markdown-Payloads für Client-Navigation</td>\n</tr>\n<tr>\n<td><code>sitemap.xml</code>, <code>robots.txt</code></td>\n<td>Erzeugt, wenn <code>site.url</code> und Build-Flags gesetzt sind</td>\n</tr>\n<tr>\n<td><code>feed.xml</code></td>\n<td>Erzeugt, wenn <code>build.feed</code> konfiguriert ist</td>\n</tr>\n</tbody>\n</table>\n<p>Deploye nur das Ausgabeverzeichnis. Deploye nicht <code>node_modules</code>, <code>.preactpress</code> oder den Build-Cache.</p>\n<h2 id=\"plattform-einstellungen\" class=\"pp-heading\">Plattform-Einstellungen<a class=\"pp-heading-anchor\" href=\"#plattform-einstellungen\" aria-label=\"Link to this section\">#</a></h2>\n<p>Für die meisten Static Hosts reichen diese Einstellungen:</p>\n<table>\n<thead>\n<tr>\n<th>Host</th>\n<th>Build-Befehl</th>\n<th>Output-Verzeichnis</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Netlify</td>\n<td><code>pnpm run build</code></td>\n<td><code>dist</code></td>\n</tr>\n<tr>\n<td>Vercel</td>\n<td><code>pnpm run build</code></td>\n<td><code>dist</code></td>\n</tr>\n<tr>\n<td>Cloudflare Pages</td>\n<td><code>pnpm run build</code></td>\n<td><code>dist</code></td>\n</tr>\n<tr>\n<td>Render Static Site</td>\n<td><code>pnpm run build</code></td>\n<td><code>dist</code></td>\n</tr>\n</tbody>\n</table>\n<p>Install-Befehl:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> install</span></span></code></pre><p>Node-Version: <strong>20 oder höher</strong>.</p>\n<h2 id=\"github-pages\" class=\"pp-heading\">GitHub Pages<a class=\"pp-heading-anchor\" href=\"#github-pages\" aria-label=\"Link to this section\">#</a></h2>\n<p>Für eine Projektseite unter <code>https://user.github.io/my-repo/</code> konfigurierst du:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> url: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'https://user.github.io'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> base: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/my-repo/'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p>Danach deployest du das Verzeichnis <code>dist/</code>.</p>\n<p>Ein minimales GitHub-Actions-Workflow kann so aussehen:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\">name</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">Deploy PreactPress site to Pages</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">on</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> push</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> branches</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: [</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">main</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">]</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> workflow_dispatch</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\">permissions</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> contents</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">read</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> pages</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">write</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> id-token</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">write</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\">concurrency</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> group</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">pages</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> cancel-in-progress</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">false</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\">jobs</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> build</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> runs-on</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">ubuntu-latest</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> steps</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">uses</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">actions/checkout@v4</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">uses</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">pnpm/action-setup@v4</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">uses</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">actions/setup-node@v4</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> with</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> node-version</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">22</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> cache</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">pnpm</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">uses</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">actions/configure-pages@v5</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">run</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">pnpm install</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">run</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">pnpm run check</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">run</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">pnpm run build</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">uses</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">actions/upload-pages-artifact@v3</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> with</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> path</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">dist</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> deploy</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> needs</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">build</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> runs-on</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">ubuntu-latest</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> environment</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> name</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">github-pages</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> url</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">${{ steps.deployment.outputs.page_url }}</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> steps</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">:</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> - </span><span style=\"color:#22863A;--shiki-dark:#85E89D\">id</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">deployment</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\"> uses</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">actions/deploy-pages@v4</span></span></code></pre><p>Setze in den Repository-Einstellungen die Pages-Quelle auf <strong>GitHub Actions</strong>.</p>\n<h2 id=\"monorepos\" class=\"pp-heading\">Monorepos<a class=\"pp-heading-anchor\" href=\"#monorepos\" aria-label=\"Link to this section\">#</a></h2>\n<p>In einem Monorepo führst du die Befehle aus dem Site-Paket aus:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">cd</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> packages/docs</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> check</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span></span></code></pre><p>Oder du übergibst der CLI den Site-Pfad:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> ./packages/docs</span></span></code></pre><h2 id=\"cache-headers\" class=\"pp-heading\">Cache-Headers<a class=\"pp-heading-anchor\" href=\"#cache-headers\" aria-label=\"Link to this section\">#</a></h2>\n<p>Dateien unter <code>assets/</code> enthalten Content-Hashes in ihren Dateinamen. Wenn dein Host HTTP-Header setzen kann, cache diese Dateien aggressiv:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span>Cache-Control: public, max-age=31536000, immutable</span></span></code></pre><p>Wende immutable Caching nicht auf HTML-Dateien oder JSON-Payloads wie <code>preactpress-search.json</code> und <code>preactpress-content/*.json</code> an, weil diese URLs bei Inhaltsänderungen gleich bleiben können.</p>\n",
|
|
8
|
+
"title": "Deploy",
|
|
9
|
+
"description": "Eine PreactPress-Site bauen und veröffentlichen",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [
|
|
13
|
+
{
|
|
14
|
+
"id": "lokal-bauen-und-testen",
|
|
15
|
+
"text": "Lokal bauen und testen",
|
|
16
|
+
"level": 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "produktionsmetadaten-konfigurieren",
|
|
20
|
+
"text": "Produktionsmetadaten konfigurieren",
|
|
21
|
+
"level": 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "public-base-path",
|
|
25
|
+
"text": "Public Base Path",
|
|
26
|
+
"level": 2
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "build-output",
|
|
30
|
+
"text": "Build-Output",
|
|
31
|
+
"level": 2
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "plattform-einstellungen",
|
|
35
|
+
"text": "Plattform-Einstellungen",
|
|
36
|
+
"level": 2
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "github-pages",
|
|
40
|
+
"text": "GitHub Pages",
|
|
41
|
+
"level": 2
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "monorepos",
|
|
45
|
+
"text": "Monorepos",
|
|
46
|
+
"level": 2
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "cache-headers",
|
|
50
|
+
"text": "Cache-Headers",
|
|
51
|
+
"level": 2
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"relativePath": "de/guide/deploy.md",
|
|
55
|
+
"lastUpdated": "2026-06-04T07:28:10.781Z"
|
|
56
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "Die ersten 5 Minuten",
|
|
5
|
+
"description": "Seitentitel ändern, eine Seite hinzufügen und die Navigation aktualisieren"
|
|
6
|
+
},
|
|
7
|
+
"html": "<h1 id=\"die-ersten-5-minuten\" class=\"pp-heading\">Die ersten 5 Minuten<a class=\"pp-heading-anchor\" href=\"#die-ersten-5-minuten\" aria-label=\"Link to this section\">#</a></h1>\n<p>Dieses praktische Tutorial folgt der Setup-Übersicht in <a href=\"/de/guide/getting-started\">Getting Started</a>. Folge den Schritten in <strong>deinem</strong> Projekt — diese Website zeigt das Ergebnis.</p>\n<h2 id=\"1-seitentitel-ndern\" class=\"pp-heading\">1. Seitentitel ändern<a class=\"pp-heading-anchor\" href=\"#1-seitentitel-ndern\" aria-label=\"Link to this section\">#</a></h2>\n<p>Bearbeite <code>.preactpress/config.ts</code>:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> title: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Meine Doku'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> description: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Kurze Beschreibung für Suche und Social Previews'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p>Speichere die Datei. Der Dev-Server übernimmt Config-Änderungen beim nächsten Request.</p>\n<h2 id=\"2-eine-seite-hinzuf-gen\" class=\"pp-heading\">2. Eine Seite hinzufügen<a class=\"pp-heading-anchor\" href=\"#2-eine-seite-hinzuf-gen\" aria-label=\"Link to this section\">#</a></h2>\n<p>Erstelle <code>about.md</code>:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">---</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\">title</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">Über uns</span></span>\n<span class=\"line\"><span style=\"color:#22863A;--shiki-dark:#85E89D\">description</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">Über diese Website</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">---</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold\"># Über uns</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">Hier steht dein Inhalt.</span></span></code></pre><p>PreactPress stellt die Seite unter <code>/about</code> bereit. Jede <code>.md</code>- oder <code>.mdx</code>-Datei unter <code>srcDir</code> (standardmäßig: Projektroot) wird automatisch zu einer URL.</p>\n<p>Beispiel: <code>news/2025/intro.md</code> → <code>/news/2025/intro</code>.</p>\n<p>Dieser Starter enthält bereits <a href=\"/de/about\">Über uns</a>, damit du die fertige Seite sehen kannst.</p>\n<h2 id=\"3-zur-navigation-hinzuf-gen\" class=\"pp-heading\">3. Zur Navigation hinzufügen<a class=\"pp-heading-anchor\" href=\"#3-zur-navigation-hinzuf-gen\" aria-label=\"Link to this section\">#</a></h2>\n<p>In <code>.preactpress/config.ts</code>:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: { title: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Meine Doku'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> themeConfig: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> nav: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Start'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Über uns'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/about'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ],</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> sidebar: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Anleitung'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> items: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Start'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Über uns'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/about'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ]</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ]</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p>Speichern — der Dev-Server lädt die Änderung automatisch.</p>\n<h2 id=\"n-chste-schritte\" class=\"pp-heading\">Nächste Schritte<a class=\"pp-heading-anchor\" href=\"#n-chste-schritte\" aria-label=\"Link to this section\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th>Befehl</th>\n<th>Zweck</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pnpm run dev</code></td>\n<td>Dev-Server mit SSR und Hot Reload</td>\n</tr>\n<tr>\n<td><code>pnpm run check</code></td>\n<td>Config, Links und Routen prüfen</td>\n</tr>\n<tr>\n<td><code>pnpm run build</code></td>\n<td>Statischer Produktionsbuild → <code>dist/</code></td>\n</tr>\n<tr>\n<td><code>pnpm run preview</code></td>\n<td>Lokale Vorschau des Builds</td>\n</tr>\n</tbody>\n</table>\n<p>Setze vor dem Deployment <code>site.url</code> in der Config, damit Canonical URLs, Open Graph Tags und <code>sitemap.xml</code> erzeugt werden. Lies danach <a href=\"/de/guide/routing\">Routing</a>, um dateibasierte Routen zu verstehen, und <a href=\"/de/guide/deploy\">Deploy</a> für die Produktionsschritte.</p>\n",
|
|
8
|
+
"title": "Die ersten 5 Minuten",
|
|
9
|
+
"description": "Seitentitel ändern, eine Seite hinzufügen und die Navigation aktualisieren",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [
|
|
13
|
+
{
|
|
14
|
+
"id": "1-seitentitel-ndern",
|
|
15
|
+
"text": "1. Seitentitel ändern",
|
|
16
|
+
"level": 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "2-eine-seite-hinzuf-gen",
|
|
20
|
+
"text": "2. Eine Seite hinzufügen",
|
|
21
|
+
"level": 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "3-zur-navigation-hinzuf-gen",
|
|
25
|
+
"text": "3. Zur Navigation hinzufügen",
|
|
26
|
+
"level": 2
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "n-chste-schritte",
|
|
30
|
+
"text": "Nächste Schritte",
|
|
31
|
+
"level": 2
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"relativePath": "de/guide/first-five-minutes.md",
|
|
35
|
+
"lastUpdated": "2026-06-04T07:28:10.782Z"
|
|
36
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "markdown",
|
|
3
|
+
"meta": {
|
|
4
|
+
"title": "Getting Started",
|
|
5
|
+
"description": "PreactPress installieren und eine neue Dokumentationsseite starten"
|
|
6
|
+
},
|
|
7
|
+
"html": "<h1 id=\"getting-started\" class=\"pp-heading\">Getting Started<a class=\"pp-heading-anchor\" href=\"#getting-started\" aria-label=\"Link to this section\">#</a></h1>\n<p>Diese Anleitung zeigt, wie du eine PreactPress-Site erstellst, die generierten Dateien verstehst und den Dev-Server startest.</p>\n<h2 id=\"voraussetzungen\" class=\"pp-heading\">Voraussetzungen<a class=\"pp-heading-anchor\" href=\"#voraussetzungen\" aria-label=\"Link to this section\">#</a></h2>\n<p>Du brauchst:</p>\n<table>\n<thead>\n<tr>\n<th>Voraussetzung</th>\n<th>Version</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Node.js</td>\n<td>20 oder höher</td>\n</tr>\n<tr>\n<td>Package Manager</td>\n<td>pnpm empfohlen; npm, yarn und bun funktionieren ebenfalls</td>\n</tr>\n<tr>\n<td>Editor</td>\n<td>Jeder Editor mit Markdown- und TypeScript-Unterstützung</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"site-erstellen\" class=\"pp-heading\">Site erstellen<a class=\"pp-heading-anchor\" href=\"#site-erstellen\" aria-label=\"Link to this section\">#</a></h2>\n<p>Starte in einem leeren Ordner:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">mkdir</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> my-site</span></span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">cd</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> my-site</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dlx</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> init</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> install</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dev</span></span></code></pre><p>Mit npm:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">mkdir</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> my-site</span></span>\n<span class=\"line\"><span style=\"color:#005CC5;--shiki-dark:#79B8FF\">cd</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> my-site</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">npx</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> init</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">npm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> install</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">npm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> run</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dev</span></span></code></pre><p>Öffne <strong><a href=\"http://localhost:5173\" target=\"_blank\" rel=\"noopener noreferrer\">http://localhost:5173</a></strong>, um die Starter-Site zu sehen.</p>\n<blockquote>\n<p><strong>Hinweis</strong>\n<code>preactpress init</code> kopiert das eingebaute Starter-Template und schreibt <code>preactpress</code> in <code>devDependencies</code>. Du musst PreactPress vor dem Initialisieren nicht separat installieren.</p>\n</blockquote>\n<h2 id=\"dateistruktur\" class=\"pp-heading\">Dateistruktur<a class=\"pp-heading-anchor\" href=\"#dateistruktur\" aria-label=\"Link to this section\">#</a></h2>\n<p>Nach der Initialisierung sieht das Projekt so aus:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span>my-site/</span></span>\n<span class=\"line\"><span>├── README.md</span></span>\n<span class=\"line\"><span>├── index.html</span></span>\n<span class=\"line\"><span>├── index.md</span></span>\n<span class=\"line\"><span>├── about.md</span></span>\n<span class=\"line\"><span>├── guide/</span></span>\n<span class=\"line\"><span>│ └── first-five-minutes.md</span></span>\n<span class=\"line\"><span>├── markdown-examples.md</span></span>\n<span class=\"line\"><span>├── interactive.mdx</span></span>\n<span class=\"line\"><span>├── components/</span></span>\n<span class=\"line\"><span>│ └── Counter.tsx</span></span>\n<span class=\"line\"><span>└── .preactpress/</span></span>\n<span class=\"line\"><span> └── config.ts</span></span></code></pre><p>Der Ordner <code>.preactpress</code> enthält die Site-Konfiguration. Markdown- und MDX-Dateien außerhalb von <code>.preactpress</code> sind Quelldateien und werden zu Routen.</p>\n<h2 id=\"die-config-datei\" class=\"pp-heading\">Die Config-Datei<a class=\"pp-heading-anchor\" href=\"#die-config-datei\" aria-label=\"Link to this section\">#</a></h2>\n<p>Die Starter-Config liegt unter <code>.preactpress/config.ts</code>:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> site: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> title: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Meine Doku'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> description: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Kurze Beschreibung für Suche und Social Previews'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> themeConfig: {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> nav: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Start'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/de'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Anleitung'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/de/guide/what-is-preactpress'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ],</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> sidebar: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Einführung'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> items: [</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Was ist PreactPress?'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/de/guide/what-is-preactpress'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> { text: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'Getting Started'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">, link: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'/de/guide/getting-started'</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ]</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> ]</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p>Nutze <code>site</code> für globale Metadaten und <code>themeConfig</code> für Optionen des Standard-Themes wie Logo (<code>logo: '/logo.svg'</code>), Navigation, Sidebar, Suche, Outline, Footer und Edit-Links.</p>\n<h2 id=\"quelldateien\" class=\"pp-heading\">Quelldateien<a class=\"pp-heading-anchor\" href=\"#quelldateien\" aria-label=\"Link to this section\">#</a></h2>\n<p>PreactPress nutzt dateibasiertes Routing. Standardmäßig ist der Projektroot auch das Quellverzeichnis:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span>index.md -> /</span></span>\n<span class=\"line\"><span>about.md -> /about</span></span>\n<span class=\"line\"><span>guide/getting-started.md -> /guide/getting-started</span></span>\n<span class=\"line\"><span>interactive.mdx -> /interactive</span></span></code></pre><p>Mit <code>srcDir</code> kannst du das Quellverzeichnis ändern:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49;--shiki-dark:#F97583\">export</span><span style=\"color:#D73A49;--shiki-dark:#F97583\"> default</span><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\"> srcDir: </span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\">'docs'</span></span>\n<span class=\"line\"><span style=\"color:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre><p>Mit dieser Config liest PreactPress Seiten aus <code>docs/</code>, während <code>.preactpress/config.ts</code> weiterhin zum Projektroot gehört.</p>\n<h2 id=\"befehle\" class=\"pp-heading\">Befehle<a class=\"pp-heading-anchor\" href=\"#befehle\" aria-label=\"Link to this section\">#</a></h2>\n<p>Der Starter enthält npm-Scripts:</p>\n<table>\n<thead>\n<tr>\n<th>Befehl</th>\n<th>Zweck</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pnpm run dev</code></td>\n<td>Dev-Server mit SSR und Hot Reload starten</td>\n</tr>\n<tr>\n<td><code>pnpm run check</code></td>\n<td>Config, Routen und Links validieren</td>\n</tr>\n<tr>\n<td><code>pnpm run build</code></td>\n<td>Statischen Produktionsbuild nach <code>dist/</code> schreiben</td>\n</tr>\n<tr>\n<td><code>pnpm run preview</code></td>\n<td>Produktionsbuild lokal ansehen</td>\n</tr>\n</tbody>\n</table>\n<p>Du kannst die CLI auch direkt aufrufen:</p>\n<pre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> dev</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> check</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> build</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1;--shiki-dark:#B392F0\">pnpm</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> exec</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preactpress</span><span style=\"color:#032F62;--shiki-dark:#9ECBFF\"> preview</span></span></code></pre><h2 id=\"was-kommt-als-n-chstes\" class=\"pp-heading\">Was kommt als Nächstes?<a class=\"pp-heading-anchor\" href=\"#was-kommt-als-n-chstes\" aria-label=\"Link to this section\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th>Seite</th>\n<th>Warum</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"/de/guide/first-five-minutes\">Die ersten 5 Minuten</a></td>\n<td>Titel ändern, Seite anlegen und Navigation verdrahten</td>\n</tr>\n<tr>\n<td><a href=\"/de/guide/routing\">Routing</a></td>\n<td>Lernen, wie Markdown-Dateien zu URLs werden</td>\n</tr>\n<tr>\n<td><a href=\"/de/guide/deploy\">Deploy</a></td>\n<td>Das erzeugte <code>dist/</code>-Verzeichnis bauen und veröffentlichen</td>\n</tr>\n</tbody>\n</table>\n",
|
|
8
|
+
"title": "Getting Started",
|
|
9
|
+
"description": "PreactPress installieren und eine neue Dokumentationsseite starten",
|
|
10
|
+
"tags": [],
|
|
11
|
+
"pageType": "website",
|
|
12
|
+
"headings": [
|
|
13
|
+
{
|
|
14
|
+
"id": "voraussetzungen",
|
|
15
|
+
"text": "Voraussetzungen",
|
|
16
|
+
"level": 2
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "site-erstellen",
|
|
20
|
+
"text": "Site erstellen",
|
|
21
|
+
"level": 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "dateistruktur",
|
|
25
|
+
"text": "Dateistruktur",
|
|
26
|
+
"level": 2
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "die-config-datei",
|
|
30
|
+
"text": "Die Config-Datei",
|
|
31
|
+
"level": 2
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "quelldateien",
|
|
35
|
+
"text": "Quelldateien",
|
|
36
|
+
"level": 2
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "befehle",
|
|
40
|
+
"text": "Befehle",
|
|
41
|
+
"level": 2
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "was-kommt-als-n-chstes",
|
|
45
|
+
"text": "Was kommt als Nächstes?",
|
|
46
|
+
"level": 2
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"relativePath": "de/guide/getting-started.md",
|
|
50
|
+
"lastUpdated": "2026-06-04T07:28:10.782Z"
|
|
51
|
+
}
|