docs: split index into 3 static HTML pages (Welcome, API, Articles)#272
Merged
docs: split index into 3 static HTML pages (Welcome, API, Articles)#272
Conversation
- 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>
|
Contributor
Run report for 19631848Total time: 27.5s | Comparison time: 25.3s | Estimated loss: 2.3s (8.2% slower)
Touched files |
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.
Splits the Leonardo docs index page into three static HTML pages with real navigation instead of JS-toggled content.
Changes:
index.html(existing route, now static)api.htmlarticles.htmlImplementation:
home_sidenav_links.htmlpartial with<a href>links; side nav highlights current page viahome.jshome.jsfor doc pages (dark mode, page loader, nav active state)index.htmlrewritten to useheader_home,home_sidenav_links, and onlyhome_maincontenttheme.html,scales.html,tools.htmlunchangedGitHub Actions: No workflow changes needed. Deploy already runs
moon run ui:buildSiteand uploadsdocs/ui/dist/; the new pages are included in the Vite build output.Made with Cursor