Bug 14668 – Add DOCBASENAME DDoc macro

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-09T00:21:37Z
Last change time
2024-12-13T18:43:15Z
Keywords
ddoc
Assigned to
No Owner
Creator
Vladimir Panteleev
Moved to GitHub: dmd#19000 →

Comments

Comment #0 by dlang-bugzilla — 2015-06-09T00:21:37Z
It would be nice to be able to generate a link to the current page in DDoc, for example to be able to pass the current page URL to a Bugzilla bug report form template. The "Macro Definitions Generated by Ddoc" section on http://dlang.org/ddoc.html lists DOCFILENAME and SRCFILENAME. It would be nice to have, in addition to these: - MODULENAME: the name of the currently compiled module (e.g. std.algorithm.iteration). Can be undefined for Ddoc files. - DOCBASENAME: the base name of the output file (file name without directory).
Comment #1 by dlang-bugzilla — 2015-06-09T00:41:48Z
Never mind MODULENAME, I missed TITLE.
Comment #2 by robert.schadek — 2024-12-13T18:43:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19000 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB