www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14668] New: Additional Macro Definitions Generated by Ddoc


          Issue ID: 14668
           Summary: Additional Macro Definitions Generated by Ddoc
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ddoc
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

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

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

- 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).

Jun 08 2015