Skip to content
Merged
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
3 changes: 3 additions & 0 deletions crowdsec-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const backportRedirect = (s) => {
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
future: {
v4: {
removeLegacyPostBuildHeadAttribute: true,
},
experimental_faster: true,
},
title: "CrowdSec",
Expand Down
3,661 changes: 1,602 additions & 2,059 deletions crowdsec-docs/package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions crowdsec-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"dependencies": {
"@coreui/icons": "^3.0.1",
"@coreui/icons-react": "2.3.0",
"@docusaurus/core": "^3.7.0",
"@docusaurus/faster": "^3.7.0",
"@docusaurus/plugin-client-redirects": "^3.7.0",
"@docusaurus/preset-classic": "^3.7.0",
"@docusaurus/theme-common": "^3.7.0",
"@docusaurus/theme-search-algolia": "^3.7.0",
"@docusaurus/core": "^3.8.1",
"@docusaurus/faster": "^3.8.1",
"@docusaurus/plugin-client-redirects": "^3.8.1",
"@docusaurus/preset-classic": "^3.8.1",
"@docusaurus/theme-common": "^3.8.1",
"@docusaurus/theme-search-algolia": "^3.8.1",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mdx-js/react": "^3.1.0",
Expand All @@ -31,8 +31,8 @@
"@radix-ui/react-tooltip": "^1.1.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.441.0",
"docusaurus-plugin-zooming": "^1.0.0",
"lucide-react": "^0.441.0",
"material-react-table": "^2.0.2",
"prism-react-renderer": "^2.4.0",
"react": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion crowdsec-docs/src/components/tableRender.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {useColorMode} from '@docusaurus/theme-common';


const TableRender = ({ columns, url, include=[], exclude=[] }) => {
const [jsonContent, setJsonContent] = useState()
const [jsonContent, setJsonContent] = useState([])
const {colorMode} = useColorMode();

const theme = useMemo(() => {
Expand Down
17 changes: 12 additions & 5 deletions crowdsec-docs/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;


@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* stylelint-disable docusaurus/copyright-header */
/**
* Any CSS included here will be global. The classic template
Expand Down Expand Up @@ -258,9 +256,18 @@ html[data-theme="dark"] .footer, html[data-theme="dark"] .navbar, html[data-them
color: rgb(var(--color-gray-300));
}


/** Patch some colors **/
svg[class^='lightToggleIcon'], .navbar__toggle > svg, .navbar-sidebar__back {
color: #fff;
button[class*='toggleButton']:hover {
background-color: transparent;
}

svg[class*='toggleIcon'][class*='lightToggleIcon'] {
color: #fff !important;
}

svg[class*='toggleIcon'][class*='ToggleIcon']:hover {
color: var(--ifm-color-primary) !important;
}


Expand Down
2 changes: 1 addition & 1 deletion crowdsec-docs/src/theme/Tabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function TabList({className, block, selectedValue, selectValue, tabValues}) {
'tabs__item--active': selectedValue === value,
})}>
<span className='tw-flex tw-gap-2 tw-items-center'>
{!!icon && <CIcon icon={icon} size='l' />} {label ?? value}
{!!icon && <CIcon icon={icon} size='lg' />} {label ?? value}
</span>
</li>
))}
Expand Down