Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use development CSS and JS in docs to improve code readability #516

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ theme:
extra_css:
- https://unpkg.com/[email protected]/themes/prism-twilight.min.css # Prism JS syntax highlighting
- docs/_assets/stylesheets/extra.css # mkDocs theme tweaks
- docs/_assets/generated/docs-custom-properties.css # Load React UI CSS custom properties to make them accessible in the document root (outside shadowDOM) so we can preview colors etc.
- docs/_assets/generated/docs-custom-properties.development.css # Load React UI CSS custom properties to make them accessible in the document root (outside shadowDOM) so we can preview colors etc.

# Additional JS. Mind the order!
extra_javascript:
Expand All @@ -60,7 +60,7 @@ extra_javascript:
- https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.core.umd.min.js
- https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.dom.umd.min.js
- https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.react-dom.umd.min.js
- docs/_assets/generated/react-ui.js
- docs/_assets/generated/react-ui.development.js
- docs/_assets/js/ruiIcon.js
- docs/_assets/js/ruiSwatch.js

Expand Down
2 changes: 1 addition & 1 deletion src/docs/_assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* To improve component presentation we add padding inside the shadow DOM */
--docoff-preview-padding: 1em;
/* Custom preview CSS file, typically this would be the CSS of your component */
--docoff-preview-css: /docs/_assets/generated/react-ui.css;
--docoff-preview-css: /docs/_assets/generated/react-ui.development.css;

/* Visual configuration of the `<docoff-placeholder>` element */
--docoff-placeholder-background-dark: #4d4d4d;
Expand Down