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

chore: default to dark mode and enable theme switcher in documentation #3380

Merged
merged 7 commits into from
Jun 26, 2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion sites/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ module.exports = {
],
themes: [require.resolve("@docusaurus/theme-live-codeblock")],
themeConfig: {
defaultDarkMode: true,
navbar: {
logo: {
alt:
"Line drawing of a small moon orbiting around a planet with the words FAST next to it",
src: "https://static.fast.design/assets/fast-inline-logo.png",
srcDark: "https://static.fast.design/assets/fast-inline-logo.png",
src: "https://static.fast.design/assets/fast-inline-logo-light.png",
janechu marked this conversation as resolved.
Show resolved Hide resolved

// FIXME: #3299 Docusaurus displays a blank page when clicking the logo link without workaround
target: "_blank",
Expand Down
4 changes: 0 additions & 4 deletions sites/website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
padding: 0 var(--ifm-pre-padding);
}

div.react-toggle {
display: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A fine bit of code that is sadly no-longer needed ;)


.example-dialog::part(control) {
--dialog-width: 400px;
--dialog-height: auto;
Expand Down