-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: katex maths expressions in cloud pricing page
- Loading branch information
1 parent
a9e7b58
commit 79269ae
Showing
10 changed files
with
114 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import ErrorBoundary from '@docusaurus/ErrorBoundary'; | ||
import { PageMetadata, SkipToContentFallbackId, ThemeClassNames } from '@docusaurus/theme-common'; | ||
import { useKeyboardNavigation } from '@docusaurus/theme-common/internal'; | ||
import AnnouncementBar from '@theme/AnnouncementBar'; | ||
import ErrorPageContent from '@theme/ErrorPageContent'; | ||
import Footer from '@theme/Footer'; | ||
import type { Props } from '@theme/Layout'; | ||
import LayoutProvider from '@theme/Layout/Provider'; | ||
import Navbar from '@theme/Navbar'; | ||
import SkipToContent from '@theme/SkipToContent'; | ||
import clsx from 'clsx'; | ||
import { type ReactNode } from 'react'; | ||
import 'katex/dist/katex.min.css'; | ||
|
||
import styles from './styles.module.css'; | ||
|
||
export default function Layout(props: Props): ReactNode { | ||
const { | ||
children, | ||
noFooter, | ||
wrapperClassName, | ||
// Not really layout-related, but kept for convenience/retro-compatibility | ||
title, | ||
description, | ||
} = props; | ||
|
||
useKeyboardNavigation(); | ||
|
||
return ( | ||
<LayoutProvider> | ||
<PageMetadata title={title} description={description} /> | ||
|
||
<SkipToContent /> | ||
|
||
<AnnouncementBar /> | ||
|
||
<Navbar /> | ||
|
||
<div | ||
id={SkipToContentFallbackId} | ||
className={clsx(ThemeClassNames.wrapper.main, styles.mainWrapper, wrapperClassName)} | ||
> | ||
<ErrorBoundary fallback={(params) => <ErrorPageContent {...params} />}> | ||
{children} | ||
</ErrorBoundary> | ||
</div> | ||
|
||
{!noFooter && <Footer />} | ||
</LayoutProvider> | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
.mainWrapper { | ||
flex: 1 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
/* Docusaurus-specific utility class */ | ||
:global(.docusaurus-mt-lg) { | ||
margin-top: 3rem; | ||
} | ||
|
||
:global(#__docusaurus) { | ||
min-height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} |