SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

Default theme: item group is not included in item name link #575

Closed jdgarvey closed 7 months ago

jdgarvey commented 7 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">.

I have a PR to fix this, posting here for more visibility. https://github.com/SassDoc/sassdoc-theme-default/pull/118

pascalduez commented 7 months ago

Fix published as of sassdoc-theme-default@2.8.6.