Re: ddox question
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.
Re: ddox question
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) h1 #{title[0 .. hidx]} code#{title[hidx+1 .. $]}/code 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
Re: ddox question
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
Re: ddox question
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
Re: ddox question
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%93q=h1), the title is the only h1 on the page, so you could just tweak the CSS.
Re: ddox question
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%93q=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
Re: ddox question
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%93q=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.
Re: ddox question
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
Re: ddox question
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%93q=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
ddox question
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
DDOX question
Hello! I'm trying to generate documentation for a library. I like result of DDOX generation - nice navigation by modules and classes. But I cannot figure out how to generate custom pages (e.g. from .dd .d Ddoc), and how to add links to custom pages to all generated pages, e.g. like on Vibe.d documentation site. Could someone point on example or docs wich can help me? Best regards, Vadim