File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ const ACADEMY_URL = `https://academy.crowdsec.net/courses?${
5656 process . env . NODE_ENV === "production" ? "utm_source=docs&utm_medium=menu&utm_campaign=top-menu&utm_id=academydocs" : ""
5757} `;
5858
59+ /** IF you make significant changes to the nav bar or side bars
60+ * make sure to have proper mapping in crowdsec-docs/src/sectionMap.ts */
61+
5962const NAVBAR_ITEMS : NavbarItem [ ] = [
6063 {
6164 label : "Security Stack" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
22
33type SidebarConfig = SidebarsConfig [ string ] ;
44
5+ /** IF you make significant changes to the nav bar or side bars
6+ * make sure to have proper mapping in crowdsec-docs/src/sectionMap.ts */
7+
58const sidebarsConfig : SidebarConfig = {
69 // By default, Docusaurus generates a sidebar from the docs folder structure
710 //tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
22
33type SidebarConfig = SidebarsConfig [ string ] ;
44
5+ /** IF you make significant changes to the nav bar or side bars
6+ * make sure to have proper mapping in crowdsec-docs/src/sectionMap.ts */
7+
58const sidebarsUnversionedConfig : SidebarConfig = {
69 ctiApiSidebar : [
710 {
Original file line number Diff line number Diff line change 1+ /**
2+ * CrowdSec Made Swizzled override of @docusaurus/theme-classic's DocRoot/Layout component.
3+ *
4+ * The original only renders the sidebar + main content area.
5+ * This override injects a custom SecondaryNavbar above that content, which adds:
6+ * - A breadcrumb trail (Home > Section > [current page path])
7+ * - A version dropdown (when multiple doc versions exist)
8+ *
9+ * Docusaurus picks this file automatically because it lives at
10+ * src/theme/DocRoot/Layout/index.tsx, shadowing the original in node_modules.
11+ */
12+
113import {
214 useActiveDocContext ,
315 useActivePlugin ,
You can’t perform that action at this time.
0 commit comments