www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to build dlang.org dd files

reply "Mike" <none none.com> writes:
I've been trying to update some documentation on dlang.org.  The 
instructions at 
https://github.com/D-Programming-Language/dlang.org/blob/master/CONTRIBUTING.md 
say I should be able to do

make -f posix.make file.html

This doesn't seem to work, as I get "no rule t omake target 
'file.html'.

I tried 'make -f posix.mak' and that requires dmd, druntime, and 
maybe a mess of other things, and takes forever.  And ultimately 
it fails with 'No rule to make target 'release'.  Stop.'

Isn't there any easy one-liner I can use to render a single .dd 
file to html to test my changes?

Thanks,
Mike
Aug 30 2014
parent reply "Mike" <none none.com> writes:
On Sunday, 31 August 2014 at 05:41:58 UTC, Mike wrote:
 I've been trying to update some documentation on dlang.org.  
 The instructions at 
 https://github.com/D-Programming-Language/dlang.org/blob/ma
ter/CONTRIBUTING.md 
 say I should be able to do

 make -f posix.make file.html

 This doesn't seem to work, as I get "no rule t omake target 
 'file.html'.

 I tried 'make -f posix.mak' and that requires dmd, druntime, 
 and maybe a mess of other things, and takes forever.  And 
 ultimately it fails with 'No rule to make target 'release'.  
 Stop.'

 Isn't there any easy one-liner I can use to render a single .dd 
 file to html to test my changes?

 Thanks,
 Mike
This seems to do it: dmd -c -o- macros.ddoc doc.ddoc -Df{ddoc_filename}.html {ddoc_filename}.dd If someone knows of a more "official" syntax, please let me know. Mike
Aug 31 2014
parent Philippe Sigaud via Digitalmars-d-learn writes:
 dmd -c -o- macros.ddoc doc.ddoc -Df{ddoc_filename}.html {ddoc_filename}.dd

 If someone knows of a more "official" syntax, please let me know.
I don't know of another syntax, but could you please put this somewhere on the wiki? Maybe in the cookbook section: http://wiki.dlang.org/Cookbook
Aug 31 2014