ddoc file on command line
Yao G.
nospamyao at gmail.com
Tue Aug 10 19:15:30 PDT 2010
I forgot to mention that I'm using the latest (beta) version of DMD 2 on
Windows XP.
On Tue, 10 Aug 2010 20:52:18 -0500, Yao G. <nospamyao at gmail.com> wrote:
> According to the DDOC spec (http://digitalmars.com/d/2.0/ddoc.html) if
> you want to redefine some macros, one way is to pass one file with the
> .ddoc extension to the command line, but it doesn't work in my setup.
> For example, suppose I have the file yao.date.calendar, and I want to
> generate the documentation, so I compile with:
>
> % dmd.exe calendar.d docbook.ddoc -Dfcalendar.xml
>
> And it doesn't work. Am I doing something wrong? Note that the file is
> generated correctly but the few macros that I redefine (DDOC,
> DDOC_SUMMARY, etc.) don't get replaced with the new ones. The
> docbook.ddoc is on the same directory where I have the *.d files (code).
>
> Thanks in advance.
>
--
Yao G.
More information about the Digitalmars-d-learn
mailing list