D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15528 - [DDoc] Make symbols in Phobos documentation links to their own fragments
Summary: [DDoc] Make symbols in Phobos documentation links to their own fragments
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-08 11:15 UTC by Jakob Ovrum
Modified: 2024-12-13 18:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jakob Ovrum 2016-01-08 11:15:53 UTC
That way they'd be easier to share. Their styling could be much like headers in the specification pages.

I'm not sure this is possible in current DDoc. We have DDOC_ANCHOR but it's a "hook"; the doc generator automatically instantiates it for each symbol. The relevant place to override for this is DDOC_PSYMBOL, which only knows the completely unqualified name of the symbol, which is unsuitable for links.
Comment 1 Jakob Ovrum 2016-01-08 11:17:21 UTC
(In reply to Jakob Ovrum from comment #0)
> That way they'd be easier to share. Their styling could be much like headers
> in the specification pages.
> 
> I'm not sure this is possible in current DDoc. We have DDOC_ANCHOR but it's
> a "hook"; the doc generator automatically instantiates it for each symbol.
> The relevant place to override for this is DDOC_PSYMBOL, which only knows
> the completely unqualified name of the symbol, which is unsuitable for links.

I was also thinking we could add something to put the fully qualified name (including packages and module) of the symbol in the alt text or something, which might help improving search engine results.
Comment 2 dlangBugzillaToGithub 2024-12-13 18:46:24 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19085

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB