Repository navigation
XRobot Style conformance for the docs, Onboarding and the robot arm - #30
Merged
Merged
Conversation
… Style requires Tables, inline code, blockquotes and figures lose their 2-4px radius; the hr and the long-code fold use solid fills instead of gradients; the active sidebar, TOC and breadcrumb items use weight 700 instead of 650; the fold toggle and the back-to-top label use the label type size. Tables get tabular figures so the perf columns line up.
The page stored its theme under its own key, so a reader who picked a theme on the site got the other one here, and the theme was applied only after the page scripts ran. It now reads and writes the Docusaurus key "theme" (the old key is still read as a fallback) and applies the theme from an inline script in <head>. Button labels and the footer note lose their emoji.
…creenshots The favicon is the square mark (static/img/favicon.svg), ink on light and paper on dark browser chrome, instead of the 2000x1500 wordmark PNG. The intro page shows the wordmark through ThemedImage (ink file on light, paper file on dark), so the invert filter for the PNG goes away. The five HPM setup screenshots are not referenced by any page. static/img/XRobot.png stays: libxr's doc/header.html still loads it from xrobot.work as the API docs favicon.
The moving part of the arm was drawn with a copy of the colour tokens of both themes in armRig.js, so a change to xrstyle-tokens.css or xrstyle-materials.css reached the still frame but not the animated one. arm.ts now reads the resolved values from <html> when a frame is drawn, and the copy is gone. The drawing output is unchanged for every key pose in both themes. The beat's hero accent, which XRobot Style does not have and the teach motion does not draw, maps to ink.
Infima displays tables as blocks so wide ones scroll; the frame then ran to the full text width while narrow tables ended halfway, leaving an empty framed area. fit-content with max-width: 100% keeps the frame on the columns and the scrolling for wide tables.
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.
Brings the documentation pages, the Onboarding page and the robot arm widget in line with XRobot Style.
xrstyle-reading.css): tables, inline code, blockquotes and figures use square corners;hrand the long-code fold use solid fills instead of gradients; active sidebar, TOC and breadcrumb items use weight 700 instead of 650; the fold toggle and the back-to-top label use the label type size; tables use tabular figures and their frame follows the columns.themekey (the oldxrobot_onboarding_themekey is still read as a fallback) and applies the theme from an inline script in<head>, so the page opens in the theme picked on the site. Button labels and the footer note lose their emoji.static/img/favicon.svg), ink on light and paper on dark browser chrome, instead of the 2000x1500 wordmark PNG. The intro page shows the wordmark throughThemedImage.armRig.jsis removed. The drawing output is unchanged for every key pose in both themes.static/img/XRobot.pngstays because libxr'sdoc/header.htmlloads it from xrobot.work as the API docs favicon.