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
18 changes: 8 additions & 10 deletions crowdsec-docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@ const NAVBAR_ITEMS: NavbarItem[] = [
position: "left",
label: "Blocklists",
},
{
label: "API(s)",
position: "left",
items: [
{ label: "CTI API", to: "/u/cti_api/getting_started" },
{ label: "Service API 🏅", to: "/u/service_api/getting_started" },
],
},
{ to: "/u/cti_api/intro", position: "left", label: "CTI" },
{ to: "/u/console/intro", position: "left", label: "Console" },
{
label: "Resources",
Expand Down Expand Up @@ -147,6 +140,8 @@ const FOOTER_LINKS = [
{ label: "Discourse", href: "https://discourse.crowdsec.net/" },
{ label: "Discord", href: "https://discord.gg/crowdsec" },
{ label: "Twitter", href: "https://twitter.com/crowd_security" },
{ label: "LinkedIn", href: "https://www.linkedin.com/company/crowdsec/" },
{ label: "YouTube", href: "https://www.youtube.com/@crowdsec" },
],
},
{
Expand All @@ -159,6 +154,8 @@ const FOOTER_LINKS = [
label: "Tutorial",
href: "https://crowdsec.net/blog/category/tutorial/",
},
{ label: "Academy", href: "https://academy.crowdsec.net/" },
{ label: "Custom GPT", href: "https://chatgpt.com/g/g-682c3a61a78081918417571116c2b563-crowdsec-documentation" },
],
},
];
Expand All @@ -182,11 +179,11 @@ const redirects = [
to: "/u/getting_started/installation/freebsd",
},
{
from: "/docs/next/getting_started/install_crowdsec",
from: "/docs/getting_started/install_crowdsec",
to: "/u/getting_started/installation/linux",
},
{
from: "/docs/next/getting_started/install_crowdsec_freebsd",
from: "/docs/getting_started/install_crowdsec_freebsd",
to: "/u/getting_started/installation/freebsd",
},
];
Expand Down Expand Up @@ -306,6 +303,7 @@ const config: Config = {
sidebarPath: "./sidebarsUnversioned.ts",
},
],

["./plugins/gtag/index.ts", { trackingID: "G-0TFBMNTDFQ" }],
["@docusaurus/plugin-client-redirects", { redirects }],
tailwindPlugin,
Expand Down
264 changes: 147 additions & 117 deletions crowdsec-docs/sidebarsUnversioned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,96 @@ const sidebarsUnversionedConfig: SidebarConfig = {
label: "Introduction",
id: "cti_api/intro",
},
{
type: "doc",
label: "Getting Started",
id: "cti_api/getting_started",
},
{
type: "category",
label: "Taxonomy",
label: "Web UI",
items: [
"cti_api/taxonomy/intro",
"cti_api/taxonomy/cti_object",
"cti_api/taxonomy/scores",
"cti_api/taxonomy/scenarios",
"cti_api/taxonomy/behaviors",
"cti_api/taxonomy/classifications",
"cti_api/taxonomy/false_positives",
"cti_api/taxonomy/benign",
{
type: "doc",
label: "Getting Started",
id: "cti_api/getting_started",
},
{
type: "doc",
label: "IP Report",
id: "cti_api/ip_report",
},
{
type: "doc",
label: "Advanced Search",
id: "cti_api/advanced_search",
},
{
type: "doc",
label: "Search Queries",
id: "cti_api/search_queries",
},
{
type: "doc",
label: "CVE Explorer",
id: "cti_api/cve_explorer",
},
],
},
{
type: "link",
label: "Swagger",
href: "https://crowdsecurity.github.io/cti-api/",
type: "category",
label: "API",
items: [
{
type: "doc",
label: "Getting Started",
id: "cti_api/api_getting_started",
},
{
type: "category",
label: "Taxonomy",
items: [
"cti_api/taxonomy/intro",
"cti_api/taxonomy/cti_object",
"cti_api/taxonomy/scores",
"cti_api/taxonomy/scenarios",
"cti_api/taxonomy/behaviors",
"cti_api/taxonomy/classifications",
"cti_api/taxonomy/false_positives",
"cti_api/taxonomy/benign",
],
},
{
type: "link",
label: "Swagger",
href: "https://crowdsecurity.github.io/cti-api/",
},
],
},
{
type: "category",
label: "Integrations",
link: {
type: "doc",
id: "cti_api/integration_intro",
id: "cti_api/api_integration/integration_intro",
},
items: [
"cti_api/integration_ipdex",
"cti_api/integration_chrome",
"cti_api/integration_gigasheet",
"cti_api/integration_intelowl",
"cti_api/integration_maltego",
"cti_api/integration_misp",
"cti_api/integration_msticpy",
"cti_api/integration_opencti",
"cti_api/integration_paloalto_xsoar",
"cti_api/integration_qradar",
"cti_api/integration_securitycopilot",
"cti_api/integration_sekoia_xdr",
"cti_api/integration_splunk_siem",
"cti_api/integration_splunk_soar",
"cti_api/integration_thehive",
"cti_api/api_integration/integration_ipdex",
"cti_api/api_integration/integration_chrome",
"cti_api/api_integration/integration_gigasheet",
"cti_api/api_integration/integration_intelowl",
"cti_api/api_integration/integration_maltego",
"cti_api/api_integration/integration_misp",
"cti_api/api_integration/integration_msticpy",
"cti_api/api_integration/integration_opencti",
"cti_api/api_integration/integration_paloalto_xsoar",
"cti_api/api_integration/integration_qradar",
"cti_api/api_integration/integration_securitycopilot",
"cti_api/api_integration/integration_sekoia_xdr",
"cti_api/api_integration/integration_splunk_siem",
"cti_api/api_integration/integration_splunk_soar",
"cti_api/api_integration/integration_thehive",
],
},
{
type: "doc",
label: "Search Queries",
id: "cti_api/search_queries",
label: "FAQ",
id: "cti_api/faq",
},
],
consoleSidebar: [
Expand Down Expand Up @@ -196,42 +233,6 @@ const sidebarsUnversionedConfig: SidebarConfig = {
label: "Remediation Metrics",
id: "console/remediation_metrics",
},
{
type: "category",
label: "CTI",
items: [
{
type: "doc",
label: "Getting started",
id: "console/cti/getting_started",
},
{
type: "doc",
label: "CTI API Keys",
id: "console/cti/cti_api_keys",
},
{
type: "doc",
label: "IP report",
id: "console/cti/ip_report",
},
{
type: "doc",
label: "Advanced search",
id: "console/cti/advanced_search",
},
{
type: "doc",
label: "CVE Explorer",
id: "console/cti/cve_explorer",
},
{
type: "doc",
label: "FAQ",
id: "console/cti/faq",
},
],
},
{
type: "category",
label: "Decision",
Expand Down Expand Up @@ -293,11 +294,84 @@ const sidebarsUnversionedConfig: SidebarConfig = {
},
{
type: "link",
label: "CTI",
href: "/u/cti_api/intro",
},
{
type: "category",
label: "Service API",
href: "/u/service_api/getting_started",
customProps: {
tag: "premium",
},
items: [
{
type: "doc",
id: "console/service_api/getting_started",
label: "Getting Started",
customProps: {
tag: "premium",
},
},
{
type: "category",
label: "Quickstart",
customProps: {
tag: "premium",
},
items: [
"console/service_api/quickstart/authentication",
"console/service_api/quickstart/blocklists",
"console/service_api/quickstart/integrations",
"console/service_api/quickstart/allowlists",
"console/service_api/quickstart/metrics",
],
},
{
type: "doc",
label: "Blocklists",
id: "console/service_api/blocklists",
},
{
type: "doc",
label: "Integrations",
id: "console/service_api/integrations",
},
{
type: "category",
label: "SDKs",
customProps: {
tag: "premium",
},
items: [
{
type: "doc",
label: "Python",
id: "console/service_api/sdks/python",
customProps: {
tag: "premium",
},
},
],
},
{
type: "link",
label: "Swagger",
href: "https://admin.api.crowdsec.net/v1/docs#/",
},
{
type: "link",
label: "Redoc",
href: "https://admin.api.crowdsec.net/v1/redoc",
},
{
type: "doc",
id: "console/service_api/faq",
label: "FAQ",
customProps: {
tag: "premium",
},
},
],
},
{
type: "category",
Expand Down Expand Up @@ -533,50 +607,7 @@ const sidebarsUnversionedConfig: SidebarConfig = {
label: "CTI",
},
],
serviceApiSideBar: [
{
type: "doc",
id: "service_api/getting_started",
label: "Getting Started",
},
{
type: "category",
label: "Quickstart",
items: [
"service_api/quickstart/authentication",
"service_api/quickstart/blocklists",
"service_api/quickstart/integrations",
"service_api/quickstart/allowlists",
"service_api/quickstart/metrics",
],
},
{
type: "category",
label: "SDKs",
items: [
{
type: "doc",
label: "Python",
id: "service_api/sdks/python",
},
],
},
{
type: "link",
label: "Swagger",
href: "https://admin.api.crowdsec.net/v1/docs#/",
},
{
type: "link",
label: "Redoc",
href: "https://admin.api.crowdsec.net/v1/redoc",
},
{
type: "doc",
id: "service_api/faq",
label: "FAQ",
},
],

guidesSideBar: [
"user_guides/intro",
{
Expand Down Expand Up @@ -705,7 +736,6 @@ export const {
remediationSideBar,
blocklistsSideBar,
troubleshootingSideBar,
serviceApiSideBar,
guidesSideBar,
gettingStarted,
} = sidebarsUnversionedConfig;
Loading