Skip to content

Commit c804e07

Browse files
authored
fix: katex maths expressions in cloud pricing page (#995)
1 parent a9e7b58 commit c804e07

File tree

11 files changed

+126
-12
lines changed

11 files changed

+126
-12
lines changed

docs/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ In Logto, our [Pro plan](https://logto.io/pricing) is fully self-serve, designed
1313
The basic structure looks like this:
1414

1515
```math
16-
\text{Your next bill} = \$16\text{ (base price)} + \text{add-on cost (unbilled usage)} + \text{add-on cost (next cycle charge)}
16+
\begin{align*}
17+
\text{Your next bill} &= \$16 \text{(base price)} \\
18+
&+ \text{add-on cost (unbilled usage)} \\
19+
&+ \text{add-on cost (next cycle charge)}
20+
\end{align*}
1721
```
1822

1923
In the console, you'll find a "Your next bill" section in the tenant setting section, where you can monitor and control your upcoming charges.

i18n/de/docusaurus-plugin-content-docs/current/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ In Logto ist unser [Pro-Plan](https://logto.io/pricing) vollständig selbstbedie
1313
Die Grundstruktur sieht folgendermaßen aus:
1414

1515
```math
16-
\text{Deine nächste Rechnung} = \$16\text{ (Grundpreis)} + \text{Zusatzkosten (nicht abgerechnete Nutzung)} + \text{Zusatzkosten (nächste Zyklusgebühr)}
16+
\begin{align*}
17+
\text{Deine nächste Rechnung} &= \$16 \text{(Grundpreis)} \\
18+
&+ \text{Zusatzkosten (nicht abgerechnete Nutzung)} \\
19+
&+ \text{Zusatzkosten (nächste Zyklusgebühren)}
20+
\end{align*}
1721
```
1822

1923
In der Konsole findest du im Abschnitt "Deine nächste Rechnung" in den Mandanteneinstellungen, wo du deine bevorstehenden Gebühren überwachen und kontrollieren kannst.

i18n/es/docusaurus-plugin-content-docs/current/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ En Logto, nuestro [plan Pro](https://logto.io/pricing) es completamente autoserv
1313
La estructura básica es la siguiente:
1414

1515
```math
16-
\text{Tu próxima factura} = \$16\text{ (precio base)} + \text{costo adicional (uso no facturado)} + \text{costo adicional (cargo del próximo ciclo)}
16+
\begin{align*}
17+
\text{Tu próxima factura} &= \$16 \text{(precio base)} \\
18+
&+ \text{costo adicional (uso no facturado)} \\
19+
&+ \text{costo adicional (cargo del próximo ciclo)}
20+
\end{align*}
1721
```
1822

1923
En la consola, encontrarás una sección "Tu próxima factura" en la configuración del inquilino, donde puedes monitorear y controlar tus próximos cargos.

i18n/fr/docusaurus-plugin-content-docs/current/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Dans Logto, notre [plan Pro](https://logto.io/pricing) est entièrement en libre
1313
La structure de base ressemble à ceci :
1414

1515
```math
16-
\text{Votre prochaine facture} = \$16\text{ (prix de base)} + \text{coût supplémentaire (utilisation non facturée)} + \text{coût supplémentaire (facturation du prochain cycle)}
16+
\begin{align*}
17+
\text{Votre prochaine facture} &= \$16\text{ (prix de base)} \\
18+
&+ \text{coût supplémentaire (utilisation non facturée)} \\
19+
&+ \text{coût supplémentaire (facturation du prochain cycle)}
20+
\end{align*}
1721
```
1822

1923
Dans la console, vous trouverez une section "Votre prochaine facture" dans la section des paramètres du locataire, où vous pouvez surveiller et contrôler vos frais à venir.

i18n/ja/docusaurus-plugin-content-docs/current/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Logto では、[Pro プラン](https://logto.io/pricing) は完全にセルフ
1313
基本的な構造は次のようになります:
1414

1515
```math
16-
\text{次の請求書} = \$16\text{ (基本価格)} + \text{追加コスト (未請求の使用量)} + \text{追加コスト (次のサイクルの請求)}
16+
\begin{align*}
17+
\text{次の請求書} &= \$16 \text{(基本価格)} \\
18+
&+ \text{追加コスト (未請求の使用量)} \\
19+
&+ \text{追加コスト (次のサイクルの請求)}
20+
\end{align*}
1721
```
1822

1923
コンソールでは、テナント設定セクションに「次の請求書」セクションがあり、今後の請求を監視および管理できます。

i18n/pt-BR/docusaurus-plugin-content-docs/current/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ No Logto, nosso [plano Pro](https://logto.io/pricing) é totalmente self-service
1313
A estrutura básica é assim:
1414

1515
```math
16-
\text{Sua próxima fatura} = \$16\text{ (preço base)} + \text{custo adicional (uso não faturado)} + \text{custo adicional (cobrança do próximo ciclo)}
16+
\begin{align*}
17+
\text{Sua próxima fatura} &= \$16 \text{(preço base)} \\
18+
&+ \text{custo adicional (uso não faturado)} \\
19+
&+ \text{custo adicional (cobrança do próximo ciclo)}
20+
\end{align*}
1721
```
1822

1923
No console, você encontrará uma seção "Sua próxima fatura" na seção de configurações do locatário, onde pode monitorar e controlar suas cobranças futuras.

i18n/zh-CN/docusaurus-plugin-content-docs/current/logto-cloud/billing-and-pricing.mdx

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ sidebar_position: 5
1313
基本结构如下所示:
1414

1515
```math
16-
\text{你的下一个账单} = \$16\text{(基础价格)} + \text{附加费用(未计费使用)} + \text{附加费用(下一个周期费用)}
16+
\begin{align*}
17+
\text{你的下一个账单} &= \$16 \text{(基础价格)} \\
18+
&+ \text{附加费用(未计费使用)} \\
19+
&+ \text{附加费用(下一个周期费用)}
20+
\end{align*}
1721
```
1822

1923
在控制台中,你会在租户设置部分找到“你的下一个账单”部分,可以在这里监控和控制即将到来的费用。

src/scss/custom.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -853,4 +853,10 @@ details {
853853
border-block: 1px solid var(--logto-line-divider);
854854
border-radius: 0;
855855
padding: 16px 0;
856-
}
856+
}
857+
858+
.katex-display {
859+
padding: 1em 0;
860+
margin: 0;
861+
overflow-x: auto;
862+
}

src/theme/Layout/index.tsx

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import ErrorBoundary from '@docusaurus/ErrorBoundary';
2+
import { PageMetadata, SkipToContentFallbackId, ThemeClassNames } from '@docusaurus/theme-common';
3+
import { useKeyboardNavigation } from '@docusaurus/theme-common/internal';
4+
import AnnouncementBar from '@theme/AnnouncementBar';
5+
import ErrorPageContent from '@theme/ErrorPageContent';
6+
import Footer from '@theme/Footer';
7+
import type { Props } from '@theme/Layout';
8+
import LayoutProvider from '@theme/Layout/Provider';
9+
import Navbar from '@theme/Navbar';
10+
import SkipToContent from '@theme/SkipToContent';
11+
import clsx from 'clsx';
12+
import { type ReactNode } from 'react';
13+
import 'katex/dist/katex.min.css';
14+
15+
import styles from './styles.module.css';
16+
17+
export default function Layout(props: Props): ReactNode {
18+
const {
19+
children,
20+
noFooter,
21+
wrapperClassName,
22+
// Not really layout-related, but kept for convenience/retro-compatibility
23+
title,
24+
description,
25+
} = props;
26+
27+
useKeyboardNavigation();
28+
29+
return (
30+
<LayoutProvider>
31+
<PageMetadata title={title} description={description} />
32+
33+
<SkipToContent />
34+
35+
<AnnouncementBar />
36+
37+
<Navbar />
38+
39+
<div
40+
id={SkipToContentFallbackId}
41+
className={clsx(ThemeClassNames.wrapper.main, styles.mainWrapper, wrapperClassName)}
42+
>
43+
<ErrorBoundary fallback={(params) => <ErrorPageContent {...params} />}>
44+
{children}
45+
</ErrorBoundary>
46+
</div>
47+
48+
{!noFooter && <Footer />}
49+
</LayoutProvider>
50+
);
51+
}

src/theme/Layout/styles.module.css

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
html,
2+
body {
3+
height: 100%;
4+
}
5+
6+
.mainWrapper {
7+
flex: 1 0 auto;
8+
display: flex;
9+
flex-direction: column;
10+
}
11+
12+
/* Docusaurus-specific utility class */
13+
:global(.docusaurus-mt-lg) {
14+
margin-top: 3rem;
15+
}
16+
17+
:global(#__docusaurus) {
18+
min-height: 100%;
19+
display: flex;
20+
flex-direction: column;
21+
}

tutorial/build-with-logto/metadata.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@
900900
"permalink": "/integrations/oauth2"
901901
},
902902
"next": {
903-
"title": "WeChat (Native)",
904-
"permalink": "/integrations/wechat-native"
903+
"title": "SAML (Social)",
904+
"permalink": "/integrations/saml"
905905
}
906906
},
907907
{
@@ -913,7 +913,7 @@
913913
"slug": "/integrations/saml",
914914
"permalink": "/integrations/saml",
915915
"draft": false,
916-
"unlisted": true,
916+
"unlisted": false,
917917
"editUrl": "https://github.com/logto-io/docs/tree/master/docs/integrations/social/saml/README.mdx",
918918
"tags": [],
919919
"version": "current",
@@ -927,7 +927,15 @@
927927
"tutorial_name": "SAML",
928928
"tutorial_config_name": "Standard SAML app"
929929
},
930-
"sidebar": "integrationsSidebar"
930+
"sidebar": "integrationsSidebar",
931+
"previous": {
932+
"title": "OIDC (Social)",
933+
"permalink": "/integrations/oidc"
934+
},
935+
"next": {
936+
"title": "WeChat (Native)",
937+
"permalink": "/integrations/wechat-native"
938+
}
931939
}
932940
],
933941
"emailConnectors": [

0 commit comments

Comments
 (0)