January 11, 2016
On Monday, 11 January 2016 at 11:48:18 UTC, anonymous wrote:
> On 09.01.2016 23:24, Vladimir Panteleev wrote:
>> Once this is merged, would you be OK with working together on updating
>> the forum to the new design?
>
> I wanted to have a look at DFeed, but all I get with a local clone is "Internal Server Error". After investigating a bit, I suspect that there should be a web/skel.htt file, but it's not in the repository.

Ah, sorry, the build instructions are out of date. That file is created through the makefile (GNUmakefile).
January 11, 2016
On Monday, 11 January 2016 at 14:54:12 UTC, wobbles wrote:
> How else would you lay it out?
> I dont think you could put all the content in that top bar pre-expanded - so you'd have all the menus on the left as it is on the current site?

I think the left menu on the current site is of limited value too. It is really hard to find what I'm actually looking for. (The organization is weird. To me, "D reference" and "standard library" ought to be the same, for example, and why is bug tracker under community?)

I'd prefer to simplify it to like 5 menu items, each of which leads to a new page that can further break it down, using the whole screen to lay it out.

Really, one of my biggest worries with dlang.org isn't the color scheme, but rather I feel like everything is cramped and content takes a back seat to cramming it all in. That's not to say we need infinite whitespace like so many new sites, I just don't think everything needs to be on every page.
January 11, 2016
On Monday, 11 January 2016 at 15:06:40 UTC, Adam D. Ruppe wrote:
> On Monday, 11 January 2016 at 14:54:12 UTC, wobbles wrote:
>> How else would you lay it out?
>> I dont think you could put all the content in that top bar pre-expanded - so you'd have all the menus on the left as it is on the current site?
>
> I think the left menu on the current site is of limited value too. It is really hard to find what I'm actually looking for. (The organization is weird. To me, "D reference" and "standard library" ought to be the same, for example, and why is bug tracker under community?)
>
> I'd prefer to simplify it to like 5 menu items, each of which leads to a new page that can further break it down, using the whole screen to lay it out.
>
> Really, one of my biggest worries with dlang.org isn't the color scheme, but rather I feel like everything is cramped and content takes a back seat to cramming it all in. That's not to say we need infinite whitespace like so many new sites, I just don't think everything needs to be on every page.

Yeah, I really dislike the over use of whitespace in current trendy sites. And the constant scrolling down to view more info is annoying too (I know CSS z-layer animations are cool, but they dont need to be everywhere!!).

Well, while the website is going under such tumultuous changes, is now not the time to fix all the above? Clean everything up and put everything under sane headings/sections etc?
January 11, 2016
On 11.01.2016 15:58, Vladimir Panteleev wrote:
> Ah, sorry, the build instructions are out of date. That file is created
> through the makefile (GNUmakefile).

Alright, after `make` it works.

I've started hacking around, no road blocks so far. Looks like this at the moment: http://i.imgur.com/yjuXFBq.png

Is there a way to limit the number of loaded posts? I don't need the full archive. But the newest posts would be nice; I think /frame-discussions ignores ancient posts.
January 12, 2016
On Sunday, 10 January 2016 at 23:23:31 UTC, Andrei Alexandrescu wrote:
> Yeah, great tool Martin. I recall it was among the first on the dub repo. Would be great to hook it in and have it insert a bunch of "­"s. -- Andrei

It's from 2014-Dec-11 and despite a few deprecations it still builds and passes it's tests with the latest compiler :).

I could use some help on the html processing though.
Wasn't there a binding for an html parser or does someone know a suitable tool?
January 12, 2016
On Tuesday, 12 January 2016 at 01:02:44 UTC, Martin Nowak wrote:
> I could use some help on the html processing though.
> Wasn't there a binding for an html parser or does someone know a suitable tool?

My dom.d in loose mode is able to read ddoc's output. Here's a skeleton program you can use to get started:

---

import arsd.dom;

import std.file;
import std.stdio;

string hyphenateText(string input) {
        return input; // FIXME: implement algorithm here
}

void doHyphenation(Element element) {
        if(element.hasClass("donthyphenate"))
                return;
        if(element.tagName == "script")
                return;
        // you might filter other things too

        if(auto tn = cast(TextNode) element) {
                tn.contents = hyphenateText(tn.contents);
        } else {
                foreach(child; element.childNodes)
                        doHyphenation(child);
        }
}

void main() {
        auto document = new Document();
        document.enableAddingSpecialTagsToDom();
        // FIXME: pass a different html filename here
        document.parseUtf8(readText("intro.html"), false, false);

        doHyphenation(document.mainBody);

        writeln(document);
}

---



dom.d is available here:

https://github.com/adamdruppe/arsd

just download the single file, no need for anything else, it has no dependencies

also available on dub:

http://code.dlang.org/packages/arsd-official%3Adom/~master
January 12, 2016
On Monday, 11 January 2016 at 19:39:51 UTC, anonymous wrote:
> On 11.01.2016 15:58, Vladimir Panteleev wrote:
>> Ah, sorry, the build instructions are out of date. That file is created
>> through the makefile (GNUmakefile).
>
> Alright, after `make` it works.
>
> I've started hacking around, no road blocks so far. Looks like this at the moment: http://i.imgur.com/yjuXFBq.png

Nice. Is it responsive?

> Is there a way to limit the number of loaded posts? I don't need the full archive. But the newest posts would be nice; I think /frame-discussions ignores ancient posts.

Not right now unfortunately. Definitely something I need to add at some point as the volume of messages grows.
January 12, 2016
On 12.01.2016 08:24, Vladimir Panteleev wrote:
> Nice. Is it responsive?

As responsive as the main site. I just updated the dlang.org submodule and fixed what got broken.

I'm mostly done now. Pull request is over here:
https://github.com/CyberShadow/DFeed/pull/51
January 12, 2016
On 01/12/2016 03:12 PM, anonymous wrote:
> On 12.01.2016 08:24, Vladimir Panteleev wrote:
>  > Nice. Is it responsive?
>
> As responsive as the main site. I just updated the dlang.org submodule
> and fixed what got broken.
>
> I'm mostly done now. Pull request is over here:
> https://github.com/CyberShadow/DFeed/pull/51

Here's the download source: https://github.com/braddr/downloads.dlang.org -- Andrei
January 16, 2016
On Friday, 8 January 2016 at 22:32:59 UTC, anonymous wrote:
> My implementation of the redesign is pretty much complete.
>
> Check it out: http://d-ag0aep6g.rhcloud.com/
>
> This is an implementation of a design done by one Ivan Smirnov, brought forward by Jacob Carlborg [1].
>
> The dark forum widgets on the home page are in iframes. Their styling will need to be updated at the source, which is forum.dlang.org.
>
> Another external dependency is the This Week in D script. Adam, it would be nice if the `setTwid` function could take the date separately. That would allow me to word the text without having "This Week in D" there twice.
>
> Other than those two little things I consider this done. From my side it could be merged immediately.
>


It's responsive too. sweet!! Nice layout, nice UX, reddish color is a little mmm...

But just to suggest further improvement on the UX;

1.The online runner could have a label which tells what it does. Maybe change the "you code here" to "Test Code Here".

2. The top and bottom margin of the various sections (Community, Learn, etc) are more squeezed together especially on smaller viewports.

3. I think the English there is too high level for a beginner, especially the "Why D" justification?
1 2 3 4 5 6 7
Next ›   Last »