www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - ddox question

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
In the ddox-generated documentation the heading is e.g. "Module 
std.container". I wanted to style "std.container" in code font, but 
can't find where that text is generated. I've searched dlang.org/ and 
dub/, no avail.

Andrei
Jan 10 2015
parent reply "Mathias LANG" <geod24 gmail.com> writes:
On Saturday, 10 January 2015 at 17:23:24 UTC, Andrei Alexandrescu 
wrote:
 In the ddox-generated documentation the heading is e.g. "Module 
 std.container". I wanted to style "std.container" in code font, 
 but can't find where that text is generated. I've searched 
 dlang.org/ and dub/, no avail.

 Andrei
IIUC, you're looking for this: https://github.com/rejectedsoftware/ddox/blob/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views/layout.dt Which is the base of all layout. But from a quick look (https://github.com/rejectedsoftware/ddox/search?utf8=%E2%9C%93&q=h1), the title is the only h1 on the page, so you could just tweak the CSS.
Jan 11 2015
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 1/11/15 3:03 AM, Mathias LANG wrote:
 On Saturday, 10 January 2015 at 17:23:24 UTC, Andrei Alexandrescu wrote:
 In the ddox-generated documentation the heading is e.g. "Module
 std.container". I wanted to style "std.container" in code font, but
 can't find where that text is generated. I've searched dlang.org/ and
 dub/, no avail.

 Andrei
IIUC, you're looking for this: https://github.com/rejectedsoftware/ddox/blob/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views/layout.dt Which is the base of all layout. But from a quick look (https://github.com/rejectedsoftware/ddox/search?utf8=%E2%9C%93&q=h1), the title is the only h1 on the page, so you could just tweak the CSS.
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
Jan 11 2015
next sibling parent reply "Kiith-Sa" <kiithsacmp gmail.com> writes:
On Sunday, 11 January 2015 at 17:28:37 UTC, Andrei Alexandrescu 
wrote:
 On 1/11/15 3:03 AM, Mathias LANG wrote:
 On Saturday, 10 January 2015 at 17:23:24 UTC, Andrei 
 Alexandrescu wrote:
 In the ddox-generated documentation the heading is e.g. 
 "Module
 std.container". I wanted to style "std.container" in code 
 font, but
 can't find where that text is generated. I've searched 
 dlang.org/ and
 dub/, no avail.

 Andrei
IIUC, you're looking for this: https://github.com/rejectedsoftware/ddox/blob/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views/layout.dt Which is the base of all layout. But from a quick look (https://github.com/rejectedsoftware/ddox/search?utf8=%E2%9C%93&q=h1), the title is the only h1 on the page, so you could just tweak the CSS.
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
Seems to be https://github.com/rejectedsoftware/ddox/blob/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views/ddox.module.dt (line 9) Just look at files in https://github.com/rejectedsoftware/ddox/tree/ce797a3182c1263feb4a6f4c9c 9b88b95d83003/views . I don't use DDox, but it's easy to get around.
Jan 11 2015
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 1/11/15 2:02 PM, Kiith-Sa wrote:
 On Sunday, 11 January 2015 at 17:28:37 UTC, Andrei Alexandrescu wrote:
 On 1/11/15 3:03 AM, Mathias LANG wrote:
 On Saturday, 10 January 2015 at 17:23:24 UTC, Andrei Alexandrescu wrote:
 In the ddox-generated documentation the heading is e.g. "Module
 std.container". I wanted to style "std.container" in code font, but
 can't find where that text is generated. I've searched dlang.org/ and
 dub/, no avail.

 Andrei
IIUC, you're looking for this: https://github.com/rejectedsoftware/ddox/blob/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views/layout.dt Which is the base of all layout. But from a quick look (https://github.com/rejectedsoftware/ddox/search?utf8=%E2%9C%93&q=h1), the title is the only h1 on the page, so you could just tweak the CSS.
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
Seems to be https://github.com/rejectedsoftware/ddox/blob/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views/ddox.module.dt (line 9) Just look at files in https://github.com/rejectedsoftware/ddox/tree/ce797a3182c1263feb4a6f4c9ce9b88b95d83003/views . I don't use DDox, but it's easy to get around.
Thanks! Are there ways to override those? We need to make dlang.org independent of https://github.com/rejectedsoftware/ddox/. -- Andreo
Jan 11 2015
parent "Mathias LANG" <geod24 gmail.com> writes:
On Sunday, 11 January 2015 at 22:19:01 UTC, Andrei Alexandrescu 
wrote:
 Thanks! Are there ways to override those? We need to make 
 dlang.org independent of 
 https://github.com/rejectedsoftware/ddox/. -- Andreo
By default, it uses ddox's one, but they're overrideable (by defining a file with the same name), as it's already done for layout.dt and ddox.layout.dt: https://github.com/D-Programming-Language/dlang.org/tree/master/dpl-docs/views
Jan 11 2015
prev sibling parent reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
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
Jan 12 2015
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
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
Jan 12 2015
parent reply "Ulrich =?UTF-8?B?S8O8dHRsZXIi?= <kuettler gmail.com> writes:
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") Seems a little backward to me, however.
Jan 12 2015
parent "Mathias LANG" <geod24 gmail.com> writes:
On Monday, 12 January 2015 at 22:01:07 UTC, Ulrich Küttler wrote:
 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") Seems a little backward to me, however.
Yeah that's not the best solution, but it does the trick. Proposed here: https://github.com/D-Programming-Language/dlang.org/pull/761
Jan 12 2015