Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new matrix server bridged to discord #410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
356 changes: 181 additions & 175 deletions crowdsec-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,185 +1,191 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

const path = require('path')
const path = require("path");

/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'CrowdSec',
tagline: 'CrowdSec - Real-time & crowdsourced protection against aggressive IPs',
url: 'https://docs.crowdsec.net',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/crowdsec_no_txt.png',
organizationName: 'CrowdSec',
projectName: 'crowdsec-docs',
plugins: [path.resolve(__dirname, 'plugins', 'matomo')],
themeConfig: {
algolia: {
appId: 'PWTZ94KULF',
apiKey: '31673122672f1eb819e16c87468e53b4',
indexName: 'crowdsec',
contextualSearch: true
},
navbar: {
items: [

],
},
navbar: {
title: '',
logo: {
alt: 'CrowdSec',
src: 'img/crowdsec_logo.png',
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
dropdownActiveClassDisabled: true,
},
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'CrowdSec',
},
{
type: 'doc',
docId: 'cscli/cscli',
position: 'left',
label: 'Cscli',
},
{
type: 'doc',
docId: 'cti_api/getting_started',
position: 'left',
label: 'CTI Api',
},
{to: 'https://crowdsec.net/blog/category/tutorial/', label: 'Tutorials', position: 'left'},
{
type: 'doc',
docId: 'faq',
position: 'left',
label: 'FAQ',
},
{
type: 'doc',
docId: 'troubleshooting',
position: 'left',
label: 'Troubleshooting',
},
{
href: 'https://github.com/crowdsecurity/crowdsec',
position: 'right',
className: 'header-github-link header-icon-link',
},
{
href: 'https://discord.gg/wGN7ShmEE8',
position: 'right',
className: "header-discord-link",
},
{
href: 'https://discourse.crowdsec.net',
position: 'right',
className: "header-discourse-link",
},
{
href: 'https://app.crowdsec.net/',
position: 'right',
className: "header-console-link",
},
{
href: 'https://hub.crowdsec.net/',
position: 'right',
className: "header-hub-link",
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Doc Mini-Tutorial Articles',
to: '/blog',
},
{
label: 'Documentation',
to: '/docs/intro',
title: "CrowdSec",
tagline:
"CrowdSec - Real-time & crowdsourced protection against aggressive IPs",
url: "https://docs.crowdsec.net",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/crowdsec_no_txt.png",
organizationName: "CrowdSec",
projectName: "crowdsec-docs",
plugins: [path.resolve(__dirname, "plugins", "matomo")],
themeConfig: {
algolia: {
appId: "PWTZ94KULF",
apiKey: "31673122672f1eb819e16c87468e53b4",
indexName: "crowdsec",
contextualSearch: true,
},
navbar: {
items: [],
},
navbar: {
title: "",
logo: {
alt: "CrowdSec",
src: "img/crowdsec_logo.png",
},
],
items: [
{
type: "docsVersionDropdown",
position: "left",
dropdownActiveClassDisabled: true,
},
{
type: "doc",
docId: "intro",
position: "left",
label: "CrowdSec",
},
{
type: "doc",
docId: "cscli/cscli",
position: "left",
label: "Cscli",
},
{
type: "doc",
docId: "cti_api/getting_started",
position: "left",
label: "CTI Api",
},
{
to: "https://crowdsec.net/blog/category/tutorial/",
label: "Tutorials",
position: "left",
},
{
type: "doc",
docId: "faq",
position: "left",
label: "FAQ",
},
{
type: "doc",
docId: "troubleshooting",
position: "left",
label: "Troubleshooting",
},
{
href: "https://github.com/crowdsecurity/crowdsec",
position: "right",
className: "header-github-link header-icon-link",
},
{
href: "https://discord.gg/crowdsec",
position: "right",
className: "header-discord-link",
},
{
href: "https://discourse.crowdsec.net",
position: "right",
className: "header-discourse-link",
},
{
href: "https://app.crowdsec.net/",
position: "right",
className: "header-console-link",
},
{
href: "https://hub.crowdsec.net/",
position: "right",
className: "header-hub-link",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Doc Mini-Tutorial Articles",
to: "/blog",
},
{
label: "Documentation",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
{
label: "GitHub",
href: "https://github.com/crowdsecurity/crowdsec",
},
{
label: "Discourse",
href: "https://discourse.crowdsec.net/",
},
{
label: "Discord",
href: "https://discord.gg/crowdsec",
},
{
label: "Matrix",
href: "https://matrix.to/#/#crowdsec:matrix.org",
},
{
label: "Twitter",
href: "https://twitter.com/crowd_security",
},
],
},
{
title: "More",
items: [
{
label: "Console",
href: "https://app.crowdsec.net/",
},
{
label: "Hub",
href: "https://hub.crowdsec.net/",
},
{
label: "Blog",
href: "https://crowdsec.net/blog/",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} CrowdSec`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
{
title: 'Community',
items: [
{
label: 'GitHub',
href: 'https://github.com/crowdsecurity/crowdsec',
},
{
label: 'Discourse',
href: 'https://discourse.crowdsec.net/',
},
{
label: 'Discord',
href: 'https://discord.gg/crowdsec',
},
{
label: 'Twitter',
href: 'https://twitter.com/crowd_security',
}
],
},
{
title: 'More',
items: [
{
label: "Console",
href: "https://app.crowdsec.net/"
},
{
label: 'Hub',
href: 'https://hub.crowdsec.net/',
},
},
presets: [
[
"@docusaurus/preset-classic",
{
label: 'Blog',
href: 'https://crowdsec.net/blog/',
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl:
"https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/",
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
"https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},

],
},
],
copyright: `Copyright © ${new Date().getFullYear()} CrowdSec`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
],
};