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

Switch to Docusaurous themedImage #134

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 11 additions & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ sidebar_position: 1
title: "Introduction"
---

![](/img/logo-horizontal-rke2.svg#gh-light-mode-only)![](/img/logo-horizontal-rke2-dark.svg#gh-dark-mode-only)
import ThemedImage from '@theme/ThemedImage';
import useBaseUrl from '@docusaurus/useBaseUrl';

<ThemedImage
sources={{
light: useBaseUrl('/img/logo-horizontal-rke2.svg'),
dark: useBaseUrl('/img/logo-horizontal-rke2-dark.svg'),
}}
style={{width: "350px"}}
/>


RKE2, also known as RKE Government, is Rancher's next-generation Kubernetes distribution.

Expand Down
5 changes: 0 additions & 5 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ hr {
padding: 0 var(--ifm-pre-padding);
}

[data-theme='light'] img[src$='#gh-dark-mode-only'],
[data-theme='dark'] img[src$='#gh-light-mode-only'] {
display: none;
}

/* Mobile */
@media (max-width: 996px) {

Expand Down