Skip to content

docs: split index into 3 static HTML pages (Welcome, API, Articles)#272

Merged
GarthDB merged 1 commit intomainfrom
docs/split-index-static-pages
Feb 20, 2026
Merged

docs: split index into 3 static HTML pages (Welcome, API, Articles)#272
GarthDB merged 1 commit intomainfrom
docs/split-index-static-pages

Conversation

@GarthDB
Copy link
Copy Markdown
Member

@GarthDB GarthDB commented Feb 20, 2026

Splits the Leonardo docs index page into three static HTML pages with real navigation instead of JS-toggled content.

Changes:

  • Welcomeindex.html (existing route, now static)
  • Leonardo JS APIapi.html
  • Articlesarticles.html

Implementation:

  • New home_sidenav_links.html partial with <a href> links; side nav highlights current page via home.js
  • New home.js for doc pages (dark mode, page loader, nav active state)
  • index.html rewritten to use header_home, home_sidenav_links, and only home_main content
  • theme.html, scales.html, tools.html unchanged

GitHub Actions: No workflow changes needed. Deploy already runs moon run ui:buildSite and uploads docs/ui/dist/; the new pages are included in the Vite build output.

Made with Cursor

- Add index.html (Welcome), api.html (Leonardo JS API), articles.html
- Add home_sidenav_links partial with <a href> nav; highlight current page via home.js
- Add home.js for doc pages (dark mode, page loader, nav active state)
- Use header_home and index.css for doc pages; theme/scales/tools unchanged
- Add api, articles to Vite rollup input

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 20, 2026

⚠️ No Changeset found

Latest commit: 1963184

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

Run report for 19631848

Total time: 27.5s | Comparison time: 25.3s | Estimated loss: 2.3s (8.2% slower)

Action Time Status Info
⬛️ SetupProto(0.52.3) 0.1ms Skipped
🟩 SyncWorkspace 7.7ms Passed
🟩 SyncProject(contrast-colors) 0.3ms Passed
🟩 SyncProject(ui) 0.3ms Passed
⬛️ SetupToolchain(node:24.0.0) 1.3s Skipped
🟩 InstallWorkspaceDeps(node:24.0.0) 0.3ms Passed
🟩 RunTask(ui:lint) 2s Passed
🟩 RunTask(ui:buildSite) 26.2s Passed
Touched files
docs/ui/src/api.html
docs/ui/src/articles.html
docs/ui/src/home.js
docs/ui/src/index.css
docs/ui/src/index.html
docs/ui/src/views/header_home.html
docs/ui/src/views/home_sidenav_links.html
docs/ui/vite.config.js

@GarthDB GarthDB merged commit 246d9f7 into main Feb 20, 2026
3 checks passed
@GarthDB GarthDB deleted the docs/split-index-static-pages branch February 20, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant