Repository navigation
docs-site: rebuild the documentation with Astro and Starlight - #2485
Open
renaudmathieu wants to merge 5 commits into
Open
renaudmathieu wants to merge 5 commits into
renaudmathieu wants to merge 5 commits into
Conversation
Add a new site in docs-site/, organized by platform, with old URLs kept through redirects. Marked code blocks are compiled and run by JVM, Android, KMP and multi-module harnesses, and compile failures are checked for KOIN-D001. Add the docs-site CI workflow, and reverse the runTest rule in AGENTS.md and projects/CLAUDE.md: a block body discards the promise on JS and Wasm, so failing tests pass.
Use the brand of the current site: self-hosted Raleway, #f8b133 and its dark surfaces, a dark top bar and homepage hero in both themes, brand primary buttons, a brand bar for the current page, and a single 0.4rem radius. Links stay a darker shade in the light theme, because the brand orange on white is only about 1.9:1.
Replace the Welcome page with a Quickstart that a reader can run from an empty folder, then break on purpose to see the compile-time check. - Rename the pages: How Koin works, Install Koin, Koin DSL or annotations? - Move What is DI to Concepts and Why Koin out of Get Started, into a new Evaluate Koin sidebar group with Koin vs Hilt. - Rewrite the pages on one example (UserRepository, UserService, UserApplication) and add snippet fixtures for every Kotlin block. - Add the Quickstart to the compile-failure cases (11 cases). - Update redirects, the decision map, diagrams and links across the site. Correct claims found while validating the text: - Constructor and Classic DSL need Kotlin 2.2 or later with Koin 4.2. - Annotations without the plugin remain possible with the deprecated KSP processor. - Applying the plugin to existing modules can report hidden problems. - koin-core targets are now listed, as it has no androidNative or wasmWasi. - "No reflection" now applies to the generated wiring only. - artifacts.mdx now states the runtime Kotlin minimum, matching the FAQ. - The glossary no longer limits class annotations to two special cases.
Reflect the open PR, the snippet and compile-failure checks, the Get Started restructure, the theme and the CI workflow. State which measurements predate these changes.
Test Examples failed to resolve binary-compatibility-validator 0.18.1 on 8525969. No content change.
arnaudgiuliani
self-requested a review
November 5, 2026 15:38
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebuilds the Koin documentation as an Astro and Starlight site in
docs-site/, organized by platform (Kotlin, Android, Compose, Kotlin Multiplatform, Ktor), with code blocks that CI compiles and runs. The legacydocs/folder is not touched, and the site is not deployed by this PR.What changes
src/data/redirects.json.{/* check: scenario */}are extracted and built by JVM, Android (Robolectric), KMP and real multi-module harnesses. 138 of the 317 Kotlin blocks on platform pages are checked, starting with the riskiest pages.npm run coverage:snippetsgives the count per page.check:compile-failuresbreaks generated code in 11 cases, including the Quickstart, and requires the build to fail withKOIN-D001.koin-styletabs only hold what differs between styles..github/workflows/docs-site.yml): redirects, Koin symbols, page templates, style tabs, snippets and compile failures.Changes outside
docs-site/AGENTS.mdandprojects/CLAUDE.md: therunTestrule forcommonTestis reversed. On JS and Wasm,fun test() { runTest { } }discards the promise, so a failing test passes. The rule now asks forfun test() = runTest { }. Checked with Kotlin 2.3.20 and coroutines 1.10.2..github/workflows/docs-site.yml: new workflow.Before switching over
legacy.insert-koin.iodoes not exist yet. Until it does, the 121 redirects for 4.1 and 4.0 and the "Older versions" links lead nowhere.docs-site/REPORT.mdanddocs-site/audit/are working documents: decide whether they stay.REPORT.mdsays which of its measurements predate the latest changes.Known limits
UserActivityin How Koin works is compiled but never launched. The composable path runs.compose/scopessays there is no annotation for the navigation scope.@Scope(NavBackStackEntry::class)may work, and this was not tested.get-started/dsl-or-annotationsassumes that a library built with the Compiler Plugin requires the plugin from its users. No page confirms this and the plugin source is not in this repository: to be confirmed by a maintainer.platforms/android/no longer land on their section (content moved tostartup-options).For maintainers to review
required by: dsl:UserService, and the Quickstart shows thatdsl:prefix as is.Related
startKoinlives in another Gradle module. The docs describe this limit.To raise separately: the
multimodule-ktorsample calls an API deprecated atERRORlevel,KoinNavigationScopeleaks its scope and its KDoc says otherwise,KoinFragmentScopereads the Activity scope, and there is no public API to resolve a ViewModel from iOS.Test plan
From
docs-site/, withANDROID_HOMEset:npm run build(94 pages, internal links valid)npm run check:redirects,check:symbols,check:templates,check:tabsnpm run check:snippets,check:snippets:android,check:snippets:kmp,check:snippets:multimodulenpm run check:compile-failures(11 of 11)