<br><br><div class="gmail_quote">On Sat, Nov 12, 2011 at 1:59 AM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>On Saturday, November 12, 2011 01:54:48 Caligo wrote:<br>
> I'm about to go to bed and I can't keep my eyes open, so sorry if the<br>
> answer to this is obvious.<br>
><br>
> I cloned '<br>
> <a href="https://github.com/D-Programming-Language/d-programming-language.org" target="_blank">https://github.com/D-Programming-Language/d-programming-language.org</a>' and I<br>
> want to work on documentation.  I've read<br>
> <a href="http://www.digitalmars.com/d/2.0/ddoc.html" target="_blank">http://www.digitalmars.com/d/2.0/ddoc.html</a>, but maybe I've missed it.<br>
><br>
> 1. How do I get dmd to generate the HTML files from all those *.dd files?<br>
> I run 'dmd -Dddocdir *.dd' and it creates 'docdir' folder with bunch of<br>
> HTML files, but they are only a few KBs with no content.  What am I doing<br>
> wrong?<br>
><br>
> 2. What are the *.ddco for?  Do they contain the predefined macros?  If so,<br>
> why are some of them missing than what's listed on that page?<br>
<br>
</div></div>If you want to build <a href="http://d-programming-language.org" target="_blank">d-programming-language.org</a>, then use its makefile.<br>
<br>
make -f linux.mak<br>
<br>
or<br>
<br>
make -f win32.mak<br>
<br>
The generated files end up in ../web/, with the current HTML documentation in<br>
../web/phobos-prerelease IIRC. You have to have the Phobos and druntime<br>
repositories as well, and I believe that they have to be in the same directory<br>
with the directory for <a href="http://d-programming-language.org" target="_blank">d-programming-language.org</a>.<br>
<span><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br>First I had to modify 'linux.mak' because I don't have a standard install of DMD (DMD=/path/to/dmd/dmd2/linux/bin64/dmd).<br><br>I then ran:<br><br>make -f linux.mak<br><br>

and it generates ../web directory with all the HTML files from all the *.dd files. Plus, it gave bunch of errors and quit.  So, then I cloned Phobos and druntime and put them in the same directory as <a href="http://d-programming-language.org" target="_blank">d-programming-language.org</a> directory.  That didn't work because it seems that it tries to actually compile Phobos, but right now the latest Phobos doesn't compile, and it fails and gives errors.<br>

<br>So, I used the source that comes with the standard DMD release, and yes, they have to be in the same directory as <a href="http://d-programming-language.org" target="_blank">d-programming-language.org</a>.  That finally worked.<br>
<br>Thanks.<br><br>