@heyo-sh/create-heyo-docs 0.2.0 → 0.2.1

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 (32) hide show
  1. package/README.md +10 -18
  2. package/package.json +1 -1
  3. package/templates/astro/content/configuration.mdx +76 -0
  4. package/templates/astro/content/deploying.mdx +57 -0
  5. package/templates/astro/content/essentials/callouts.mdx +36 -0
  6. package/templates/astro/content/essentials/code-blocks.mdx +51 -0
  7. package/templates/astro/content/essentials/lists.mdx +40 -0
  8. package/templates/astro/content/essentials/tables.mdx +37 -0
  9. package/templates/astro/content/essentials/tabs.mdx +42 -0
  10. package/templates/astro/content/essentials/text-styling.mdx +50 -0
  11. package/templates/astro/content/quickstart.mdx +60 -0
  12. package/templates/astro/heyo-docs.config.ts +24 -2
  13. package/templates/next/content/configuration.mdx +76 -0
  14. package/templates/next/content/deploying.mdx +57 -0
  15. package/templates/next/content/essentials/callouts.mdx +36 -0
  16. package/templates/next/content/essentials/code-blocks.mdx +51 -0
  17. package/templates/next/content/essentials/lists.mdx +40 -0
  18. package/templates/next/content/essentials/tables.mdx +37 -0
  19. package/templates/next/content/essentials/tabs.mdx +42 -0
  20. package/templates/next/content/essentials/text-styling.mdx +50 -0
  21. package/templates/next/content/quickstart.mdx +60 -0
  22. package/templates/next/heyo-docs.config.ts +24 -2
  23. package/templates/react-router/content/configuration.mdx +76 -0
  24. package/templates/react-router/content/deploying.mdx +57 -0
  25. package/templates/react-router/content/essentials/callouts.mdx +36 -0
  26. package/templates/react-router/content/essentials/code-blocks.mdx +51 -0
  27. package/templates/react-router/content/essentials/lists.mdx +40 -0
  28. package/templates/react-router/content/essentials/tables.mdx +37 -0
  29. package/templates/react-router/content/essentials/tabs.mdx +42 -0
  30. package/templates/react-router/content/essentials/text-styling.mdx +50 -0
  31. package/templates/react-router/content/quickstart.mdx +60 -0
  32. package/templates/react-router/heyo-docs.config.ts +24 -2
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: Tabs
3
+ description: Let readers choose between related commands or platform-specific instructions.
4
+ ---
5
+
6
+ # Tabs
7
+
8
+ `Tabs` presents related content one panel at a time. It is useful for package
9
+ manager commands, framework variants, and small comparisons where readers need
10
+ only one option to complete the task.
11
+
12
+ ## Label equivalent choices clearly
13
+
14
+ Each `Tab` needs a concise title. Give a tab a stable `value` when you need
15
+ to set a different initial panel with `defaultValue`.
16
+
17
+ <Tabs defaultValue="typescript" variant="line">
18
+ <Tab title="JavaScript" value="javascript">
19
+ Import the package from your JavaScript entry point.
20
+ </Tab>
21
+ <Tab title="TypeScript" value="typescript">
22
+ Import the package with full type information and keep configuration typed.
23
+ </Tab>
24
+ </Tabs>
25
+
26
+ ## Keep the choices parallel
27
+
28
+ Tabs work when every panel solves the same problem in a different environment.
29
+ Use headings or `Steps` for a sequence that every reader must complete; tabs
30
+ can hide required information.
31
+
32
+ <Tabs defaultValue="vercel" variant="line">
33
+ <Tab title="Vercel" value="vercel">
34
+ Connect the repository and let Vercel detect the framework.
35
+ </Tab>
36
+ <Tab title="Cloudflare" value="cloudflare">
37
+ Deploy the generated static site when your team already uses Cloudflare.
38
+ </Tab>
39
+ <Tab title="Static host" value="static">
40
+ Upload the build output to any host that serves static files.
41
+ </Tab>
42
+ </Tabs>
@@ -0,0 +1,50 @@
1
+ ---
2
+ title: Text Styling
3
+ description: Structure documentation with clear headings, emphasis, links, and quotes.
4
+ ---
5
+
6
+ # Text Styling
7
+
8
+ Good documentation is easy to scan before it is read in detail. Use the
9
+ frontmatter title for the page's H1, then organize the body around short,
10
+ descriptive H2 and H3 headings.
11
+
12
+ ## Build a clear hierarchy
13
+
14
+ Use `##` for the main tasks or ideas on a page. Add `###` only when a section
15
+ has a meaningful subdivision. Headings should tell the reader what they will
16
+ learn, not simply announce that more information follows.
17
+
18
+ ```md
19
+ ## Configure navigation
20
+
21
+ Add pages in the order readers should follow.
22
+
23
+ ### Add an external resource
24
+
25
+ Use a custom link for a separate destination.
26
+ ```
27
+
28
+ ## Emphasize the decision
29
+
30
+ Use **bold text** for an important choice and inline `code` for literal values
31
+ such as file names, commands, and configuration keys. Keep the rest of the
32
+ sentence plain so these signals remain useful.
33
+
34
+ ```md
35
+ Set `content: "content"` in `heyo-docs.config.ts`.
36
+
37
+ Deploy **after** reviewing the production build.
38
+ ```
39
+
40
+ ## Link with context
41
+
42
+ Describe where a link goes instead of pasting a raw URL. Relative links work
43
+ well for another page in the same documentation, while full URLs are useful for
44
+ external resources.
45
+
46
+ Read the [Quickstart](/quickstart) before changing the
47
+ [site configuration](/configuration).
48
+
49
+ > Keep each paragraph focused on one idea so readers can quickly find the
50
+ > decision that applies to them.
@@ -0,0 +1,60 @@
1
+ ---
2
+ title: Quickstart
3
+ description: Create, run, and understand your Heyo Docs project.
4
+ ---
5
+
6
+ # Quickstart
7
+
8
+ A new Heyo Docs project is a complete documentation site: MDX files provide the
9
+ content, `heyo-docs.config.ts` defines the site model, and your selected
10
+ framework renders the finished experience.
11
+
12
+ ## Create a project
13
+
14
+ Use the creator with the package manager you already use. It asks for a project
15
+ name, framework, deployment target, theme, and package manager, then creates a
16
+ ready-to-run application.
17
+
18
+ <CodeBlockGroup defaultValue="bun" variant="line">
19
+ <CodeBlock language="bash" title="bun">
20
+ {"bun create @heyo-sh/heyo-docs"}
21
+ </CodeBlock>
22
+ <CodeBlock language="bash" title="npm">
23
+ {"npm create @heyo-sh/heyo-docs@latest"}
24
+ </CodeBlock>
25
+ <CodeBlock language="bash" title="pnpm">
26
+ {"pnpm create @heyo-sh/heyo-docs"}
27
+ </CodeBlock>
28
+ <CodeBlock language="bash" title="yarn">
29
+ {"yarn dlx @heyo-sh/create-heyo-docs"}
30
+ </CodeBlock>
31
+ </CodeBlockGroup>
32
+
33
+ When the command finishes, move into the new directory and run the development
34
+ command printed by the creator. The local server rebuilds the documentation
35
+ when you change either content or configuration.
36
+
37
+ ## How the pieces fit together
38
+
39
+ 1. **Content** lives in the `content` directory. Every `.mdx` file becomes a
40
+ documentation route.
41
+ 2. **Configuration** in `heyo-docs.config.ts` gives the site its name, theme,
42
+ navigation order, and public metadata.
43
+ 3. **The framework app** loads the same model during development and production
44
+ builds, so the sidebar, search, routes, and adjacent-page links stay in sync.
45
+
46
+ Create a new file such as `content/guides/deployment.mdx` to add the
47
+ `/guides/deployment` route. Add that path to a navigation section when the
48
+ page should appear in the sidebar.
49
+
50
+ ## Make your first change
51
+
52
+ Update the title and description in the frontmatter of `content/index.mdx`,
53
+ then refresh the browser. Use [Basic Configuration](/configuration) to adjust
54
+ the site model and [Text Styling](/essentials/text-styling) for writing the
55
+ page itself.
56
+
57
+ <Callout type="tip" title="One source of truth">
58
+ Keep navigation in <code>heyo-docs.config.ts</code> and page-specific details
59
+ in MDX frontmatter. The build validates both before publishing.
60
+ </Callout>
@@ -12,8 +12,30 @@ export default heyoDocs({
12
12
  icon: "globe",
13
13
  sections: [
14
14
  {
15
- section: "Get started",
16
- pages: ["index"],
15
+ pages: [
16
+ {
17
+ title: "Documentation",
18
+ src: "https://docs.heyo.sh/introduction",
19
+ icon: "book",
20
+ },
21
+ ],
22
+ },
23
+ {
24
+ section: "Get Started",
25
+ icon: "lightbulb",
26
+ pages: ["quickstart", "configuration", "deploying"],
27
+ },
28
+ {
29
+ section: "Essentials",
30
+ icon: "book",
31
+ pages: [
32
+ "essentials/text-styling",
33
+ "essentials/code-blocks",
34
+ "essentials/callouts",
35
+ "essentials/tabs",
36
+ "essentials/lists",
37
+ "essentials/tables",
38
+ ],
17
39
  },
18
40
  ],
19
41
  },