www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Ddoc specification needed

reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
A change in one of the recent compilers broke my use of Ddoc because 
code sections that are separated by --- now have new XML tags like 
<section class="code_listing"> which my current CSS is unaware of.

What do I need to know to have complete control of the situation?

Ali
Jan 25 2017
next sibling parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 01/25/2017 11:07 AM, Ali Çehreli wrote:
 A change in one of the recent compilers broke my use of Ddoc because
 code sections that are separated by --- now have new XML tags like
 <section class="code_listing"> which my current CSS is unaware of.

 What do I need to know to have complete control of the situation?
Ok, the output of 'strings dmd' shows me the following: D_CODE = <section class="code_listing"> <div class="code_sample"> <div class="dlang"> <ol class="code_lines"> <li><code class="code">$0</code></li> </ol> </div> </div> </section> Instead of the documented D_CODE = <pre class="d_code">$0</pre> Opened issue: https://issues.dlang.org/show_bug.cgi?id=17121 Ali
Jan 25 2017
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2017-01-25 20:07, Ali Çehreli wrote:

 What do I need to know to have complete control of the situation?
To have _complete_ control you need to redefine all the predefined macros, even if they're exactly the same as the predefined version. Otherwise this can happened at any time again. Fortunately the predefined macros are now in a separate file [1], making it much easier to extract the predefined macros. [1] https://github.com/dlang/dmd/blob/master/res/default_ddoc_theme.ddoc -- /Jacob Carlborg
Jan 25 2017
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 01/25/2017 11:36 PM, Jacob Carlborg wrote:
 Fortunately the
 predefined macros are now in a separate file [1], making it much easier
 to extract the predefined macros.

 [1] https://github.com/dlang/dmd/blob/master/res/default_ddoc_theme.ddoc
Thank you, that helps a lot! Ali
Jan 25 2017