Skip to content

Commit b96df38

Browse files
authored
chore(docs): Update documentation structure (#174)
## Summary Organize `lambda-rs` specifications and tutorials into feature-based subdirectories (rendering/audio/runtime). ## Related Issues ## Changes - Move specs into feature subdirectories: - Rendering: `docs/specs/rendering/` - Audio: `docs/specs/audio/` - Runtime/events: `docs/specs/runtime/` - Move tutorials into feature subdirectories: - `docs/tutorials/rendering/basics/` - `docs/tutorials/rendering/resources/` - `docs/tutorials/rendering/techniques/` - Update indexes: - `docs/specs/README.md` now groups specs by feature area and links to the new paths. - `docs/tutorials/README.md` now groups tutorials by feature area/level and links to the new paths. - Update references to moved docs: - `README.md` tutorial links updated. - `CONTRIBUTING.md` updated with new specs organization guidance. - `docs/specs/_spec-template.md` updated to instruct placing specs under area folders and adding them to the specs index. ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] Feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] Documentation (updates to docs, specs, tutorials, or comments) - [ ] Refactor (code change that neither fixes a bug nor adds a feature) - [ ] Performance (change that improves performance) - [ ] Test (adding or updating tests) - [ ] Build/CI (changes to build process or CI configuration) ## Affected Crates - [x] `lambda-rs` - [ ] `lambda-rs-platform` - [ ] `lambda-rs-args` - [ ] `lambda-rs-logging` - [ ] Other: ## Checklist - [ ] Code follows the repository style guidelines (`cargo +nightly fmt --all`) - [ ] Code passes clippy (`cargo clippy --workspace --all-targets -- -D warnings`) - [ ] Tests pass (`cargo test --workspace`) - [x] New code includes appropriate documentation - [ ] Public API changes are documented - [ ] Breaking changes are noted in this PR description ## Testing N/A ## Screenshots/Recordings N/A (documentation move/link updates only). ## Platform Testing - [ ] macOS - [ ] Windows - [ ] Linux ## Additional Notes - This PR changes doc file paths; any external deep links to the old locations will break and should be updated.
2 parents d9ae523 + 36f8135 commit b96df38

23 files changed

Lines changed: 84 additions & 34 deletions

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ When adding or modifying features:
7272
- Update rustdoc comments for public APIs.
7373
- Add or update examples in `crates/lambda-rs/examples/`.
7474
- Create or update specifications in `docs/specs/` for significant changes.
75+
- Add new specs to `docs/specs/README.md` and group them by feature area.
76+
- Place new specs under a matching subdirectory (for example, `docs/specs/rendering/`).
7577
- Follow the documentation tone and style guidelines in `AGENTS.md`.
7678

7779
## Questions and Discussions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Coming soon.
130130
Start with the tutorials to build features step by step:
131131

132132
* Tutorials index: [docs/tutorials/](./docs/tutorials/)
133-
* Uniform Buffers: Build a Spinning Triangle: [docs/tutorials/uniform-buffers.md](./docs/tutorials/uniform-buffers.md)
133+
* Uniform Buffers: Build a Spinning Triangle: [docs/tutorials/rendering/resources/uniform-buffers.md](./docs/tutorials/rendering/resources/uniform-buffers.md)
134134

135135
## Examples <a name="examples"></a>
136136

docs/specs/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "Specifications Index"
3+
document_id: "specs-index-2026-02-07"
4+
status: "living"
5+
created: "2026-02-07T00:00:00Z"
6+
last_updated: "2026-02-07T00:00:00Z"
7+
version: "0.1.0"
8+
owners: ["lambda-sh"]
9+
reviewers: ["engine"]
10+
tags: ["index", "specs", "docs"]
11+
---
12+
13+
## Rendering
14+
15+
- Uniform Buffers and Bind Groups — [rendering/uniform-buffers-and-bind-groups.md](rendering/uniform-buffers-and-bind-groups.md)
16+
- Textures and Samplers — [rendering/textures-and-samplers.md](rendering/textures-and-samplers.md)
17+
- Instanced Rendering — [rendering/instanced-rendering.md](rendering/instanced-rendering.md)
18+
- Indexed Draws and Multiple Vertex Buffers — [rendering/indexed-draws-and-multiple-vertex-buffers.md](rendering/indexed-draws-and-multiple-vertex-buffers.md)
19+
- Depth, Stencil, and MSAA — [rendering/depth-stencil-msaa.md](rendering/depth-stencil-msaa.md)
20+
- Offscreen Render Targets and Multipass — [rendering/offscreen-render-targets-and-multipass.md](rendering/offscreen-render-targets-and-multipass.md)
21+
22+
## Audio
23+
24+
- Audio Devices — [audio/audio-devices.md](audio/audio-devices.md)
25+
- Audio File Loading — [audio/audio-file-loading.md](audio/audio-file-loading.md)
26+
27+
## Runtime / Events
28+
29+
- Component Event Handling — [runtime/component-event-handling.md](runtime/component-event-handling.md)
30+
31+
## Templates
32+
33+
- Specification template — [_spec-template.md](_spec-template.md)

docs/specs/_spec-template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ tags: ["spec", "<area>"]
1717

1818
# <Specification Title>
1919

20+
Note: Place specifications under the appropriate area folder (for example,
21+
`docs/specs/rendering/`) and add them to `docs/specs/README.md`.
22+
2023
Summary
2124
- State the problem and the desired outcome in one paragraph.
2225
- Include a concise rationale for introducing or changing behavior.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Audio Device Abstraction"
33
document_id: "audio-device-abstraction-2026-01-28"
44
status: "draft"
55
created: "2026-01-28T22:59:00Z"
6-
last_updated: "2026-02-05T23:05:40Z"
6+
last_updated: "2026-02-07T00:00:00Z"
77
version: "0.1.18"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Audio File Loading (SoundBuffer)"
33
document_id: "audio-file-loading-2026-01-31"
44
status: "draft"
55
created: "2026-01-31T22:07:49Z"
6-
last_updated: "2026-02-05T23:05:40Z"
6+
last_updated: "2026-02-07T00:00:00Z"
77
version: "0.2.3"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"

docs/specs/depth-stencil-msaa.md renamed to docs/specs/rendering/depth-stencil-msaa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Depth/Stencil and Multi-Sample Rendering"
33
document_id: "depth-stencil-msaa-2025-11-11"
44
status: "draft"
55
created: "2025-11-11T00:00:00Z"
6-
last_updated: "2026-02-05T23:05:40Z"
6+
last_updated: "2026-02-07T00:00:00Z"
77
version: "0.5.1"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"

docs/specs/indexed-draws-and-multiple-vertex-buffers.md renamed to docs/specs/rendering/indexed-draws-and-multiple-vertex-buffers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Indexed Draws and Multiple Vertex Buffers"
33
document_id: "indexed-draws-multiple-vertex-buffers-2025-11-22"
44
status: "draft"
55
created: "2025-11-22T00:00:00Z"
6-
last_updated: "2026-02-05T23:05:40Z"
6+
last_updated: "2026-02-07T00:00:00Z"
77
version: "0.2.1"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"

docs/specs/instanced-rendering.md renamed to docs/specs/rendering/instanced-rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Instanced Rendering"
33
document_id: "instanced-rendering-2025-11-23"
44
status: "draft"
55
created: "2025-11-23T00:00:00Z"
6-
last_updated: "2025-11-25T02:20:00Z"
6+
last_updated: "2026-02-07T00:00:00Z"
77
version: "0.1.5"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"

docs/specs/offscreen-render-targets-and-multipass.md renamed to docs/specs/rendering/offscreen-render-targets-and-multipass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Offscreen Render Targets and Multipass Rendering"
33
document_id: "offscreen-render-targets-2025-11-25"
44
status: "draft"
55
created: "2025-11-25T00:00:00Z"
6-
last_updated: "2026-02-05T23:05:40Z"
6+
last_updated: "2026-02-07T00:00:00Z"
77
version: "0.2.6"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"

0 commit comments

Comments
 (0)