@@ -8,9 +8,7 @@ import sidebarsUnversioned from "./sidebarsUnversioned";
88
99const extractPreprocessor = require ( "./plugins/extract-preprocessor" ) ;
1010
11- const generateCurrentAndNextRedirects = (
12- s : string ,
13- ) : { from : string ; to : string } [ ] => [
11+ const generateCurrentAndNextRedirects = ( s : string ) : { from : string ; to : string } [ ] => [
1412 {
1513 from : `/docs/${ s } ` ,
1614 to : `/u/${ s } ` ,
@@ -56,9 +54,7 @@ const backportRedirect = (s: any): any[] => {
5654const currentYear = new Date ( ) . getFullYear ( ) ;
5755
5856const ACADEMY_URL = `https://academy.crowdsec.net/courses?${
59- process . env . NODE_ENV === "production"
60- ? "utm_source=docs&utm_medium=menu&utm_campaign=top-menu&utm_id=academydocs"
61- : ""
57+ process . env . NODE_ENV === "production" ? "utm_source=docs&utm_medium=menu&utm_campaign=top-menu&utm_id=academydocs" : ""
6258} `;
6359
6460/** IF you make significant changes to the nav bar or side bars
@@ -241,11 +237,7 @@ const redirects = [
241237function redirectsGlobalDataPlugin ( ) {
242238 return {
243239 name : "redirects-global-data" ,
244- async contentLoaded ( {
245- actions,
246- } : {
247- actions : { setGlobalData : ( data : unknown ) => void } ;
248- } ) {
240+ async contentLoaded ( { actions } : { actions : { setGlobalData : ( data : unknown ) => void } } ) {
249241 actions . setGlobalData ( { redirects } ) ;
250242 } ,
251243 } ;
@@ -259,8 +251,7 @@ const config: Config = {
259251 experimental_faster : true ,
260252 } ,
261253 title : "CrowdSec" ,
262- tagline :
263- "CrowdSec - Real-time & crowdsourced protection against aggressive IPs" ,
254+ tagline : "CrowdSec - Real-time & crowdsourced protection against aggressive IPs" ,
264255 url : "https://docs.crowdsec.net" ,
265256 baseUrl : "/" ,
266257 onBrokenLinks : "warn" ,
@@ -341,8 +332,7 @@ const config: Config = {
341332 {
342333 docs : {
343334 sidebarPath : "./sidebars.ts" ,
344- editUrl :
345- "https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/" ,
335+ editUrl : "https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/" ,
346336 lastVersion : "current" ,
347337 versions : {
348338 "v1.7" : {
@@ -360,8 +350,7 @@ const config: Config = {
360350 } ,
361351 blog : {
362352 showReadingTime : true ,
363- editUrl :
364- "https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/" ,
353+ editUrl : "https://github.com/crowdsecurity/crowdsec-docs/edit/main/crowdsec-docs/" ,
365354 } ,
366355 theme : {
367356 customCss : "./src/css/custom.css" ,
@@ -412,14 +401,12 @@ const config: Config = {
412401 {
413402 title : "CrowdSec Hub" ,
414403 url : "https://hub.crowdsec.net/" ,
415- description :
416- "Browse and install parsers, scenarios, collections, and remediation components" ,
404+ description : "Browse and install parsers, scenarios, collections, and remediation components" ,
417405 } ,
418406 {
419407 title : "CrowdSec Console" ,
420408 url : "https://app.crowdsec.net/" ,
421- description :
422- "Manage your CrowdSec deployments and access the community blocklist" ,
409+ description : "Manage your CrowdSec deployments and access the community blocklist" ,
423410 } ,
424411 {
425412 title : "GitHub Repository" ,
0 commit comments