Thread overview
Ddoc specification needed
Jan 25, 2017
Ali Çehreli
Jan 25, 2017
Ali Çehreli
Jan 26, 2017
Jacob Carlborg
Jan 26, 2017
Ali Çehreli
January 25, 2017
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

January 25, 2017
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

January 26, 2017
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
January 25, 2017
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