digitalmars.D.learn - Ddoc to HTML tool?
- Jacob Carlborg (5/5) Aug 10 2016 What's the best way to generate HTML from a snippet of Ddoc? I've
- Kagamin (2/2) Aug 10 2016 dmd generates html from dd files; example:
- Jacob Carlborg (5/7) Aug 10 2016 Thanks, I didn't know that. It's not ideal, it adds some other tags that...
- Adam D. Ruppe (4/7) Aug 10 2016 those are in the macro definition file, you can make your own and
- Jacob Carlborg (4/6) Aug 10 2016 I replaced the DDOC macro with my own version, that worked fine. Thanks.
- Jacob Carlborg (7/9) Aug 10 2016 Unfortunately it looks like Standard Sections [1] are not handled in the...
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
Aug 10 2016
dmd generates html from dd files; example: https://github.com/dlang/dlang.org/blob/master/download.dd
Aug 10 2016
On 10/08/16 16:48, Kagamin wrote:dmd generates html from dd files; example: https://github.com/dlang/dlang.org/blob/master/download.ddThanks, 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
Aug 10 2016
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.
Aug 10 2016
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
Aug 10 2016
On 10/08/16 16:48, Kagamin wrote:dmd generates html from dd files; example: https://github.com/dlang/dlang.org/blob/master/download.ddUnfortunately 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
Aug 10 2016