Skip to content

Commit 2c2b7e0

Browse files
chore: docusarus v3.8 (#800)
* chore: docusarus v3.8 * chore: fixes * chore: turn off some v4 opts due to problems
1 parent 4829710 commit 2c2b7e0

File tree

6 files changed

+1626
-2073
lines changed

6 files changed

+1626
-2073
lines changed

crowdsec-docs/docusaurus.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const backportRedirect = (s) => {
4747
/** @type {import('@docusaurus/types').DocusaurusConfig} */
4848
module.exports = {
4949
future: {
50+
v4: {
51+
removeLegacyPostBuildHeadAttribute: true,
52+
},
5053
experimental_faster: true,
5154
},
5255
title: "CrowdSec",

crowdsec-docs/package-lock.json

Lines changed: 1602 additions & 2059 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crowdsec-docs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"dependencies": {
1717
"@coreui/icons": "^3.0.1",
1818
"@coreui/icons-react": "2.3.0",
19-
"@docusaurus/core": "^3.7.0",
20-
"@docusaurus/faster": "^3.7.0",
21-
"@docusaurus/plugin-client-redirects": "^3.7.0",
22-
"@docusaurus/preset-classic": "^3.7.0",
23-
"@docusaurus/theme-common": "^3.7.0",
24-
"@docusaurus/theme-search-algolia": "^3.7.0",
19+
"@docusaurus/core": "^3.8.1",
20+
"@docusaurus/faster": "^3.8.1",
21+
"@docusaurus/plugin-client-redirects": "^3.8.1",
22+
"@docusaurus/preset-classic": "^3.8.1",
23+
"@docusaurus/theme-common": "^3.8.1",
24+
"@docusaurus/theme-search-algolia": "^3.8.1",
2525
"@emotion/react": "^11.13.3",
2626
"@emotion/styled": "^11.13.0",
2727
"@mdx-js/react": "^3.1.0",
@@ -31,8 +31,8 @@
3131
"@radix-ui/react-tooltip": "^1.1.2",
3232
"class-variance-authority": "^0.7.0",
3333
"clsx": "^2.1.1",
34-
"lucide-react": "^0.441.0",
3534
"docusaurus-plugin-zooming": "^1.0.0",
35+
"lucide-react": "^0.441.0",
3636
"material-react-table": "^2.0.2",
3737
"prism-react-renderer": "^2.4.0",
3838
"react": "^18.3.1",

crowdsec-docs/src/components/tableRender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {useColorMode} from '@docusaurus/theme-common';
66

77

88
const TableRender = ({ columns, url, include=[], exclude=[] }) => {
9-
const [jsonContent, setJsonContent] = useState()
9+
const [jsonContent, setJsonContent] = useState([])
1010
const {colorMode} = useColorMode();
1111

1212
const theme = useMemo(() => {

crowdsec-docs/src/css/custom.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
12
@tailwind base;
23
@tailwind components;
34
@tailwind utilities;
45

5-
6-
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
7-
86
/* stylelint-disable docusaurus/copyright-header */
97
/**
108
* Any CSS included here will be global. The classic template
@@ -258,9 +256,18 @@ html[data-theme="dark"] .footer, html[data-theme="dark"] .navbar, html[data-them
258256
color: rgb(var(--color-gray-300));
259257
}
260258

259+
261260
/** Patch some colors **/
262-
svg[class^='lightToggleIcon'], .navbar__toggle > svg, .navbar-sidebar__back {
263-
color: #fff;
261+
button[class*='toggleButton']:hover {
262+
background-color: transparent;
263+
}
264+
265+
svg[class*='toggleIcon'][class*='lightToggleIcon'] {
266+
color: #fff !important;
267+
}
268+
269+
svg[class*='toggleIcon'][class*='ToggleIcon']:hover {
270+
color: var(--ifm-color-primary) !important;
264271
}
265272

266273

crowdsec-docs/src/theme/Tabs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function TabList({className, block, selectedValue, selectValue, tabValues}) {
6969
'tabs__item--active': selectedValue === value,
7070
})}>
7171
<span className='tw-flex tw-gap-2 tw-items-center'>
72-
{!!icon && <CIcon icon={icon} size='l' />} {label ?? value}
72+
{!!icon && <CIcon icon={icon} size='lg' />} {label ?? value}
7373
</span>
7474
</li>
7575
))}

0 commit comments

Comments
 (0)