Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
August 10, 2016 Ddoc to HTML tool? | ||||
---|---|---|---|---|
| ||||
What's the best way to generate HTML from a snippet of Ddoc? I've extracted the Ddoc from a symbol using DCD and would like to display it in a text editor. Ideally it should be a command line tool.
--
/Jacob Carlborg
|
August 10, 2016 Re: Ddoc to HTML tool? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | dmd generates html from dd files; example: https://github.com/dlang/dlang.org/blob/master/download.dd |
August 10, 2016 Re: Ddoc to HTML tool? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On 10/08/16 16:48, Kagamin wrote: > dmd generates html from dd files; example: > https://github.com/dlang/dlang.org/blob/master/download.dd Thanks, I didn't know that. It's not ideal, it adds some other tags that I would like to avoid, i.e. "Page generated by Ddoc", but it works. -- /Jacob Carlborg |
August 10, 2016 Re: Ddoc to HTML tool? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 10 August 2016 at 17:04:20 UTC, Jacob Carlborg wrote:
> Thanks, I didn't know that. It's not ideal, it adds some other tags that I would like to avoid, i.e. "Page generated by Ddoc", but it works.
those are in the macro definition file, you can make your own and simplify/improve.
|
August 10, 2016 Re: Ddoc to HTML tool? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On 10/08/16 19:10, Adam D. Ruppe wrote: > those are in the macro definition file, you can make your own and > simplify/improve. I replaced the DDOC macro with my own version, that worked fine. Thanks. -- /Jacob Carlborg |
August 10, 2016 Re: Ddoc to HTML tool? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On 10/08/16 16:48, Kagamin wrote: > dmd generates html from dd files; example: > https://github.com/dlang/dlang.org/blob/master/download.dd Unfortunately it looks like Standard Sections [1] are not handled in the same way as when generating documentation from D source files. They're handled just as any other text. [1] https://dlang.org/spec/ddoc.html#standard_srction -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation