Repository navigation
[website] Scala SSG + SPA replacing the docsify docs site - #1676
Conversation
|
The dropdown for version doesn't work on the preview link. |
|
Checking out the preview site for doctest it seems there are some documentation/markdown issues: https://kyo-preview.surge.sh/latest/kyo-doctest/
|
I decided not support old versions because the pipeline relies on the module listing in the main README to render, and the old versions don't have that. New versions should appear there
fixing |
Problem The docs site was a docsify setup: hand-maintained HTML and CSS under docs/, with no typed model of the content, no real landing page, and ad-hoc versioning and deploy. Solution Replace docs/ with a Scala 3 static-site generator (kyo-website) and a kyo-ui / kyo-http single-page bundle (kyo-website-bundle). - Content reads the live repo. The root README's Modules table drives the catalog and the sidebar, and each module README renders to a page. Versioning is forward-only: the current release builds from the live tree, with any prior snapshots appended. - LandingApp is the landing page: the hero code card, the compounding- failure gap chart, the four-rung layered-safety ladder, the one- foundation capability cards, the adoption paths with a ZIO and Cats Effect interop receipt, the platforms section with a scroll-drawn one-codebase-to-four-targets connector, and the footer. - SiteApp is the shell: client-side routing, search, the version selector (full reload on switch), the scroll-revealed chart and connector draws, and the theme toggle. - deploy-site.yml renders from the live repo; the scaladoc workflow is updated to match. Notes - The bundle and UI cross-compile to JVM, JS, Native, and Wasm; the tests live in shared sources. - build.sbt registers the kyo-website and kyo-website-bundle modules. - kyo-ui gains the chart legend and transition internals the gap chart draws with; kyo-browser carries the Chrome-parity screenshot test the renderer is checked against. - The old docsify site under docs/ is removed.
A typed setter for the CSS font-variant-ligatures property (normal / none), mirroring the existing fontStyle pair: enum, Prop case, instance and companion setters, and the renderer mapping. none lets a ligature-carrying programming font show literal characters (--, <!--, -->, ->) instead of fusing them into a dash or arrow glyph.
Two rendering bugs on module pages, both visible on the kyo-doctest page. inlineCode only handled single-backtick spans, so a CommonMark N-backtick span like ```` ```scala ```` (used in prose to show a literal triple-backtick token) leaked stray backticks and bled the code chip across the surrounding prose. It now reads the opening run of N backticks and closes on the next run of N, with the standard one-space padding strip. The mono font (JetBrains Mono) fuses --, <!--, -->, -> into dash and arrow ligatures, which misrepresents literal source in the docs (a doctest README shows <!-- doctest:default --> markers that must read as exact ASCII). The page body now sets font-variant-ligatures: none, which inherits to every code panel and inline chip.
The Hidden-carrier example wrapped a triple-backtick scala block in a triple-backtick markdown fence, which is malformed: the inner ``` closes the outer block early, and the trailing ``` opens an unclosed fence that swallows the following section. A 4-backtick wrapper (matching the other nested examples in this README) renders it as one literal block on both the docs site and GitHub.
A bare backtick run in prose with no matching closing run (a literal ```scala written mid-sentence) was opening a code span that swallowed the rest of the line up to the next real inline-code chip, eating word spacing and chip delimiters. inlineCode now follows CommonMark: an unmatched opening run is literal text, consumed so parsing resumes after it, instead of backtracking into a spurious shorter span.
The intro wrote a bare ```scala mid-sentence; wrapping it in a 4-backtick inline span renders it as a clean code chip, matching how the rest of the README shows fenced-block syntax.
|
I've decided to omit the version drop down if there's a single version. It'll show up as we make new releases. The issue with rendering in |
The header nav carried Docs, API, and GitHub. Add a Community link with the Discord glyph pointing to the invite, mirroring the footer's existing Discord treatment. Widen LandingApp.discordMark to private[website] so SiteApp can reuse the glyph, and cover the new link in SiteAppTest.
|
Found 1 test failure on Blacksmith runners: Failure
|


Problem
The docs site was a docsify setup: hand-maintained HTML and CSS under docs/, with no typed model of the content, no real landing page, and ad-hoc versioning and deploy.
Solution
Replace docs/ with a Scala 3 static-site generator (kyo-website) and a kyo-ui / kyo-http single-page bundle (kyo-website-bundle).
Notes
Preview: http://kyo-preview.surge.sh