Skip to content

Commit c7c4bbe

Browse files
author
jdv
committed
testing side bar tags
1 parent 7108015 commit c7c4bbe

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

crowdsec-docs/sidebarsUnversioned.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ module.exports = {
592592
items: [
593593
{
594594
type: "category",
595-
label: "CrowdSec Console",
595+
label: "CrowdSec Console",
596596
link: {
597597
type: "doc",
598598
id: "getting_started/post_installation/console",
@@ -601,15 +601,18 @@ module.exports = {
601601
"getting_started/post_installation/console_blocklists",
602602
"getting_started/post_installation/console_hub",
603603
],
604+
className: "sideBarItemRecommended" // to display tag
604605
},
605606
{
606607
type: "doc",
607608
id: "getting_started/post_installation/whitelists",
608609
label: "Whitelisting IPs ⭐",
610+
className: "sideBarItemRecommended"
609611
},
610612
{
611613
type: "category",
612614
label: "Acquisition ⚙️",
615+
className: "sideBarItemOptional",
613616
link: {
614617
type: "doc",
615618
id: "getting_started/post_installation/acquisition",
@@ -631,11 +634,13 @@ module.exports = {
631634
type: "doc",
632635
id: "getting_started/post_installation/profiles",
633636
label: "Profiles ⚙️",
637+
className: "sideBarItemOptional"
634638
},
635639
{
636640
type: "doc",
637641
id: "getting_started/post_installation/metrics",
638642
label: "Metrics ⚙️",
643+
className: "sideBarItemOptional"
639644
},
640645
{
641646
type: "doc",

crowdsec-docs/src/css/custom.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,4 +483,27 @@ div[class^='announcementBar'] {
483483
border: 0!important;
484484
}
485485

486+
/* Quick guide specific CSS */
487+
.sideBarItemRecommended::after {
488+
content: "Rec.";
489+
display: inline-block;
490+
margin-left: 0.5em;
491+
padding: 0.1em 0.5em;
492+
background-color: #007bff;
493+
color: white;
494+
border-radius: 999px;
495+
font-size: 0.6em;
496+
vertical-align: middle;
497+
}
486498

499+
.sideBarItemOptional::after {
500+
content: "Opt.";
501+
display: inline-block;
502+
margin-left: 0.5em;
503+
padding: 0.1em 0.5em;
504+
background-color: #ffc107;
505+
color: black;
506+
border-radius: 999px;
507+
font-size: 0.6em;
508+
vertical-align: middle;
509+
}

0 commit comments

Comments
 (0)