@heyo-sh/create-heyo-docs 0.1.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.
Files changed (146) hide show
  1. package/LICENSE +21 -0
  2. package/deployments/cloudflare/astro/package.json +12 -0
  3. package/deployments/cloudflare/astro/platform.astro.ts +4 -0
  4. package/deployments/cloudflare/astro/wrangler.jsonc +6 -0
  5. package/deployments/cloudflare/next/open-next.config.ts +3 -0
  6. package/deployments/cloudflare/next/package.json +13 -0
  7. package/deployments/cloudflare/next/wrangler.jsonc +11 -0
  8. package/deployments/cloudflare/react-router/app/entry.server.tsx +48 -0
  9. package/deployments/cloudflare/react-router/package.json +21 -0
  10. package/deployments/cloudflare/react-router/platform.vite.ts +6 -0
  11. package/deployments/cloudflare/react-router/react-router.config.ts +20 -0
  12. package/deployments/cloudflare/react-router/workers/app.ts +12 -0
  13. package/deployments/cloudflare/react-router/wrangler.jsonc +10 -0
  14. package/deployments/vercel/astro/package.json +11 -0
  15. package/deployments/vercel/astro/platform.astro.ts +4 -0
  16. package/deployments/vercel/astro/vercel.json +4 -0
  17. package/deployments/vercel/next/package.json +8 -0
  18. package/deployments/vercel/next/vercel.json +3 -0
  19. package/deployments/vercel/react-router/package.json +12 -0
  20. package/deployments/vercel/react-router/platform.vite.ts +4 -0
  21. package/deployments/vercel/react-router/react-router.config.ts +22 -0
  22. package/deployments/vercel/react-router/vercel.json +4 -0
  23. package/dist/index.d.ts +13 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +328 -0
  26. package/dist/package-manager.d.ts +6 -0
  27. package/dist/package-manager.d.ts.map +1 -0
  28. package/dist/project-name.d.ts +3 -0
  29. package/dist/project-name.d.ts.map +1 -0
  30. package/dist/scaffold.d.ts +5 -0
  31. package/dist/scaffold.d.ts.map +1 -0
  32. package/dist/types.d.ts +19 -0
  33. package/dist/types.d.ts.map +1 -0
  34. package/dist/utils.d.ts +8 -0
  35. package/dist/utils.d.ts.map +1 -0
  36. package/package.json +36 -0
  37. package/templates/astro/astro.config.ts +15 -0
  38. package/templates/astro/components.json +25 -0
  39. package/templates/astro/content/getting-started.mdx +16 -0
  40. package/templates/astro/content/index.mdx +22 -0
  41. package/templates/astro/content/mdx-components.mdx +44 -0
  42. package/templates/astro/heyo-docs.config.ts +24 -0
  43. package/templates/astro/package.json +34 -0
  44. package/templates/astro/platform.astro.ts +4 -0
  45. package/templates/astro/public/apple-touch-icon.png +0 -0
  46. package/templates/astro/public/favicon-96x96.png +0 -0
  47. package/templates/astro/public/favicon.ico +0 -0
  48. package/templates/astro/public/favicon.svg +1 -0
  49. package/templates/astro/public/logo.svg +12 -0
  50. package/templates/astro/public/site.webmanifest +21 -0
  51. package/templates/astro/public/web-app-manifest-192x192.png +0 -0
  52. package/templates/astro/public/web-app-manifest-512x512.png +0 -0
  53. package/templates/astro/src/components/docs-app.tsx +165 -0
  54. package/templates/astro/src/components/theme-provider.tsx +106 -0
  55. package/templates/astro/src/env.d.ts +2 -0
  56. package/templates/astro/src/heyo-docs-icons.tsx +79 -0
  57. package/templates/astro/src/layouts/docs-layout.astro +70 -0
  58. package/templates/astro/src/lib/docs.ts +31 -0
  59. package/templates/astro/src/lib/openapi-request.ts +160 -0
  60. package/templates/astro/src/lib/seo.ts +221 -0
  61. package/templates/astro/src/lib/theme.ts +74 -0
  62. package/templates/astro/src/pages/[...slug].astro +50 -0
  63. package/templates/astro/src/pages/[...slug].md.ts +28 -0
  64. package/templates/astro/src/pages/heyo-docs-internal/openapi-request.ts +8 -0
  65. package/templates/astro/src/pages/llms-full.txt.ts +13 -0
  66. package/templates/astro/src/pages/llms.txt.ts +13 -0
  67. package/templates/astro/src/pages/robots.txt.ts +19 -0
  68. package/templates/astro/src/pages/rss.xml.ts +13 -0
  69. package/templates/astro/src/pages/sitemap.xml.ts +19 -0
  70. package/templates/astro/src/styles/app.css +8 -0
  71. package/templates/astro/src/virtual.d.ts +19 -0
  72. package/templates/astro/tsconfig.json +12 -0
  73. package/templates/next/app/[[...slug]]/page.tsx +59 -0
  74. package/templates/next/app/app.css +8 -0
  75. package/templates/next/app/components/docs-app.tsx +139 -0
  76. package/templates/next/app/components/theme-provider.tsx +93 -0
  77. package/templates/next/app/error.tsx +8 -0
  78. package/templates/next/app/heyo-docs-icons.tsx +70 -0
  79. package/templates/next/app/heyo-docs-internal/markdown/[[...slug]]/route.ts +26 -0
  80. package/templates/next/app/heyo-docs-internal/openapi-request/route.ts +5 -0
  81. package/templates/next/app/layout.tsx +79 -0
  82. package/templates/next/app/lib/docs.ts +43 -0
  83. package/templates/next/app/lib/openapi-request.ts +147 -0
  84. package/templates/next/app/lib/seo.ts +189 -0
  85. package/templates/next/app/lib/theme.ts +61 -0
  86. package/templates/next/app/llms-full.txt/route.ts +10 -0
  87. package/templates/next/app/llms.txt/route.ts +10 -0
  88. package/templates/next/app/not-found.tsx +13 -0
  89. package/templates/next/app/robots.txt/route.ts +16 -0
  90. package/templates/next/app/rss.xml/route.ts +10 -0
  91. package/templates/next/app/sitemap.xml/route.ts +14 -0
  92. package/templates/next/components.json +20 -0
  93. package/templates/next/content/getting-started.mdx +16 -0
  94. package/templates/next/content/index.mdx +22 -0
  95. package/templates/next/content/mdx-components.mdx +41 -0
  96. package/templates/next/heyo-docs.config.ts +24 -0
  97. package/templates/next/mdx.d.ts +6 -0
  98. package/templates/next/next-env.d.ts +7 -0
  99. package/templates/next/next.config.ts +23 -0
  100. package/templates/next/package.json +40 -0
  101. package/templates/next/postcss.config.mjs +5 -0
  102. package/templates/next/public/apple-touch-icon.png +0 -0
  103. package/templates/next/public/favicon-96x96.png +0 -0
  104. package/templates/next/public/favicon.ico +0 -0
  105. package/templates/next/public/favicon.svg +1 -0
  106. package/templates/next/public/logo.svg +12 -0
  107. package/templates/next/public/site.webmanifest +21 -0
  108. package/templates/next/public/web-app-manifest-192x192.png +0 -0
  109. package/templates/next/public/web-app-manifest-512x512.png +0 -0
  110. package/templates/next/scripts/generate-heyo-docs.ts +50 -0
  111. package/templates/next/tsconfig.json +27 -0
  112. package/templates/react-router/app/app.css +8 -0
  113. package/templates/react-router/app/components/theme-provider.tsx +106 -0
  114. package/templates/react-router/app/heyo-docs-icons.tsx +71 -0
  115. package/templates/react-router/app/lib/theme.ts +74 -0
  116. package/templates/react-router/app/root.tsx +140 -0
  117. package/templates/react-router/app/routes/docs.tsx +179 -0
  118. package/templates/react-router/app/routes/home.tsx +1 -0
  119. package/templates/react-router/app/routes/llms-full.ts +13 -0
  120. package/templates/react-router/app/routes/llms.ts +13 -0
  121. package/templates/react-router/app/routes/markdown.ts +25 -0
  122. package/templates/react-router/app/routes/openapi-request.ts +159 -0
  123. package/templates/react-router/app/routes/page.tsx +1 -0
  124. package/templates/react-router/app/routes/robots.ts +19 -0
  125. package/templates/react-router/app/routes/rss.ts +13 -0
  126. package/templates/react-router/app/routes/sitemap.ts +18 -0
  127. package/templates/react-router/app/routes.ts +13 -0
  128. package/templates/react-router/app/virtual.d.ts +19 -0
  129. package/templates/react-router/components.json +25 -0
  130. package/templates/react-router/content/getting-started.mdx +16 -0
  131. package/templates/react-router/content/index.mdx +22 -0
  132. package/templates/react-router/content/mdx-components.mdx +293 -0
  133. package/templates/react-router/heyo-docs.config.ts +24 -0
  134. package/templates/react-router/package.json +36 -0
  135. package/templates/react-router/platform.vite.ts +2 -0
  136. package/templates/react-router/public/apple-touch-icon.png +0 -0
  137. package/templates/react-router/public/favicon-96x96.png +0 -0
  138. package/templates/react-router/public/favicon.ico +0 -0
  139. package/templates/react-router/public/favicon.svg +1 -0
  140. package/templates/react-router/public/logo.svg +12 -0
  141. package/templates/react-router/public/site.webmanifest +21 -0
  142. package/templates/react-router/public/web-app-manifest-192x192.png +0 -0
  143. package/templates/react-router/public/web-app-manifest-512x512.png +0 -0
  144. package/templates/react-router/react-router.config.ts +20 -0
  145. package/templates/react-router/tsconfig.json +20 -0
  146. package/templates/react-router/vite.config.ts +17 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "include": ["**/*", ".react-router/types/**/*"],
3
+ "compilerOptions": {
4
+ "lib": ["DOM", "DOM.Iterable", "ES2022"],
5
+ "types": ["@react-router/node", "vite/client"],
6
+ "target": "ES2022",
7
+ "module": "ESNext",
8
+ "moduleResolution": "Bundler",
9
+ "rootDirs": [".", "./.react-router/types"],
10
+ "jsx": "react-jsx",
11
+ "paths": {
12
+ "~/*": ["./app/*"]
13
+ },
14
+ "strict": true,
15
+ "allowImportingTsExtensions": true,
16
+ "esModuleInterop": true,
17
+ "skipLibCheck": true,
18
+ "noEmit": true
19
+ }
20
+ }
@@ -0,0 +1,17 @@
1
+ import { reactRouter } from "@react-router/dev/vite";
2
+ import tailwindcss from "@tailwindcss/vite";
3
+ import { defineConfig } from "vite";
4
+ import { heyoDocs } from "@heyo-sh/heyo-docs/vite";
5
+
6
+ import config from "./heyo-docs.config.ts";
7
+ import { platformPlugins, platformViteConfig } from "./platform.vite.ts";
8
+
9
+ export default defineConfig({
10
+ ...platformViteConfig,
11
+ plugins: [
12
+ tailwindcss(),
13
+ ...platformPlugins,
14
+ reactRouter(),
15
+ heyoDocs({ config }),
16
+ ],
17
+ });