ddox question

via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 14:01:06 PST 2015


On Monday, 12 January 2015 at 18:52:25 UTC, Andrei Alexandrescu 
wrote:
> On 1/12/15 10:48 AM, Martin Nowak wrote:
>> On 01/11/2015 06:28 PM, Andrei Alexandrescu wrote:
>>> I don't think the CSS would be enough. The "title" is "Module 
>>> xxx.yyy".
>>> I only need to format "xxx.yyy" in code font. How do I do 
>>> that? -- Andrei
>>
>> Here is the right place.
>> https://github.com/D-Programming-Language/dlang.org/blame/dbcdbe39cdb0c0eb938c6e0a70198af72dd7b784/dpl-docs/views/layout.dt#L117
>
> Thanks! Yah but that's just "title". How do I break it into 
> "Module " and the actual name of the module? -- Andrei

Adding the following at layout.dt:116 does it:

- else if (hidx > 0 && title[0 .. hidx] == "Module")
   h1 #{title[0 .. hidx]} <code>#{title[hidx+1 .. $]}</code>

Seems a little backward to me, however.


More information about the Digitalmars-d mailing list