-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #550 - Use dlang.org theme on the editor page #553
Conversation
content: " \f0d7"; | ||
font-family: FontAwesome; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backported from dlang.org
|
||
if (container.className.indexOf("expand-container")) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is required, s.t. the link clicks on "Downloads" and "Packages" (i.e. no sections) don't get silently swallowed.
That's a good idea only if you want to maintain a third copy of the menu... I'd be inclined to say that this is a better idea: |
I think there are more copies out there: blog.dlang.org, code.dlang.org, VisualD, ...
Maybe in theory, but we already have adopted and trimmed down the menu CSS to a single CSS file and we need to maintain the ability to generate the menu dynamically anyways for the language content. |
More things to fix, then. The next time a major website redesign comes about, we are going to be neck deep into doing pointless work updating all these websites that could have been avoided with a bit of fore-planning and refactoring. Except forum.dlang.org, of course.
Instead of working around things in an unmaintainable manner on your side, please refactor things on the dlang.org side to maximize reuse. |
@@ -166,13 +166,87 @@ class WebInterface | |||
toc, title, githubRepo, translations)(); | |||
} | |||
|
|||
private static auto buildDlangToc() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks so much better than all those DDoc shenanigans at dlang.org!
Btw it's much more likely that we redesign the tour in the meanwhile, e.g. #473 ;-) |
The sooner we move dlang.org to vibe.d diet templates, the sooner this problem would be resolved :P |
FWIW https://github.com/dlang/dlang.org/blob/master/dpl-docs/views/layout.dt |
@CyberShadow I think it would be an unreasonable amount of work to import the the dlang.org tour Ddoc templete. Also we can't use submodules here, because sadly DUB still doesn't support them and the tour can be run offline (well currently this only works if you have the language translation, but it's an existing feature). Lastly as mentioned before we/I plan to redesign the DTour a bit in the next few weeks, so we most likely are just going to keep the color schemes and style of dlang.org, which is only CSS anyhow. |
Instead of just dumping the menu, I went the "long" road and build the menu statically in D.
This should allow us more flexibility in the future.