mordoc 0.1.13 → 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 +7 -0
- package/bin/cli.js +24 -71
- package/dist/cli/asset-rewrite.d.ts +40 -0
- package/dist/cli/asset-rewrite.d.ts.map +1 -0
- package/dist/cli/asset-rewrite.js +67 -0
- package/dist/cli/asset-rewrite.js.map +1 -0
- package/dist/cli/build.d.ts +45 -15
- package/dist/cli/build.d.ts.map +1 -1
- package/dist/cli/build.js +186 -101
- package/dist/cli/build.js.map +1 -1
- package/dist/cli/dev.d.ts +26 -14
- package/dist/cli/dev.d.ts.map +1 -1
- package/dist/cli/dev.js +116 -159
- package/dist/cli/dev.js.map +1 -1
- package/dist/cli/pagefind-indexer.d.ts +15 -0
- package/dist/cli/pagefind-indexer.d.ts.map +1 -0
- package/dist/cli/pagefind-indexer.js +68 -0
- package/dist/cli/pagefind-indexer.js.map +1 -0
- package/dist/cli/paths.d.ts +26 -0
- package/dist/cli/paths.d.ts.map +1 -0
- package/dist/cli/paths.js +32 -0
- package/dist/cli/paths.js.map +1 -0
- package/dist/cli/ssg-runner.d.ts +58 -0
- package/dist/cli/ssg-runner.d.ts.map +1 -0
- package/dist/cli/ssg-runner.js +126 -0
- package/dist/cli/ssg-runner.js.map +1 -0
- package/dist/config/assets-loader.d.ts +11 -0
- package/dist/config/assets-loader.d.ts.map +1 -0
- package/dist/config/assets-loader.js +46 -0
- package/dist/config/assets-loader.js.map +1 -0
- package/dist/config/language-loader.d.ts +11 -0
- package/dist/config/language-loader.d.ts.map +1 -0
- package/dist/config/language-loader.js +61 -0
- package/dist/config/language-loader.js.map +1 -0
- package/dist/config/language.d.ts +11 -0
- package/dist/config/language.d.ts.map +1 -0
- package/dist/config/language.js +61 -0
- package/dist/config/language.js.map +1 -0
- package/dist/config/sidenav-loader.d.ts +14 -0
- package/dist/config/sidenav-loader.d.ts.map +1 -0
- package/dist/config/sidenav-loader.js +78 -0
- package/dist/config/sidenav-loader.js.map +1 -0
- package/dist/config/site-loader.d.ts +11 -0
- package/dist/config/site-loader.d.ts.map +1 -0
- package/dist/config/site-loader.js +72 -0
- package/dist/config/site-loader.js.map +1 -0
- package/dist/config/site.d.ts +11 -0
- package/dist/config/site.d.ts.map +1 -0
- package/dist/config/site.js +72 -0
- package/dist/config/site.js.map +1 -0
- package/dist/config/topnav-loader.d.ts +10 -0
- package/dist/config/topnav-loader.d.ts.map +1 -0
- package/dist/config/topnav-loader.js +78 -0
- package/dist/config/topnav-loader.js.map +1 -0
- package/dist/config/translations-loader.d.ts +7 -0
- package/dist/config/translations-loader.d.ts.map +1 -0
- package/dist/config/translations-loader.js +51 -0
- package/dist/config/translations-loader.js.map +1 -0
- package/dist/content/content-loader.d.ts +16 -0
- package/dist/content/content-loader.d.ts.map +1 -0
- package/dist/content/content-loader.js +126 -0
- package/dist/content/content-loader.js.map +1 -0
- package/dist/content/content-parser.d.ts +12 -0
- package/dist/content/content-parser.d.ts.map +1 -0
- package/dist/content/content-parser.js +54 -0
- package/dist/content/content-parser.js.map +1 -0
- package/dist/content/content-transformer.d.ts +17 -0
- package/dist/content/content-transformer.d.ts.map +1 -0
- package/dist/content/content-transformer.js +94 -0
- package/dist/content/content-transformer.js.map +1 -0
- package/dist/content/markdoc-config.d.ts +13 -0
- package/dist/content/markdoc-config.d.ts.map +1 -0
- package/dist/content/markdoc-config.js +210 -0
- package/dist/content/markdoc-config.js.map +1 -0
- package/dist/content/slug.d.ts +26 -0
- package/dist/content/slug.d.ts.map +1 -0
- package/dist/content/slug.js +31 -0
- package/dist/content/slug.js.map +1 -0
- package/dist/pipeline.d.ts +61 -0
- package/dist/pipeline.d.ts.map +1 -0
- package/dist/pipeline.js +123 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/types/assets.d.ts +15 -0
- package/dist/types/assets.d.ts.map +1 -0
- package/dist/types/assets.js +2 -0
- package/dist/types/assets.js.map +1 -0
- package/dist/types/content.d.ts +114 -32
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js +1 -6
- package/dist/types/content.js.map +1 -1
- package/dist/types/language.d.ts +9 -0
- package/dist/types/language.d.ts.map +1 -0
- package/dist/types/language.js +2 -0
- package/dist/types/language.js.map +1 -0
- package/dist/types/navigation.d.ts +24 -36
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/types/navigation.js +1 -6
- package/dist/types/navigation.js.map +1 -1
- package/dist/types/pipeline.d.ts +70 -0
- package/dist/types/pipeline.d.ts.map +1 -0
- package/dist/types/pipeline.js +2 -0
- package/dist/types/pipeline.js.map +1 -0
- package/dist/types/site.d.ts +20 -0
- package/dist/types/site.d.ts.map +1 -0
- package/dist/types/site.js +2 -0
- package/dist/types/site.js.map +1 -0
- package/dist/utils/lang-utils.d.ts +23 -0
- package/dist/utils/lang-utils.d.ts.map +1 -0
- package/dist/utils/lang-utils.js +40 -0
- package/dist/utils/lang-utils.js.map +1 -0
- package/dist/utils/paths.d.ts +25 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +31 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/vite/plugin.d.ts +93 -0
- package/dist/vite/plugin.d.ts.map +1 -0
- package/dist/vite/plugin.js +435 -0
- package/dist/vite/plugin.js.map +1 -0
- package/package.json +46 -61
- package/src/app/App.module.css +82 -0
- package/src/app/App.tsx +95 -0
- package/src/app/content/Content.module.css +357 -0
- package/src/app/content/Content.tsx +212 -0
- package/src/app/content/callout/Callout.module.css +110 -0
- package/src/app/content/callout/Callout.tsx +82 -0
- package/src/app/content/card/Card.module.css +146 -0
- package/src/app/content/card/Card.tsx +110 -0
- package/src/app/content/card/CardGrid.module.css +22 -0
- package/src/app/content/card/CardGrid.tsx +34 -0
- package/src/app/content/code-block/CodeBlock.module.css +237 -0
- package/src/app/content/code-block/CodeBlock.tsx +123 -0
- package/src/app/content/heading/Heading.module.css +52 -0
- package/src/app/content/heading/Heading.tsx +75 -0
- package/src/app/content/image/Image.module.css +113 -0
- package/src/app/content/image/Image.tsx +98 -0
- package/src/app/content/link/ContentLink.tsx +46 -0
- package/src/app/data-context.tsx +39 -0
- package/src/app/entry-server.tsx +58 -0
- package/src/app/footer/Footer.module.css +36 -0
- package/src/app/footer/Footer.tsx +28 -0
- package/src/app/globals.d.ts +40 -0
- package/src/app/header/Header.module.css +205 -0
- package/src/app/header/Header.tsx +188 -0
- package/src/app/header/LanguagePicker.module.css +97 -0
- package/src/app/header/LanguagePicker.tsx +174 -0
- package/src/app/header/SearchBar.module.css +92 -0
- package/src/app/header/SearchBar.tsx +37 -0
- package/src/app/header/SearchModal.module.css +185 -0
- package/src/app/header/SearchModal.tsx +245 -0
- package/src/app/header/Topnav.module.css +37 -0
- package/src/app/header/Topnav.tsx +30 -0
- package/src/app/index.css +119 -0
- package/src/app/index.html +13 -0
- package/src/app/landing/LandingPage.module.css +14 -0
- package/src/app/landing/LandingPage.tsx +62 -0
- package/src/app/landing/button/Button.module.css +37 -0
- package/src/app/landing/button/Button.tsx +50 -0
- package/src/app/landing/hero/Hero.module.css +108 -0
- package/src/app/landing/hero/Hero.tsx +81 -0
- package/src/app/landing/section/Section.module.css +100 -0
- package/src/app/landing/section/Section.tsx +61 -0
- package/src/app/lang-utils.ts +11 -0
- package/src/app/main.tsx +67 -0
- package/src/app/not-found/NotFound.module.css +92 -0
- package/src/app/not-found/NotFound.tsx +34 -0
- package/src/app/routes.tsx +86 -0
- package/src/app/sidenav/Sidenav.module.css +239 -0
- package/src/app/sidenav/Sidenav.tsx +182 -0
- package/src/app/skeleton/Skeleton.module.css +100 -0
- package/src/app/skeleton/Skeleton.tsx +75 -0
- package/src/app/toc/Toc.module.css +59 -0
- package/src/app/toc/Toc.tsx +77 -0
- package/src/app/tsconfig.json +18 -0
- package/src/app/virtual-modules.d.ts +74 -0
- package/dist/assets/fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/fonts/inter/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/fonts/inter/OFL.txt +0 -93
- package/dist/build/Builder.d.ts +0 -92
- package/dist/build/Builder.d.ts.map +0 -1
- package/dist/build/Builder.js +0 -394
- package/dist/build/Builder.js.map +0 -1
- package/dist/build/ClientBundler.d.ts +0 -48
- package/dist/build/ClientBundler.d.ts.map +0 -1
- package/dist/build/ClientBundler.js +0 -169
- package/dist/build/ClientBundler.js.map +0 -1
- package/dist/build/HtmlGenerator.d.ts +0 -46
- package/dist/build/HtmlGenerator.d.ts.map +0 -1
- package/dist/build/HtmlGenerator.js +0 -190
- package/dist/build/HtmlGenerator.js.map +0 -1
- package/dist/build/SearchIndexer.d.ts +0 -31
- package/dist/build/SearchIndexer.d.ts.map +0 -1
- package/dist/build/SearchIndexer.js +0 -116
- package/dist/build/SearchIndexer.js.map +0 -1
- package/dist/bundles/client.js +0 -126
- package/dist/cli/create-app.d.ts +0 -14
- package/dist/cli/create-app.d.ts.map +0 -1
- package/dist/cli/create-app.js +0 -241
- package/dist/cli/create-app.js.map +0 -1
- package/dist/client/App.d.ts +0 -17
- package/dist/client/App.d.ts.map +0 -1
- package/dist/client/App.js +0 -91
- package/dist/client/App.js.map +0 -1
- package/dist/client/contexts/ConfigContext.d.ts +0 -22
- package/dist/client/contexts/ConfigContext.d.ts.map +0 -1
- package/dist/client/contexts/ConfigContext.js +0 -27
- package/dist/client/contexts/ConfigContext.js.map +0 -1
- package/dist/client/contexts/ContentContext.d.ts +0 -31
- package/dist/client/contexts/ContentContext.d.ts.map +0 -1
- package/dist/client/contexts/ContentContext.js +0 -46
- package/dist/client/contexts/ContentContext.js.map +0 -1
- package/dist/client/contexts/SearchContext.d.ts +0 -38
- package/dist/client/contexts/SearchContext.d.ts.map +0 -1
- package/dist/client/contexts/SearchContext.js +0 -185
- package/dist/client/contexts/SearchContext.js.map +0 -1
- package/dist/client/contexts/ThemeContext.d.ts +0 -23
- package/dist/client/contexts/ThemeContext.d.ts.map +0 -1
- package/dist/client/contexts/ThemeContext.js +0 -53
- package/dist/client/contexts/ThemeContext.js.map +0 -1
- package/dist/client/hooks/useContent.d.ts +0 -12
- package/dist/client/hooks/useContent.d.ts.map +0 -1
- package/dist/client/hooks/useContent.js +0 -74
- package/dist/client/hooks/useContent.js.map +0 -1
- package/dist/client/hooks/useNavigation.d.ts +0 -15
- package/dist/client/hooks/useNavigation.d.ts.map +0 -1
- package/dist/client/hooks/useNavigation.js +0 -101
- package/dist/client/hooks/useNavigation.js.map +0 -1
- package/dist/client/hooks/useSearch.d.ts +0 -22
- package/dist/client/hooks/useSearch.d.ts.map +0 -1
- package/dist/client/hooks/useSearch.js +0 -64
- package/dist/client/hooks/useSearch.js.map +0 -1
- package/dist/client/main.d.ts +0 -5
- package/dist/client/main.d.ts.map +0 -1
- package/dist/client/main.js +0 -66
- package/dist/client/main.js.map +0 -1
- package/dist/components/Callout.d.ts +0 -9
- package/dist/components/Callout.d.ts.map +0 -1
- package/dist/components/Callout.js +0 -24
- package/dist/components/Callout.js.map +0 -1
- package/dist/components/Card.d.ts +0 -10
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Card.js +0 -15
- package/dist/components/Card.js.map +0 -1
- package/dist/components/CardGrid.d.ts +0 -8
- package/dist/components/CardGrid.d.ts.map +0 -1
- package/dist/components/CardGrid.js +0 -9
- package/dist/components/CardGrid.js.map +0 -1
- package/dist/components/CodeBlock.d.ts +0 -28
- package/dist/components/CodeBlock.d.ts.map +0 -1
- package/dist/components/CodeBlock.js +0 -80
- package/dist/components/CodeBlock.js.map +0 -1
- package/dist/components/ContentPage.d.ts +0 -9
- package/dist/components/ContentPage.d.ts.map +0 -1
- package/dist/components/ContentPage.js +0 -102
- package/dist/components/ContentPage.js.map +0 -1
- package/dist/components/Header.d.ts +0 -14
- package/dist/components/Header.d.ts.map +0 -1
- package/dist/components/Header.js +0 -30
- package/dist/components/Header.js.map +0 -1
- package/dist/components/Heading.d.ts +0 -16
- package/dist/components/Heading.d.ts.map +0 -1
- package/dist/components/Heading.js +0 -31
- package/dist/components/Heading.js.map +0 -1
- package/dist/components/Image.d.ts +0 -8
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/Image.js +0 -24
- package/dist/components/Image.js.map +0 -1
- package/dist/components/Layout.d.ts +0 -14
- package/dist/components/Layout.d.ts.map +0 -1
- package/dist/components/Layout.js +0 -32
- package/dist/components/Layout.js.map +0 -1
- package/dist/components/MarkdocRenderer.d.ts +0 -15
- package/dist/components/MarkdocRenderer.d.ts.map +0 -1
- package/dist/components/MarkdocRenderer.js +0 -73
- package/dist/components/MarkdocRenderer.js.map +0 -1
- package/dist/components/MobileMenu.d.ts +0 -14
- package/dist/components/MobileMenu.d.ts.map +0 -1
- package/dist/components/MobileMenu.js +0 -45
- package/dist/components/MobileMenu.js.map +0 -1
- package/dist/components/PageNavigation.d.ts +0 -9
- package/dist/components/PageNavigation.d.ts.map +0 -1
- package/dist/components/PageNavigation.js +0 -23
- package/dist/components/PageNavigation.js.map +0 -1
- package/dist/components/SearchModal.d.ts +0 -9
- package/dist/components/SearchModal.d.ts.map +0 -1
- package/dist/components/SearchModal.js +0 -74
- package/dist/components/SearchModal.js.map +0 -1
- package/dist/components/SideNav.d.ts +0 -9
- package/dist/components/SideNav.d.ts.map +0 -1
- package/dist/components/SideNav.js +0 -66
- package/dist/components/SideNav.js.map +0 -1
- package/dist/components/TableOfContents.d.ts +0 -10
- package/dist/components/TableOfContents.d.ts.map +0 -1
- package/dist/components/TableOfContents.js +0 -151
- package/dist/components/TableOfContents.js.map +0 -1
- package/dist/config/ConfigLoader.d.ts +0 -50
- package/dist/config/ConfigLoader.d.ts.map +0 -1
- package/dist/config/ConfigLoader.js +0 -214
- package/dist/config/ConfigLoader.js.map +0 -1
- package/dist/config/StyleCompiler.d.ts +0 -17
- package/dist/config/StyleCompiler.d.ts.map +0 -1
- package/dist/config/StyleCompiler.js +0 -116
- package/dist/config/StyleCompiler.js.map +0 -1
- package/dist/config/ThemeGenerator.d.ts +0 -14
- package/dist/config/ThemeGenerator.d.ts.map +0 -1
- package/dist/config/ThemeGenerator.js +0 -129
- package/dist/config/ThemeGenerator.js.map +0 -1
- package/dist/content/ContentLoader.d.ts +0 -70
- package/dist/content/ContentLoader.d.ts.map +0 -1
- package/dist/content/ContentLoader.js +0 -146
- package/dist/content/ContentLoader.js.map +0 -1
- package/dist/content/ContentProcessor.d.ts +0 -84
- package/dist/content/ContentProcessor.d.ts.map +0 -1
- package/dist/content/ContentProcessor.js +0 -380
- package/dist/content/ContentProcessor.js.map +0 -1
- package/dist/content/RouteManager.d.ts +0 -69
- package/dist/content/RouteManager.d.ts.map +0 -1
- package/dist/content/RouteManager.js +0 -143
- package/dist/content/RouteManager.js.map +0 -1
- package/dist/styles/components/callout.d.ts +0 -11
- package/dist/styles/components/callout.d.ts.map +0 -1
- package/dist/styles/components/callout.js +0 -87
- package/dist/styles/components/callout.js.map +0 -1
- package/dist/styles/components/card.d.ts +0 -11
- package/dist/styles/components/card.d.ts.map +0 -1
- package/dist/styles/components/card.js +0 -179
- package/dist/styles/components/card.js.map +0 -1
- package/dist/styles/components/codeblock.d.ts +0 -11
- package/dist/styles/components/codeblock.d.ts.map +0 -1
- package/dist/styles/components/codeblock.js +0 -251
- package/dist/styles/components/codeblock.js.map +0 -1
- package/dist/styles/components/content.d.ts +0 -11
- package/dist/styles/components/content.d.ts.map +0 -1
- package/dist/styles/components/content.js +0 -197
- package/dist/styles/components/content.js.map +0 -1
- package/dist/styles/components/fonts.d.ts +0 -11
- package/dist/styles/components/fonts.d.ts.map +0 -1
- package/dist/styles/components/fonts.js +0 -34
- package/dist/styles/components/fonts.js.map +0 -1
- package/dist/styles/components/header.d.ts +0 -11
- package/dist/styles/components/header.d.ts.map +0 -1
- package/dist/styles/components/header.js +0 -293
- package/dist/styles/components/header.js.map +0 -1
- package/dist/styles/components/heading.d.ts +0 -11
- package/dist/styles/components/heading.d.ts.map +0 -1
- package/dist/styles/components/heading.js +0 -115
- package/dist/styles/components/heading.js.map +0 -1
- package/dist/styles/components/layout.d.ts +0 -11
- package/dist/styles/components/layout.d.ts.map +0 -1
- package/dist/styles/components/layout.js +0 -79
- package/dist/styles/components/layout.js.map +0 -1
- package/dist/styles/components/mobilemenu.d.ts +0 -11
- package/dist/styles/components/mobilemenu.d.ts.map +0 -1
- package/dist/styles/components/mobilemenu.js +0 -112
- package/dist/styles/components/mobilemenu.js.map +0 -1
- package/dist/styles/components/reset.d.ts +0 -11
- package/dist/styles/components/reset.d.ts.map +0 -1
- package/dist/styles/components/reset.js +0 -131
- package/dist/styles/components/reset.js.map +0 -1
- package/dist/styles/components/searchmodal.d.ts +0 -11
- package/dist/styles/components/searchmodal.d.ts.map +0 -1
- package/dist/styles/components/searchmodal.js +0 -333
- package/dist/styles/components/searchmodal.js.map +0 -1
- package/dist/styles/components/sidenav.d.ts +0 -11
- package/dist/styles/components/sidenav.d.ts.map +0 -1
- package/dist/styles/components/sidenav.js +0 -212
- package/dist/styles/components/sidenav.js.map +0 -1
- package/dist/styles/components/toc.d.ts +0 -11
- package/dist/styles/components/toc.d.ts.map +0 -1
- package/dist/styles/components/toc.js +0 -120
- package/dist/styles/components/toc.js.map +0 -1
- package/dist/styles/components/typography.d.ts +0 -11
- package/dist/styles/components/typography.d.ts.map +0 -1
- package/dist/styles/components/typography.js +0 -248
- package/dist/styles/components/typography.js.map +0 -1
- package/dist/styles/components/utility.d.ts +0 -11
- package/dist/styles/components/utility.d.ts.map +0 -1
- package/dist/styles/components/utility.js +0 -231
- package/dist/styles/components/utility.js.map +0 -1
- package/dist/styles/types.d.ts +0 -79
- package/dist/styles/types.d.ts.map +0 -1
- package/dist/styles/types.js +0 -7
- package/dist/styles/types.js.map +0 -1
- package/dist/styles/utils.d.ts +0 -21
- package/dist/styles/utils.d.ts.map +0 -1
- package/dist/styles/utils.js +0 -50
- package/dist/styles/utils.js.map +0 -1
- package/dist/styles/variables/main.d.ts +0 -15
- package/dist/styles/variables/main.d.ts.map +0 -1
- package/dist/styles/variables/main.js +0 -116
- package/dist/styles/variables/main.js.map +0 -1
- package/dist/types/config.d.ts +0 -43
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/config.js +0 -7
- package/dist/types/config.js.map +0 -1
- package/dist/utils/language-utils.d.ts +0 -41
- package/dist/utils/language-utils.d.ts.map +0 -1
- package/dist/utils/language-utils.js +0 -79
- package/dist/utils/language-utils.js.map +0 -1
- package/dist/utils/slugify.d.ts +0 -20
- package/dist/utils/slugify.d.ts.map +0 -1
- package/dist/utils/slugify.js +0 -44
- package/dist/utils/slugify.js.map +0 -1
- package/templates/default/config/favicon.ico +0 -0
- package/templates/default/config/logo-dark.png +0 -0
- package/templates/default/config/logo.png +0 -0
- package/templates/default/config/sidenav.yaml +0 -36
- package/templates/default/config/site.json +0 -16
- package/templates/default/config/styles/main.json +0 -6
- package/templates/default/config/styles/typography.json +0 -6
- package/templates/default/content/en/changelog.md +0 -35
- package/templates/default/content/en/faq.md +0 -50
- package/templates/default/content/en/field-manual/engines.md +0 -59
- package/templates/default/content/en/field-manual/relativity.md +0 -46
- package/templates/default/content/en/field-manual/safety.md +0 -44
- package/templates/default/content/en/field-manual.md +0 -22
- package/templates/default/content/en/flight-school/navigation.md +0 -61
- package/templates/default/content/en/flight-school/primer.md +0 -64
- package/templates/default/content/en/flight-school.md +0 -48
- package/templates/default/content/en/index.md +0 -83
- package/templates/default/content/en/ship-systems/flux-sails.md +0 -33
- package/templates/default/content/en/ship-systems/photonic-core.md +0 -39
- package/templates/default/content/en/ship-systems.md +0 -25
- package/templates/default/package.json +0 -21
- package/templates/default/public/icons/academy.svg +0 -15
- package/templates/default/public/icons/manual.svg +0 -16
- package/templates/default/public/icons/relativity.svg +0 -16
- package/templates/default/public/icons/systems.svg +0 -14
- package/templates/default/public/icons/warning.svg +0 -14
- package/templates/default/public/images/flux-sails.svg +0 -33
- package/templates/default/public/images/photonic-core.svg +0 -44
- package/templates/default/public/images/starwake.svg +0 -49
package/dist/styles/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAKH,wCAkBC;AAKD,4BAEC;AAKD,gCASC;AAKD,0CAEC;AAjDD;;GAEG;AACH,SAAgB,cAAc,CAC5B,QAAW,EACX,aAAiD,EACjD,gBAA6B;IAE7B,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE/B,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC7B,IAAI,aAAa,CAAC,GAAa,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAa,CAAQ,CAAC;QACpD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,SAAgB,QAAQ,CAAC,GAAW;IAClC,OAAO,0BAA0B,GAAG,KAAK,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,UAAqC,EAAE,GAAW;IAC3E,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,QAAQ;KACb,CAAC;IAEF,OAAO,sBAAsB,WAAW,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC;AACvE,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,GAAW;IACzC,OAAO,+EAA+E,GAAG,UAAU,CAAC;AACtG,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global design tokens (MORDOC variables)
|
|
3
|
-
* Provides default values and merge logic for global styling variables
|
|
4
|
-
*/
|
|
5
|
-
import { GlobalVariables } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* Get default global variables
|
|
8
|
-
*/
|
|
9
|
-
export declare function getGlobalDefaults(): GlobalVariables;
|
|
10
|
-
/**
|
|
11
|
-
* Merge user overrides with global defaults
|
|
12
|
-
* Only allows customization of typography (font families)
|
|
13
|
-
*/
|
|
14
|
-
export declare function mergeGlobalOverrides(userOverrides?: Record<string, string>): GlobalVariables;
|
|
15
|
-
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/styles/variables/main.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,eAAe,CA4FnD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,eAAe,CAqBjB"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Global design tokens (MORDOC variables)
|
|
4
|
-
* Provides default values and merge logic for global styling variables
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.getGlobalDefaults = getGlobalDefaults;
|
|
8
|
-
exports.mergeGlobalOverrides = mergeGlobalOverrides;
|
|
9
|
-
/**
|
|
10
|
-
* Get default global variables
|
|
11
|
-
*/
|
|
12
|
-
function getGlobalDefaults() {
|
|
13
|
-
return {
|
|
14
|
-
// Colors - Light mode
|
|
15
|
-
primaryColorLight: '#171717',
|
|
16
|
-
primaryColorDark: '#fafafa',
|
|
17
|
-
secondaryColorLight: '#525252',
|
|
18
|
-
secondaryColorDark: '#b3b3b3',
|
|
19
|
-
backgroundColorLight: '#ffffff',
|
|
20
|
-
backgroundColorDark: '#0a0a0a',
|
|
21
|
-
surfaceColorLight: '#f8f8f8',
|
|
22
|
-
surfaceColorDark: '#1a1a1a',
|
|
23
|
-
textPrimaryLight: '#1c1c1c',
|
|
24
|
-
textPrimaryDark: '#e5e5e5',
|
|
25
|
-
textSecondaryLight: '#525252',
|
|
26
|
-
textSecondaryDark: '#c9c9c9',
|
|
27
|
-
textDisabledLight: '#cccccc',
|
|
28
|
-
textDisabledDark: '#404040',
|
|
29
|
-
borderColorLight: '#e5e5e5',
|
|
30
|
-
borderColorDark: '#262626',
|
|
31
|
-
linkColorLight: '#171717',
|
|
32
|
-
linkColorDark: '#fafafa',
|
|
33
|
-
// Status colors
|
|
34
|
-
successColorLight: '#2d3436',
|
|
35
|
-
successColorDark: '#dfe6e9',
|
|
36
|
-
warningColorLight: '#636e72',
|
|
37
|
-
warningColorDark: '#b2bec3',
|
|
38
|
-
errorColorLight: '#1a1a1a',
|
|
39
|
-
errorColorDark: '#ffffff',
|
|
40
|
-
infoColorLight: '#2d3436',
|
|
41
|
-
infoColorDark: '#dfe6e9',
|
|
42
|
-
// Navigation colors
|
|
43
|
-
navTextColorLight: '#666666',
|
|
44
|
-
navTextColorDark: '#b3b3b3',
|
|
45
|
-
navHoverColorLight: '#171717',
|
|
46
|
-
navHoverColorDark: '#fafafa',
|
|
47
|
-
navActiveColorLight: '#171717',
|
|
48
|
-
navActiveColorDark: '#fafafa',
|
|
49
|
-
// Typography
|
|
50
|
-
fontFamilyBase: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
51
|
-
fontFamilyHeading: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
52
|
-
fontFamilyMono: '"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',
|
|
53
|
-
// Spacing (locked)
|
|
54
|
-
spacingXs: '0.25rem',
|
|
55
|
-
spacingSm: '0.5rem',
|
|
56
|
-
spacingMd: '1rem',
|
|
57
|
-
spacingLg: '1.5rem',
|
|
58
|
-
spacingXl: '2rem',
|
|
59
|
-
spacing2xl: '3rem',
|
|
60
|
-
spacing3xl: '4rem',
|
|
61
|
-
// Font sizes (locked)
|
|
62
|
-
fontSizeXs: '0.75rem',
|
|
63
|
-
fontSizeSm: '0.875rem',
|
|
64
|
-
fontSizeBase: '1rem',
|
|
65
|
-
fontSizeLg: '1.25rem',
|
|
66
|
-
fontSizeXl: '1.5rem',
|
|
67
|
-
fontSize2xl: '2rem',
|
|
68
|
-
fontSize3xl: '2.25rem',
|
|
69
|
-
fontSize4xl: '2.75rem',
|
|
70
|
-
// Font weights (locked)
|
|
71
|
-
fontWeightNormal: 400,
|
|
72
|
-
fontWeightMedium: 500,
|
|
73
|
-
fontWeightSemibold: 600,
|
|
74
|
-
fontWeightBold: 700,
|
|
75
|
-
// Line heights (locked)
|
|
76
|
-
lineHeightTight: 1.25,
|
|
77
|
-
lineHeightNormal: 1.5,
|
|
78
|
-
lineHeightRelaxed: 1.75,
|
|
79
|
-
// Border radius (locked)
|
|
80
|
-
borderRadiusSm: '0.125rem',
|
|
81
|
-
borderRadiusMd: '0.25rem',
|
|
82
|
-
borderRadiusLg: '0.5rem',
|
|
83
|
-
borderRadiusFull: '9999px',
|
|
84
|
-
// Container widths (locked)
|
|
85
|
-
containerWidthSm: '640px',
|
|
86
|
-
containerWidthMd: '768px',
|
|
87
|
-
containerWidthLg: '1024px',
|
|
88
|
-
containerWidthXl: '1280px',
|
|
89
|
-
// Layout dimensions (locked)
|
|
90
|
-
headerHeight: '4rem',
|
|
91
|
-
sidebarWidth: '16rem',
|
|
92
|
-
sidebarCollapsedWidth: '4rem',
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Merge user overrides with global defaults
|
|
97
|
-
* Only allows customization of typography (font families)
|
|
98
|
-
*/
|
|
99
|
-
function mergeGlobalOverrides(userOverrides) {
|
|
100
|
-
const defaults = getGlobalDefaults();
|
|
101
|
-
if (!userOverrides) {
|
|
102
|
-
return defaults;
|
|
103
|
-
}
|
|
104
|
-
// Whitelist of customizable global variables
|
|
105
|
-
const customizableKeys = [
|
|
106
|
-
'fontFamilyBase', 'fontFamilyHeading', 'fontFamilyMono',
|
|
107
|
-
];
|
|
108
|
-
const merged = { ...defaults };
|
|
109
|
-
customizableKeys.forEach(key => {
|
|
110
|
-
if (userOverrides[key] !== undefined) {
|
|
111
|
-
merged[key] = userOverrides[key];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
return merged;
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/styles/variables/main.ts"],"names":[],"mappings":"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"}
|
package/dist/types/config.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration type definitions for Mordoc
|
|
3
|
-
* These interfaces define the structure of user configuration files
|
|
4
|
-
*/
|
|
5
|
-
export interface NavigationItem {
|
|
6
|
-
label: string;
|
|
7
|
-
path?: string;
|
|
8
|
-
icon?: string;
|
|
9
|
-
external?: boolean;
|
|
10
|
-
children?: NavigationItem[];
|
|
11
|
-
sidenavRef?: string;
|
|
12
|
-
}
|
|
13
|
-
export type SideNavConfig = NavigationItem[];
|
|
14
|
-
export type TopNavConfig = NavigationItem[];
|
|
15
|
-
export interface LanguageConfig {
|
|
16
|
-
code: string;
|
|
17
|
-
label: string;
|
|
18
|
-
default?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface SiteMetadata {
|
|
21
|
-
title: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
keywords?: string[];
|
|
24
|
-
baseUrl?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface AssetConfig {
|
|
27
|
-
logo?: string;
|
|
28
|
-
logoDark?: string;
|
|
29
|
-
favicon?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface SiteConfig {
|
|
32
|
-
metadata: SiteMetadata;
|
|
33
|
-
languages: LanguageConfig[];
|
|
34
|
-
defaultLanguage: string;
|
|
35
|
-
navigation: {
|
|
36
|
-
sidenav: SideNavConfig;
|
|
37
|
-
topnav?: TopNavConfig;
|
|
38
|
-
additionalSidenavs?: Record<string, SideNavConfig>;
|
|
39
|
-
};
|
|
40
|
-
assets: AssetConfig;
|
|
41
|
-
assetsPath: string;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,aAAa,GAAG,cAAc,EAAE,CAAC;AAC7C,MAAM,MAAM,YAAY,GAAG,cAAc,EAAE,CAAC;AAG5C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,aAAa,CAAC;QACvB,MAAM,CAAC,EAAE,YAAY,CAAC;QACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;KACpD,CAAC;IACF,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/types/config.js
DELETED
package/dist/types/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Language utility functions
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Extract language code from a file path
|
|
6
|
-
* Examples:
|
|
7
|
-
* "en/getting-started.md" -> "en"
|
|
8
|
-
* "es/guias/inicio.md" -> "es"
|
|
9
|
-
* "getting-started.md" -> null (no language prefix)
|
|
10
|
-
*/
|
|
11
|
-
export declare function extractLanguageFromPath(filePath: string): string | null;
|
|
12
|
-
/**
|
|
13
|
-
* Remove language prefix from a file path
|
|
14
|
-
* Examples:
|
|
15
|
-
* "en/getting-started.md" -> "getting-started.md"
|
|
16
|
-
* "es/guias/inicio.md" -> "guias/inicio.md"
|
|
17
|
-
* "getting-started.md" -> "getting-started.md" (no change)
|
|
18
|
-
*/
|
|
19
|
-
export declare function removeLanguagePrefix(filePath: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Build a URL path with optional language prefix
|
|
22
|
-
* Examples:
|
|
23
|
-
* ("getting-started", "en", "en") -> "/getting-started" (default language, no prefix)
|
|
24
|
-
* ("getting-started", "es", "en") -> "/es/getting-started"
|
|
25
|
-
* ("", "en", "en") -> "/" (home page, default language)
|
|
26
|
-
* ("", "es", "en") -> "/es" (home page, non-default language)
|
|
27
|
-
*/
|
|
28
|
-
export declare function buildPathWithLanguage(slug: string, language: string, defaultLanguage: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* Validate language code format
|
|
31
|
-
* Returns true if the code looks like a valid language code (2-3 lowercase letters)
|
|
32
|
-
*/
|
|
33
|
-
export declare function isValidLanguageCode(code: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Get relative content path (path within the language directory)
|
|
36
|
-
* Examples:
|
|
37
|
-
* "en/getting-started.md" -> "getting-started.md"
|
|
38
|
-
* "en/guides/quick-start.md" -> "guides/quick-start.md"
|
|
39
|
-
*/
|
|
40
|
-
export declare function getRelativeContentPath(filePath: string): string;
|
|
41
|
-
//# sourceMappingURL=language-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-utils.d.ts","sourceRoot":"","sources":["../../src/utils/language-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CASvE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAS7D;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,CAgBR;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE/D"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Language utility functions
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.extractLanguageFromPath = extractLanguageFromPath;
|
|
7
|
-
exports.removeLanguagePrefix = removeLanguagePrefix;
|
|
8
|
-
exports.buildPathWithLanguage = buildPathWithLanguage;
|
|
9
|
-
exports.isValidLanguageCode = isValidLanguageCode;
|
|
10
|
-
exports.getRelativeContentPath = getRelativeContentPath;
|
|
11
|
-
/**
|
|
12
|
-
* Extract language code from a file path
|
|
13
|
-
* Examples:
|
|
14
|
-
* "en/getting-started.md" -> "en"
|
|
15
|
-
* "es/guias/inicio.md" -> "es"
|
|
16
|
-
* "getting-started.md" -> null (no language prefix)
|
|
17
|
-
*/
|
|
18
|
-
function extractLanguageFromPath(filePath) {
|
|
19
|
-
const parts = filePath.split('/');
|
|
20
|
-
// Check if the first segment looks like a language code (2-3 letters)
|
|
21
|
-
if (parts.length > 1 && /^[a-z]{2,3}$/i.test(parts[0])) {
|
|
22
|
-
return parts[0].toLowerCase();
|
|
23
|
-
}
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Remove language prefix from a file path
|
|
28
|
-
* Examples:
|
|
29
|
-
* "en/getting-started.md" -> "getting-started.md"
|
|
30
|
-
* "es/guias/inicio.md" -> "guias/inicio.md"
|
|
31
|
-
* "getting-started.md" -> "getting-started.md" (no change)
|
|
32
|
-
*/
|
|
33
|
-
function removeLanguagePrefix(filePath) {
|
|
34
|
-
const language = extractLanguageFromPath(filePath);
|
|
35
|
-
if (language) {
|
|
36
|
-
// Remove the language prefix and leading slash
|
|
37
|
-
return filePath.substring(language.length + 1);
|
|
38
|
-
}
|
|
39
|
-
return filePath;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Build a URL path with optional language prefix
|
|
43
|
-
* Examples:
|
|
44
|
-
* ("getting-started", "en", "en") -> "/getting-started" (default language, no prefix)
|
|
45
|
-
* ("getting-started", "es", "en") -> "/es/getting-started"
|
|
46
|
-
* ("", "en", "en") -> "/" (home page, default language)
|
|
47
|
-
* ("", "es", "en") -> "/es" (home page, non-default language)
|
|
48
|
-
*/
|
|
49
|
-
function buildPathWithLanguage(slug, language, defaultLanguage) {
|
|
50
|
-
// Normalize slug (remove leading/trailing slashes)
|
|
51
|
-
let normalizedSlug = slug.replace(/^\/+|\/+$/g, '');
|
|
52
|
-
// Special case: 'index' at root should map to home page (empty string)
|
|
53
|
-
if (normalizedSlug === 'index') {
|
|
54
|
-
normalizedSlug = '';
|
|
55
|
-
}
|
|
56
|
-
// If default language, don't add language prefix
|
|
57
|
-
if (language === defaultLanguage) {
|
|
58
|
-
return normalizedSlug ? `/${normalizedSlug}` : '/';
|
|
59
|
-
}
|
|
60
|
-
// Non-default language, add language prefix
|
|
61
|
-
return normalizedSlug ? `/${language}/${normalizedSlug}` : `/${language}`;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Validate language code format
|
|
65
|
-
* Returns true if the code looks like a valid language code (2-3 lowercase letters)
|
|
66
|
-
*/
|
|
67
|
-
function isValidLanguageCode(code) {
|
|
68
|
-
return /^[a-z]{2,3}$/.test(code);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get relative content path (path within the language directory)
|
|
72
|
-
* Examples:
|
|
73
|
-
* "en/getting-started.md" -> "getting-started.md"
|
|
74
|
-
* "en/guides/quick-start.md" -> "guides/quick-start.md"
|
|
75
|
-
*/
|
|
76
|
-
function getRelativeContentPath(filePath) {
|
|
77
|
-
return removeLanguagePrefix(filePath);
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=language-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-utils.js","sourceRoot":"","sources":["../../src/utils/language-utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AASH,0DASC;AASD,oDASC;AAUD,sDAoBC;AAMD,kDAEC;AAQD,wDAEC;AAlFD;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAC,QAAgB;IACtD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,sEAAsE;IACtE,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,QAAgB;IACnD,MAAM,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAEnD,IAAI,QAAQ,EAAE,CAAC;QACb,+CAA+C;QAC/C,OAAO,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,IAAY,EACZ,QAAgB,EAChB,eAAuB;IAEvB,mDAAmD;IACnD,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAEpD,uEAAuE;IACvE,IAAI,cAAc,KAAK,OAAO,EAAE,CAAC;QAC/B,cAAc,GAAG,EAAE,CAAC;IACtB,CAAC;IAED,iDAAiD;IACjD,IAAI,QAAQ,KAAK,eAAe,EAAE,CAAC;QACjC,OAAO,cAAc,CAAC,CAAC,CAAC,IAAI,cAAc,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACrD,CAAC;IAED,4CAA4C;IAC5C,OAAO,cAAc,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,cAAc,EAAE,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC;AAC5E,CAAC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAAY;IAC9C,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,OAAO,oBAAoB,CAAC,QAAQ,CAAC,CAAC;AACxC,CAAC"}
|
package/dist/utils/slugify.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slugify utility - Converts strings to URL-friendly slugs
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Convert a string to a URL-friendly slug
|
|
6
|
-
* Examples:
|
|
7
|
-
* "Getting Started" -> "getting-started"
|
|
8
|
-
* "API Reference!" -> "api-reference"
|
|
9
|
-
* "Hello_World" -> "hello-world"
|
|
10
|
-
*/
|
|
11
|
-
export declare function slugify(text: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Convert a file path to a slug by removing extension and slugifying
|
|
14
|
-
* Examples:
|
|
15
|
-
* "getting-started.md" -> "getting-started"
|
|
16
|
-
* "API Reference.md" -> "api-reference"
|
|
17
|
-
* "guides/Quick Start.md" -> "quick-start"
|
|
18
|
-
*/
|
|
19
|
-
export declare function filePathToSlug(filePath: string): string;
|
|
20
|
-
//# sourceMappingURL=slugify.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slugify.d.ts","sourceRoot":"","sources":["../../src/utils/slugify.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5C;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAYvD"}
|
package/dist/utils/slugify.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Slugify utility - Converts strings to URL-friendly slugs
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.slugify = slugify;
|
|
7
|
-
exports.filePathToSlug = filePathToSlug;
|
|
8
|
-
/**
|
|
9
|
-
* Convert a string to a URL-friendly slug
|
|
10
|
-
* Examples:
|
|
11
|
-
* "Getting Started" -> "getting-started"
|
|
12
|
-
* "API Reference!" -> "api-reference"
|
|
13
|
-
* "Hello_World" -> "hello-world"
|
|
14
|
-
*/
|
|
15
|
-
function slugify(text) {
|
|
16
|
-
return text
|
|
17
|
-
.toString()
|
|
18
|
-
.toLowerCase()
|
|
19
|
-
.trim()
|
|
20
|
-
.replace(/\s+/g, '-') // Replace spaces with -
|
|
21
|
-
.replace(/[^\w\-]+/g, '') // Remove all non-word chars except hyphens
|
|
22
|
-
.replace(/\-\-+/g, '-') // Replace multiple - with single -
|
|
23
|
-
.replace(/^-+/, '') // Trim - from start of text
|
|
24
|
-
.replace(/-+$/, ''); // Trim - from end of text
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Convert a file path to a slug by removing extension and slugifying
|
|
28
|
-
* Examples:
|
|
29
|
-
* "getting-started.md" -> "getting-started"
|
|
30
|
-
* "API Reference.md" -> "api-reference"
|
|
31
|
-
* "guides/Quick Start.md" -> "quick-start"
|
|
32
|
-
*/
|
|
33
|
-
function filePathToSlug(filePath) {
|
|
34
|
-
// Get the filename without extension
|
|
35
|
-
const fileName = filePath.split('/').pop()?.replace(/\.mdx?$/, '') || '';
|
|
36
|
-
// If the filename is 'index', use the parent directory name
|
|
37
|
-
if (fileName === 'index') {
|
|
38
|
-
const parts = filePath.split('/');
|
|
39
|
-
// Get the parent directory, or use 'index' if at root
|
|
40
|
-
return parts.length > 1 ? slugify(parts[parts.length - 2]) : 'index';
|
|
41
|
-
}
|
|
42
|
-
return slugify(fileName);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=slugify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slugify.js","sourceRoot":"","sources":["../../src/utils/slugify.ts"],"names":[],"mappings":";AAAA;;GAEG;;AASH,0BAUC;AASD,wCAYC;AAtCD;;;;;;GAMG;AACH,SAAgB,OAAO,CAAC,IAAY;IAClC,OAAO,IAAI;SACR,QAAQ,EAAE;SACV,WAAW,EAAE;SACb,IAAI,EAAE;SACN,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,wBAAwB;SAC7C,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,2CAA2C;SACpE,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,mCAAmC;SAC1D,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,4BAA4B;SAC/C,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,0BAA0B;AACnD,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,QAAgB;IAC7C,qCAAqC;IACrC,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IAEzE,4DAA4D;IAC5D,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClC,sDAAsD;QACtD,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IACvE,CAAC;IAED,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
- label: Home
|
|
2
|
-
path: /
|
|
3
|
-
|
|
4
|
-
- label: Flight School
|
|
5
|
-
path: /flight-school
|
|
6
|
-
children:
|
|
7
|
-
- label: Primer — What “Lightspeed” Means Here
|
|
8
|
-
path: /flight-school/primer
|
|
9
|
-
- label: Navigation — Folding a Straight Line
|
|
10
|
-
path: /flight-school/navigation
|
|
11
|
-
|
|
12
|
-
- label: Field Manual
|
|
13
|
-
path: /field-manual
|
|
14
|
-
children:
|
|
15
|
-
- label: Engines — The Photoniuum Core
|
|
16
|
-
path: /field-manual/engines
|
|
17
|
-
- label: Relativity — A Friendly Lie
|
|
18
|
-
path: /field-manual/relativity
|
|
19
|
-
- label: Safety — The Ten-Meter Rule
|
|
20
|
-
path: /field-manual/safety
|
|
21
|
-
|
|
22
|
-
- label: Ship Systems
|
|
23
|
-
path: /ship-systems
|
|
24
|
-
children:
|
|
25
|
-
- label: Photonic Core
|
|
26
|
-
path: /ship-systems/photonic-core
|
|
27
|
-
- label: Flux Sails
|
|
28
|
-
path: /ship-systems/flux-sails
|
|
29
|
-
|
|
30
|
-
- label: FAQ
|
|
31
|
-
path: /faq
|
|
32
|
-
|
|
33
|
-
- label: Changelog
|
|
34
|
-
path: /changelog
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Photoniuum Flight Notes",
|
|
3
|
-
"description": "Fantasy documentation for lightspeed travel, photonic engines, and the etiquette of outrunning causality.",
|
|
4
|
-
"keywords": [
|
|
5
|
-
"photoniuum",
|
|
6
|
-
"lightspeed",
|
|
7
|
-
"ftl",
|
|
8
|
-
"photonic drive",
|
|
9
|
-
"navigation",
|
|
10
|
-
"field manual",
|
|
11
|
-
"fictional docs"
|
|
12
|
-
],
|
|
13
|
-
"baseUrl": ""
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Changelog
|
|
3
|
-
description: Drive bulletins and public notices from Photoniuum (fictional, but written like real releases).
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Drive Bulletins
|
|
7
|
-
|
|
8
|
-
Photoniuum publishes bulletins for two reasons:
|
|
9
|
-
|
|
10
|
-
1. To keep crews alive.
|
|
11
|
-
2. To keep lawyers employed.
|
|
12
|
-
|
|
13
|
-
## Unreleased
|
|
14
|
-
|
|
15
|
-
- Added: Return clause now printed in **large, friendly font**
|
|
16
|
-
- Fixed: starwake meter rounding error at intensity 3 (it was rounding *optimistically*)
|
|
17
|
-
- Changed: “warp” replaced with “placement” in all passenger materials (engineering won)
|
|
18
|
-
|
|
19
|
-
## 1.0.0 — First Launch
|
|
20
|
-
|
|
21
|
-
- Added: Edgeward itineraries
|
|
22
|
-
- Added: Photonic core limiters
|
|
23
|
-
- Added: Etiquette daemon (beta)
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Bulletin excerpt (archival format)
|
|
28
|
-
|
|
29
|
-
```markdown
|
|
30
|
-
## Bulletin 1.0.1
|
|
31
|
-
- Fixed: “earth guaranteed” typo (it was not supposed to be there)
|
|
32
|
-
- Added: additional tea to the galley manifest
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: FAQ
|
|
3
|
-
description: Common questions about Photoniuum lightspeed travel — answered with alarming honesty.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# FAQ
|
|
7
|
-
|
|
8
|
-
## Is this real physics?
|
|
9
|
-
|
|
10
|
-
Photoniuum travel is engineered fiction. Our internal models are consistent enough to fly a ship, but not consistent enough to settle arguments on Earth.
|
|
11
|
-
|
|
12
|
-
## Why “Photoniuum”?
|
|
13
|
-
|
|
14
|
-
Because it sounds like a material you shouldn’t lick, and because the core behaves like one.
|
|
15
|
-
|
|
16
|
-
## Will I age during the voyage?
|
|
17
|
-
|
|
18
|
-
Not in any meaningful way. Your body experiences **ship time**.
|
|
19
|
-
|
|
20
|
-
Your homeworld experiences **home time**.
|
|
21
|
-
|
|
22
|
-
## Will Earth be there when I come back?
|
|
23
|
-
|
|
24
|
-
We can route you back to the coordinates Earth once occupied.
|
|
25
|
-
|
|
26
|
-
We do not guarantee the planet, the species, the language, or the parking rules will still exist.
|
|
27
|
-
|
|
28
|
-
## Is return travel possible?
|
|
29
|
-
|
|
30
|
-
Often, yes. Always, no.
|
|
31
|
-
|
|
32
|
-
Some voyages return into a sky that has learned new constellations.
|
|
33
|
-
|
|
34
|
-
## What is “starwake”?
|
|
35
|
-
|
|
36
|
-
Starwake is the luminous residue of a jump — the corridor remembers you for a while.
|
|
37
|
-
|
|
38
|
-
## What if I change my mind mid-voyage?
|
|
39
|
-
|
|
40
|
-
That is normal. Tell the crew. We carry:
|
|
41
|
-
|
|
42
|
-
- a counselor,
|
|
43
|
-
- a kettle,
|
|
44
|
-
- and three emergency playlists labeled **DO NOT USE**.
|
|
45
|
-
|
|
46
|
-
## Can I link within a page?
|
|
47
|
-
|
|
48
|
-
Yes. Example: [Jump windows](/flight-school/navigation#jump-windows).
|
|
49
|
-
|
|
50
|
-
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Engines — The Photoniuum Core
|
|
3
|
-
description: The heart of lightspeed travel: how it spools, what it wants, and what it refuses to forgive.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Engines — The Photoniuum Core
|
|
7
|
-
|
|
8
|
-
The Photoniuum core is sometimes described as *“a lantern that remembers being a star.”*
|
|
9
|
-
|
|
10
|
-
Engineers prefer: **“Do not tap the casing.”**
|
|
11
|
-
|
|
12
|
-
")
|
|
13
|
-
|
|
14
|
-
## Spooling sequence (conceptual)
|
|
15
|
-
|
|
16
|
-
```text
|
|
17
|
-
1) Verify window lock
|
|
18
|
-
2) Prime flux channels
|
|
19
|
-
3) Begin spool (listen for the choir)
|
|
20
|
-
4) Confirm starwake limiters
|
|
21
|
-
5) Commit the jump
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Markdown showcase: inline code + emphasis
|
|
25
|
-
|
|
26
|
-
If the status panel reads `CHOIR: DISPLEASED`, do **not** interpret it as “maybe.”
|
|
27
|
-
|
|
28
|
-
## A tiny pseudo-API (code fence)
|
|
29
|
-
|
|
30
|
-
```typescript
|
|
31
|
-
type WindowId = string;
|
|
32
|
-
|
|
33
|
-
interface JumpPlan {
|
|
34
|
-
window: WindowId;
|
|
35
|
-
maxStarwake: 1 | 2 | 3 | 4 | 5;
|
|
36
|
-
apology: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function commitJump(plan: JumpPlan) {
|
|
40
|
-
if (!plan.apology || plan.apology.length < 12) {
|
|
41
|
-
throw new Error("Apology too short. The universe has standards.");
|
|
42
|
-
}
|
|
43
|
-
return { ok: true, event: "jump_committed", window: plan.window };
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Custom components: cards
|
|
48
|
-
|
|
49
|
-
{% cardGrid cols="2" %}
|
|
50
|
-
{% card title="Safety — The Ten-Meter Rule" href="/field-manual/safety" icon="/icons/warning.svg" %}
|
|
51
|
-
How to keep your ship, crew, and narrative arc intact during spool.
|
|
52
|
-
{% /card %}
|
|
53
|
-
|
|
54
|
-
{% card title="Relativity — A Friendly Lie" href="/field-manual/relativity" icon="/icons/relativity.svg" %}
|
|
55
|
-
Why clocks argue, and why Photoniuum politely ignores them.
|
|
56
|
-
{% /card %}
|
|
57
|
-
{% /cardGrid %}
|
|
58
|
-
|
|
59
|
-
|