SassDoc / sassdoc-theme-default

Default theme for SassDoc.
MIT License
10 stars 30 forks source link

add item.group to the name annotation link #118

Closed jdgarvey closed 5 months ago

jdgarvey commented 5 months ago

The "group" value for an item does not get inserted into the item's link. This means that clicking on an item's name h3 results in the wrong anchor string, so the page does not jump to that item and deep linking to that item doesn't work.

The sidebar and search result links correctly prepend the group to the link.

Example

Given the following sass

/// @group helpers
.foobar {display: none;}

the h3 for foobar will contain <a class="item__name" href="#css-.foobar">. This is incorrect, it should be <a class="item__name" href="#helpers-css-.foobar">.

Related to https://github.com/SassDoc/sassdoc/issues/575.

pascalduez commented 5 months ago

Published as of sassdoc-theme-default@2.8.6.