Yokan / rebuild
Course 1 8624561

README.md

docs/README.md

documentation / design asset68 lines
1# Yokan KMP Field Guide23A dependency-free documentation website for developers learning Kotlin Multiplatform through Yokan.45## Preview locally67From the repository root:89```bash10python3 -m http.server 4173 --directory docs11```1213Open <http://localhost:4173>. Do not open the HTML files directly: serving them catches relative-link and asset-path mistakes that `file://` can hide.1415## Structure1617```text18docs/19├── index.html              Landing page and learning path20├── getting-started.html    Tooling, builds, and source sets21├── architecture.html       Startup, shared layers, and data flow22├── patterns.html           Reusable KMP patterns23├── MPV_INTEGRATION.md      Existing native media deep dive24└── assets/25    ├── app.js              Shared header, footer, theme, TOC, copy buttons26    ├── mark.svg            Site mark27    └── styles.css          Design tokens, layouts, components, responsive rules28```2930There is no package manager, generated output, or vendored web dependency. Everything under `docs/` is publishable as static files.3132## Update an existing chapter33341. Verify the claim against the current project source; link to the exact Codeberg file when useful.352. Explain the KMP principle first, then show how Yokan implements it.363. Keep snippets short enough to teach one decision. Do not duplicate whole production classes.374. Preserve heading IDs because the table of contents and inbound links use them.385. Preview desktop and mobile widths, test both color themes, and exercise every link.3940## Add a chapter41421. Copy the shell from an existing guide page.432. Give the body a unique `data-page` value.443. Add the page to `SITE_PAGES` in `assets/app.js`.454. Add it to the chapter list in each guide page's `.side-nav`.465. Connect it through the previous/next navigation.476. Add a short entry on the landing page when it changes the learning path.4849## Writing rules5051- Target developers who know basic Kotlin but are new to KMP.52- Use “shared” for code available to multiple targets and name the exact source set when precision matters.53- Distinguish Compose Multiplatform from Kotlin Multiplatform: shared UI is a project choice, not a KMP requirement.54- Treat Yokan as a reference, not as the only valid architecture.55- Mark transitional architecture honestly and describe only what the tree contains. For example, dependencies are wired by hand in `ServiceRegistry`/`YokanRuntime`; there is no DI framework.56- Prefer official Kotlin, JetBrains, Ktor, and Android documentation for external references.57- Update version-specific statements when `gradle/libs.versions.toml` changes.5859## Verification checklist6061- All HTML pages return HTTP 200.62- Header, footer, and navigation render with JavaScript enabled.63- The current page is announced with `aria-current="page"`.64- Table-of-contents links move to the correct section.65- Code copy controls work in a secure context or fall back to text selection.66- Layout remains readable at 375 px, 768 px, and desktop widths.67- Keyboard focus is visible; reduced-motion preferences are respected.68- Internal links and referenced source paths resolve.69

Search chapters, reference and source filenames.