digitalmars.D - ddox question
- Andrei Alexandrescu (5/5) Jan 10 2015 In the ddox-generated documentation the heading is e.g. "Module
- Mathias LANG (8/13) Jan 11 2015 IIUC, you're looking for this:
- Andrei Alexandrescu (3/15) Jan 11 2015 I don't think the CSS would be enough. The "title" is "Module xxx.yyy".
- Kiith-Sa (8/32) Jan 11 2015 Seems to be
- Andrei Alexandrescu (3/31) Jan 11 2015 Thanks! Are there ways to override those? We need to make dlang.org
- Mathias LANG (6/9) Jan 11 2015 By default, it uses ddox's one, but they're overrideable (by
- Martin Nowak (3/5) Jan 12 2015 Here is the right place.
- Andrei Alexandrescu (3/8) Jan 12 2015 Thanks! Yah but that's just "title". How do I break it into "Module "
- "Ulrich =?UTF-8?B?S8O8dHRsZXIi?= <kuettler gmail.com> (6/17) Jan 12 2015 Adding the following at layout.dt:116 does it:
- Mathias LANG (4/22) Jan 12 2015 Yeah that's not the best solution, but it does the trick.
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
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. AndreiIIUC, 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
On 1/11/15 3:03 AM, Mathias LANG wrote:On Saturday, 10 January 2015 at 17:23:24 UTC, 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? -- AndreiIn 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. AndreiIIUC, 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
On Sunday, 11 January 2015 at 17:28:37 UTC, Andrei Alexandrescu wrote:On 1/11/15 3:03 AM, Mathias LANG wrote: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.On Saturday, 10 January 2015 at 17:23:24 UTC, 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? -- AndreiIn 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. AndreiIIUC, 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
On 1/11/15 2:02 PM, Kiith-Sa wrote:On Sunday, 11 January 2015 at 17:28:37 UTC, Andrei Alexandrescu wrote:Thanks! Are there ways to override those? We need to make dlang.org independent of https://github.com/rejectedsoftware/ddox/. -- AndreoOn 1/11/15 3:03 AM, Mathias LANG wrote: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.On Saturday, 10 January 2015 at 17:23:24 UTC, 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? -- AndreiIn 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. AndreiIIUC, 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
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/. -- AndreoBy 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
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? -- AndreiHere is the right place. https://github.com/D-Programming-Language/dlang.org/blame/dbcdbe39cdb0c0eb938c6e0a70198af72dd7b784/dpl-docs/views/layout.dt#L117
Jan 12 2015
On 1/12/15 10:48 AM, Martin Nowak wrote:On 01/11/2015 06:28 PM, Andrei Alexandrescu wrote:Thanks! Yah but that's just "title". How do I break it into "Module " and the actual name of the module? -- AndreiI 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? -- AndreiHere is the right place. https://github.com/D-Programming-Language/dlang.org/blame/dbcdbe39cdb0c0eb938c6e0a70198af72dd7b784/dpl-docs/views/layout.dt#L117
Jan 12 2015
On Monday, 12 January 2015 at 18:52:25 UTC, Andrei Alexandrescu wrote:On 1/12/15 10:48 AM, Martin Nowak wrote:Adding the following at layout.dt:116 does it: - else if (hidx > 0 && title[0 .. hidx] == "Module") Seems a little backward to me, however.On 01/11/2015 06:28 PM, Andrei Alexandrescu wrote:Thanks! Yah but that's just "title". How do I break it into "Module " and the actual name of the module? -- AndreiI 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? -- AndreiHere is the right place. https://github.com/D-Programming-Language/dlang.org/blame/dbcdbe39cdb0c0eb938c6e0a70198af72dd7b784/dpl-docs/views/layout.dt#L117
Jan 12 2015
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:Yeah that's not the best solution, but it does the trick. Proposed here: https://github.com/D-Programming-Language/dlang.org/pull/761On 1/12/15 10:48 AM, Martin Nowak wrote:Adding the following at layout.dt:116 does it: - else if (hidx > 0 && title[0 .. hidx] == "Module") Seems a little backward to me, however.On 01/11/2015 06:28 PM, Andrei Alexandrescu wrote:Thanks! Yah but that's just "title". How do I break it into "Module " and the actual name of the module? -- AndreiI 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? -- AndreiHere is the right place. https://github.com/D-Programming-Language/dlang.org/blame/dbcdbe39cdb0c0eb938c6e0a70198af72dd7b784/dpl-docs/views/layout.dt#L117
Jan 12 2015