Skip to content

Commit fd75dc7

Browse files
committed
chore: bump docusaurus, fixing #238
1 parent ade6dcb commit fd75dc7

File tree

3 files changed

+38
-22
lines changed

3 files changed

+38
-22
lines changed

docs/docusaurus.config.js renamed to docs/docusaurus.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
const lightCodeTheme = require('prism-react-renderer').themes.github
2-
const darkCodeTheme = require('prism-react-renderer').themes.dracula
1+
import type {Config} from '@docusaurus/types';
2+
import type * as Preset from '@docusaurus/preset-classic';
33

4-
/** @type {import('@docusaurus/types').DocusaurusConfig} */
5-
module.exports = {
4+
const config: Config = {
5+
future: {
6+
experimental_faster: true,
7+
},
68
title: 'FastAPI-Azure-Auth',
79
tagline: 'Easy and secure implementation of Azure Entra ID for your FastAPI APIs 🔒',
810
url: 'https://your-docusaurus-test-site.com',
@@ -54,11 +56,7 @@ module.exports = {
5456
],
5557
copyright: `Copyright © ${new Date().getFullYear()} Intility AS. Built with Docusaurus.`,
5658
},
57-
prism: {
58-
theme: lightCodeTheme,
59-
darkTheme: darkCodeTheme,
60-
},
61-
},
59+
} satisfies Preset.ThemeConfig,
6260
presets: [
6361
[
6462
'@docusaurus/preset-classic',
@@ -73,7 +71,7 @@ module.exports = {
7371
theme: {
7472
customCss: require.resolve('./src/css/custom.css'),
7573
},
76-
},
74+
} satisfies Preset.Options,
7775
],
7876
],
7977
plugins: [
@@ -90,3 +88,5 @@ module.exports = {
9088
// ],
9189
]
9290
}
91+
92+
export default config;

docs/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "3.5.2",
18-
"@docusaurus/preset-classic": "3.5.2",
19-
"@mdx-js/react": "3.0.1",
17+
"@docusaurus/core": "3.7.0",
18+
"@docusaurus/preset-classic": "3.7.0",
19+
"@docusaurus/faster": "3.7.0",
20+
"@mdx-js/react": "3.1.0",
2021
"@svgr/webpack": "8.1.0",
2122
"clsx": "2.1.1",
22-
"docusaurus-lunr-search": "3.5.0",
23+
"docusaurus-lunr-search": "3.6.0",
2324
"file-loader": "6.2.0",
24-
"prism-react-renderer": "2.4.0",
25-
"react": "18.3.1",
26-
"react-dom": "18.3.1",
25+
"prism-react-renderer": "2.4.1",
26+
"react": "^19.0.0",
27+
"react-dom": "^19.0.0",
2728
"react-github-btn": "1.4.0",
2829
"url-loader": "4.1.1"
2930
},

docs/src/css/custom.css

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* stylelint-disable docusaurus/copyright-header */
12
/**
23
* Any CSS included here will be global. The classic template
34
* bundles Infima by default. Infima is a CSS framework designed to
@@ -6,7 +7,7 @@
67

78
/* You can override the default Infima variables here. */
89
:root {
9-
--ifm-color-primary: #25c2a0;
10+
--ifm-color-primary: hsl(238, 72%, 50%);
1011
--ifm-color-primary-dark: rgb(33, 175, 144);
1112
--ifm-color-primary-darker: rgb(31, 165, 136);
1213
--ifm-color-primary-darkest: rgb(26, 136, 112);
@@ -16,13 +17,27 @@
1617
--ifm-code-font-size: 95%;
1718
}
1819

20+
html[data-theme='dark'] {
21+
--ifm-color-primary: hsl(173, 88%, 50%);
22+
--ifm-color-primary-dark: rgb(33, 175, 144);
23+
--ifm-color-primary-darker: rgb(31, 165, 136);
24+
--ifm-color-primary-darkest: rgb(26, 136, 112);
25+
--ifm-color-primary-light: rgb(70, 203, 174);
26+
--ifm-color-primary-lighter: rgb(102, 212, 189);
27+
--ifm-color-primary-lightest: rgb(146, 224, 208);
28+
}
29+
30+
html[data-theme='dark'] .footer--dark {
31+
--ifm-footer-background-color: hsl(0, 0%, 15%);
32+
}
33+
1934
.docusaurus-highlight-code-line {
20-
background-color: rgba(0, 0, 0, 0.1);
35+
background-color: rgb(72, 77, 91);
2136
display: block;
2237
margin: 0 calc(-1 * var(--ifm-pre-padding));
2338
padding: 0 var(--ifm-pre-padding);
2439
}
2540

26-
html[data-theme='dark'] .docusaurus-highlight-code-line {
27-
background-color: rgba(0, 0, 0, 0.3);
28-
}
41+
code {
42+
white-space: pre;
43+
}

0 commit comments

Comments
 (0)