Bug 8794 – DDoc should provide qualified symbol names suitable for anchors
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-10T08:59:00Z
Last change time
2015-06-09T05:10:44Z
Keywords
ddoc
Assigned to
nobody
Creator
nick
Comments
Comment #0 by nick — 2012-10-10T08:59:55Z
(I looked for existing bugs but found none pertaining only to dmd/ddoc itself, hence this new one).
Currently anchor links are generated for Phobos using DDOC_PSYMBOL in std.ddoc:
DDOC_PSYMBOL = <a name="$0"></a><span class="ddoc_psymbol">$0</span>
Unfortunately there is no way to get the 'qualified' name e.g. of a member or method. Consequently there are anchor collisions such as enum EditOp.remove instead of free function remove():
http://d.puremagic.com/issues/show_bug.cgi?id=6017
DDoc should provide a way to get qualified symbol names suitable for anchor links.
I have a pull request almost ready to address this.
Yes, bug #6017 is very similar. I thought my dmd pull request might need a separate issue as it is purely for dmd, whereas the other issue may need a small update to the website's std.ddoc once we have the dmd fix.
Comment #4 by github-bugzilla — 2012-10-21T20:19:23Z