Thread overview | |||||
---|---|---|---|---|---|
|
August 31, 2014 How to build dlang.org dd files | ||||
---|---|---|---|---|
| ||||
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 |
August 31, 2014 Re: How to build dlang.org dd files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | 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/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
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
|
August 31, 2014 Re: How to build dlang.org dd files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | > 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 |
Copyright © 1999-2021 by the D Language Foundation