feat(examples): add rustdoc example#280
Merged
Merged
Conversation
Bundle ReportChanges will increase total bundle size by 2.12kB (19.39%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: shared-web-array-pushAssets Changed:
Files in
Files in
Files in
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #280 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 104 127 +23
Branches 30 35 +5
=========================================
+ Hits 104 127 +23
Continue to review full report in Codecov by Sentry.
|
Copy crowdin assets beside every generated rustdoc HTML page and simplify the rustdoc hook to load those files directly. Add a recursive finder for generated HTML dirs in the example build script and update example docs to explain the hook location and behavior. Improve crowdin.js by adding retryable platform-specific styling logic for Sphinx and rustdoc, minor constants, and a small refactor to apply styling via a helper; also harden fetch interception edge cases. Add new and expanded Jest tests (platform styling retries, fetch-edge cases, global exposure in Node, and load-script no-callback handling) and tighten test coverage settings in package.json while excluding generated *-css.js files from coverage.
2624850 to
1edb51b
Compare
Move cargo doc invocation out of rustdoc/build.js and into the npm "build" script (package.json). Simplify build.js to assume docs are produced under examples/rustdoc/build/html/rustdoc and remove the spawnSync cargo call and READTHEDOCS_OUTPUT branching. Update .readthedocs.yaml to create and copy the built rustdoc HTML into the ReadTheDocs output directory. Refactor crowin tests to add a shared expectDelayedStyling helper and reuse delayed picker markup to reduce duplication.
Introduce a new SCSS theme for the JSdoc site and wire it into the build and docs. Added src/css/clean-jsdoc-theme.scss and a small src/js module that imports it, updated webpack.config.js to emit a clean-jsdoc-theme-css bundle, and included the generated CSS in jsdoc.json so the theme CSS is loaded alongside the existing Crowdin CSS.
|
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.



Description
Add rustdoc example.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage