Skip to content

Commit b04f997

Browse files
committed
Organize v1 documentation
1 parent 4e4f405 commit b04f997

9 files changed

Lines changed: 43 additions & 33 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ Some options add commands. For example, `--addons turborepo` adds `bun run check
135135
## Docs
136136

137137
- [Docs index](./docs/README.md): where to start.
138-
- [CLI reference](./docs/cli.md): every command and operational flag.
139-
- [Stack options](./docs/options.md): what each option adds and where to find it after scaffolding.
140-
- [Generated project guide](./docs/generated-project.md): file structure, app lifecycle, and maintenance workflow.
141-
- [Add command](./docs/add-command.md): how to grow an existing generated app.
142-
- [Manifest reference](./docs/manifest.md): `ces.json` fields and schema.
143-
- [Templates](./docs/templates.md): how template overlays are organized.
144-
- [V1 release plan](./docs/v1-plan.md): release gates for moving from pre-release to `1.0.0`.
138+
- [CLI reference](./docs/reference/cli.md): every command and operational flag.
139+
- [Stack options](./docs/reference/options.md): what each option adds and where to find it after scaffolding.
140+
- [Manifest reference](./docs/reference/manifest.md): `ces.json` fields and schema.
141+
- [Generated project guide](./docs/guides/generated-project.md): file structure, app lifecycle, and maintenance workflow.
142+
- [Add command](./docs/guides/add-command.md): how to grow an existing generated app.
143+
- [Templates](./docs/internals/templates.md): how template overlays are organized.
144+
- [V1 release plan](./docs/roadmap/v1-plan.md): release gates for moving from pre-release to `1.0.0`.
145145
- [LLM guide](./docs/llm.txt): compact agent-oriented reference.
146146

147147
## Development

docs/README.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,43 @@ This folder is the durable reference for `create-electrobun-stack`. It is meant
44

55
## Start Here
66

7-
- [CLI reference](./cli.md) covers commands, flags, defaults, and examples.
8-
- [Stack options](./options.md) explains each scaffold option, what files it affects, and the combinations that are valid.
9-
- [Generated project guide](./generated-project.md) explains the app that gets created and how to work in it after scaffolding.
10-
- [Add command](./add-command.md) explains how existing generated apps are expanded through `ces.json`.
11-
- [Manifest reference](./manifest.md) documents `ces.json` and links to the JSON schema.
12-
- [Templates](./templates.md) explains the template overlay structure used by the generator.
13-
- [V1 release plan](./v1-plan.md) tracks the work needed to move from pre-release to `1.0.0`.
7+
- [CLI reference](./reference/cli.md) covers commands, flags, defaults, and examples.
8+
- [Stack options](./reference/options.md) explains each scaffold option, what files it affects, and the combinations that are valid.
9+
- [Manifest reference](./reference/manifest.md) documents `ces.json` and links to the JSON schema.
10+
- [Generated project guide](./guides/generated-project.md) explains the app that gets created and how to work in it after scaffolding.
11+
- [Add command](./guides/add-command.md) explains how existing generated apps are expanded through `ces.json`.
12+
- [Templates](./internals/templates.md) explains the template overlay structure used by the generator.
13+
- [V1 release plan](./roadmap/v1-plan.md) tracks the work needed to move from pre-release to `1.0.0`.
1414
- [LLM guide](./llm.txt) is a compact plain-text summary for agents and retrieval systems.
1515

16+
## Folder Map
17+
18+
- `reference/` holds stable CLI, option, and manifest contracts.
19+
- `guides/` holds task-oriented docs for working with generated projects.
20+
- `internals/` holds contributor-facing implementation docs.
21+
- `roadmap/` holds planning docs and release gates.
22+
- `ces.schema.json` stays at the docs root because generated manifests point at that public path.
23+
- `llm.txt` stays at the docs root as the compact retrieval entrypoint.
24+
1625
## Recommended Reading Path
1726

1827
For a first app:
1928

2029
1. Read the root [README](../README.md).
21-
2. Use [CLI reference](./cli.md) for commands.
22-
3. Use [Stack options](./options.md) before choosing optional integrations.
23-
4. Use [Generated project guide](./generated-project.md) once the app exists.
30+
2. Use [CLI reference](./reference/cli.md) for commands.
31+
3. Use [Stack options](./reference/options.md) before choosing optional integrations.
32+
4. Use [Generated project guide](./guides/generated-project.md) once the app exists.
2433

2534
For contributing to the generator:
2635

27-
1. Read [Templates](./templates.md) to understand `base` and option overlays.
28-
2. Read [Manifest reference](./manifest.md) before changing `ces.json`.
36+
1. Read [Templates](./internals/templates.md) to understand `base` and option overlays.
37+
2. Read [Manifest reference](./reference/manifest.md) before changing `ces.json`.
2938
3. Update [LLM guide](./llm.txt) when user-facing options or behavior changes.
3039

3140
## Documentation Rules
3241

33-
- Keep this folder flat unless a topic becomes large enough to justify a subfolder.
42+
- Place new docs in the folder that matches the reader: `reference/`, `guides/`, `internals/`, or `roadmap/`.
43+
- Add a new top-level docs file only for stable public paths or machine-readable entrypoints.
3444
- Prefer exact flag names, generated paths, and commands over broad descriptions.
3545
- Document what exists now. Mark future ideas as future work only when they are relevant to current behavior.
36-
- When adding a scaffold option, update `cli.md`, `options.md`, `generated-project.md` if generated files change, `manifest.md` if manifest fields change, `templates.md` if template layout changes, and `llm.txt`.
46+
- When adding a scaffold option, update `reference/cli.md`, `reference/options.md`, `guides/generated-project.md` if generated files change, `reference/manifest.md` if manifest fields change, `internals/templates.md` if template layout changes, and `llm.txt`.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ Before distributing an app generated by this stack:
169169
- Node engine mismatch: use Node.js `>=20.19.0` when running the published generator through npm or npx.
170170
- Electrobun platform support: run and package generated apps on a desktop OS supported by Electrobun.
171171
- Package manager install failures: rerun the generated install command shown in the README, then rerun typecheck and build.
172-
- Unsupported option combinations: rerun the generator or `add` command with a supported combination from [Stack Options](./options.md).
172+
- Unsupported option combinations: rerun the generator or `add` command with a supported combination from [Stack Options](../reference/options.md).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ When adding a scaffold option:
150150
4. Add template data in `src/scaffold.ts`.
151151
5. Add a new option directory only when the option needs new files or an overlay.
152152
6. Update tests in `tests/cli.test.ts`.
153-
7. Update `README.md`, `docs/cli.md`, `docs/options.md`, `docs/generated-project.md`, `docs/manifest.md`, and `docs/llm.txt`.
153+
7. Update `README.md`, `docs/reference/cli.md`, `docs/reference/options.md`, `docs/guides/generated-project.md`, `docs/reference/manifest.md`, and `docs/llm.txt`.
154154

155155
Keep option overlays narrow. A template directory should own a feature, not a broad refactor of unrelated base files.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The manifest is used for:
99
- Letting `create-electrobun-stack add` expand the project later.
1010
- Giving tools and LLMs a structured source of truth for generated features.
1111

12-
The schema is published in this repository at [ces.schema.json](./ces.schema.json). Generated manifests point `$schema` at the package version on unpkg.
12+
The schema is published in this repository at [ces.schema.json](../ces.schema.json). Generated manifests point `$schema` at the package version on unpkg.
1313

1414
## Compatibility Policy
1515

@@ -170,5 +170,5 @@ If a new stack option is added to the generator, update:
170170
- `src/manifest.ts`
171171
- `docs/ces.schema.json`
172172
- This page
173-
- `docs/options.md`
173+
- `docs/reference/options.md`
174174
- `docs/llm.txt`
File renamed without changes.

docs/v1-plan.md renamed to docs/roadmap/v1-plan.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ The release is ready when:
3030

3131
Goal: decide what V1 promises and avoid accidental breaking changes after release.
3232

33-
Status: completed in the repo. Evidence lives in `docs/cli.md`, `docs/options.md`, `docs/manifest.md`, `docs/add-command.md`, `src/cli.ts`, `src/prompts.ts`, and `tests/cli.test.ts`.
33+
Status: completed in the repo. Evidence lives in `docs/reference/cli.md`, `docs/reference/options.md`, `docs/reference/manifest.md`, `docs/guides/add-command.md`, `src/cli.ts`, `src/prompts.ts`, and `tests/cli.test.ts`.
3434

3535
- Freeze the V1 CLI command shape:
3636
- `create-electrobun-stack <project>`
3737
- `create-electrobun-stack add`
3838
- `--dry-run`, `--yes`, `--cwd`, `--install`, `--git`, and stack flags.
39-
- Mark the V1-supported stack options in `docs/options.md`.
39+
- Mark the V1-supported stack options in `docs/reference/options.md`.
4040
- Decide whether `minimal`, `standard`, and `full` should remain aliases for V1 or whether only `minimal` should be advertised.
4141
- Document the compatibility rules for `ces.json`:
4242
- V1 manifests are additive.
4343
- Existing generated apps should keep working with future `add` features.
4444
- Breaking manifest migrations require a documented migration path.
45-
- Add a short compatibility policy to `docs/manifest.md`.
45+
- Add a short compatibility policy to `docs/reference/manifest.md`.
4646

4747
Exit criteria:
4848

@@ -54,7 +54,7 @@ Exit criteria:
5454

5555
Goal: make the stack chooser feel complete before V1 without adding new categories or padding the CLI with weak options.
5656

57-
Status: scoped for V1. The option set includes multiple meaningful choices in the categories that are ready for V1, and intentionally narrow categories are documented in `docs/options.md`. Post-V1 option expansion is tracked in GitHub issue #3.
57+
Status: scoped for V1. The option set includes multiple meaningful choices in the categories that are ready for V1, and intentionally narrow categories are documented in `docs/reference/options.md`. Post-V1 option expansion is tracked in GitHub issue #3.
5858

5959
Use these rules for the V1 option depth pass:
6060

@@ -165,10 +165,10 @@ Goal: make the first-run path clear and keep generated project docs accurate.
165165
Status: completed for the pre-RC documentation pass. The V1 public contract, option boundaries, manifest compatibility, generated-project lifecycle, troubleshooting notes, release checks, and changelog are represented in docs. The generated-project guide now reflects the actual default layout, including route, menu, and test files. The final pass should be repeated after RC feedback and before `1.0.0`.
166166

167167
- Verify root README commands against the packed package.
168-
- Keep `docs/cli.md` aligned with `parseArgs`.
169-
- Keep `docs/options.md` aligned with `src/options.ts`.
170-
- Keep `docs/manifest.md` and `docs/ces.schema.json` aligned with generated manifests.
171-
- Make `docs/generated-project.md` describe the actual default app lifecycle.
168+
- Keep `docs/reference/cli.md` aligned with `parseArgs`.
169+
- Keep `docs/reference/options.md` aligned with `src/options.ts`.
170+
- Keep `docs/reference/manifest.md` and `docs/ces.schema.json` aligned with generated manifests.
171+
- Make `docs/guides/generated-project.md` describe the actual default app lifecycle.
172172
- Update `docs/llm.txt` after any option or behavior change.
173173
- Add troubleshooting notes for:
174174
- Bun version mismatch,

0 commit comments

Comments
 (0)