إضافة دعم الشريط الجانبي "أيقونة Discourse" والمزيد

Feature Request:

Add support for “Discourse Icon” to render in Sidebar also bbcode color
& Emoji support.

إعجاب واحد (1)

Is there a way to change the icon used for a specific link? I dug into the code and it looks like this is hard-coded in at doc-category-sidebar-panel.js and getPrefixValue(). Is my reading of the code correct?

If this isn’t possible currently, is it planned for the roadmap?

إعجابَين (2)

Second this, using emojis in the index would be easy and dynamic, and look very good, but I’d assume FontAwesome would be more in line with Discourse. I think emoji’s look somehow nicer and more inviting on docs.

إعجاب واحد (1)

Being able to us Emoji, Custom Emoji or Fontawesome would be very very helpful - in my documentation categories the headings would often be something like ‘Digital Ocean’ or ‘AWS’, or ‘Mailgun’ so being able to add the icon for these (even if I have to add them to Custom Emoji manually) would really feed my inner Documentation Obsessive Compulsions (in a good way).

5 إعجابات

I am patiently waiting :smiling_face_with_sunglasses:

إعجابَين (2)

+1 for a way to use different icons or suppress the icons. Having a :page_facing_up: icon exactly the same for each item in the list doesn’t really add anything for me.

In case it helps anyone, here is CSS which suppresses the :page_facing_up: in Discourse Doc Categories sidebar lists but doesn’t suppress the sidebar icons/dots elsewhere in Discourse.

.discourse-docs-sidebar-panel {
    .sidebar-section-link .sidebar-section-link-prefix {
        display: none !important;
    }
    .sidebar-section-link-content-text {
        margin-left: 10px;
    }
}

The margin-left: 10px; bit can be tweaked to align the text in a visually pleasing way to you.

Just put this in your custom theme CSS (or make it part of a bespoke theme component in your site for convenience)

3 إعجابات