-
-
Notifications
You must be signed in to change notification settings - Fork 382
Show latest article of the DBlog on the frontpage #1710
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
Conversation
| $(P Stay updated with | ||
| $(LINK2 http://arsdnet.net/this-week-in-d, | ||
| <cite>This Week in D</cite>) - | ||
| $(SPANC twid) |
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.
Let's keep This Week in D. It's pretty cool, despite not having the "official" stamp on it. Just move it below the official blog. May be something like:
Stay updated with the official D Blog and This Week in D:
- D Blog - Compile-Time Sort in D by Michael Parker from June 5, 2017.
- This Week in D - May 28: Blog article on optimization and Andrei Israel trip, Beta D 2.074, tip on mixin w/ anon func.
e0cf7d9 to
669d49c
Compare
|
I didn't get a chance to update twid again since I was out of town again.... I wouldn't mind if you simplified or removed it to save space. |
|
If space is an issue we can try with this:
Or with an even shorter version:
|
I really dislike how much the home page currently depends on JavaScript, so this is interesting. It feels weird to generate the "latest" stuff when building the site, but if you do that regularly enough, sure. Does it work, though? The doc tester shows "from : by . ". Also, https://blog.dlang.org doesn't work. Needs "http://". Regarding space problems, you could cut the DConf text down. One paragraph instead of two; shorter "thank you" or none at all; "through this YouTube playlist" -> "on YouTube" - stuff like that. Regarding TWID, it doesn't seem very alive. So I'd go with the blog if only one can get in. |
|
I think the DConf bit needs to be moved out of the news section and somewhere else, a banner or a sidebar widget. Then there should be enough room for the blog and TWiD in the News section (no need to listify them either, just two paragraphs). |
ae2bd8c to
13c53d2
Compare
Yes as mentioned before, I explicitly disable this (as dynamic content) on the DAutoTest to avoid random changes (
Oh thanks!
Okay,
Now adding the DConf link to "Learn" yields (and slightly adjusting the News intro): @CyberShadow the only place I could find to put the playlist link was the "Learn" section. Better ideas? |
I was thinking maybe take http://dconf.org/2017/images/dconf_logo_2017.svg, crop it, and put it (with some text) in the sidebar above or under the Tweeter widget, what do you think? Plenty of space there. |
13c53d2 to
09a00b3
Compare
Nice idea - like this? Maybe a bit more spacing? |
|
Yep! Could use a bit of text under the logo (essentially what we have in the news section right now). |
sitemap.dd
Outdated
| @@ -0,0 +1,203 @@ | |||
| Ddoc | |||
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.
Did you add this accidentally?
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.
Yes, I really need some sleep :P
In any case, we should add this to the gitignore or even better: simply put it into .generated
#1725
| # Fetch the latest article from the official D blog | ||
| ################################################################################ | ||
|
|
||
| $G/dblog_latest.ddoc: |
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.
DIFFABLE, not DIIFABLE
posix.mak
Outdated
|
|
||
| $G/twid_latest.ddoc: | ||
| @echo "Receiving the latest TWID article. Disable with DIIFABLE=1" | ||
| curl -s --retry 3 --retry-delay 5 http://arsdnet.net/this-week-in-d/twid-latest.js | grep setTwid | \ |
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.
Is this going to handle special characters nicely?
| @@ -0,0 +1,213 @@ | |||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||
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.
Hotlinking it would've been fine, but this is fine too
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.
I prefer copying - just in case the layout of dconf.org changes ... (I would like to avoid dependencies on other websites wherever possible).
5de43ee to
4649c60
Compare
index.dd
Outdated
| <cite>Programming in D</cite>) or | ||
| $(LINK2 http://youtube.com/playlist?list=PL3jwVPmk_PRxo23yyoc0Ip_cP3-rCm7eB, watch) | ||
| talks from | ||
| $(LINK2 http://dconf.org/2017/index.html, DConf17) |
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.
Should I still keep this if we add the DConf banner?
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.
Yeah, not sure how good the talks are effective for actually learning D.
|
|
If I understand that regex correctly, if a TWiD issue has a " in it, it's not going to show up at all. |
|
I don't understand how RFC 3966 plays in this. The TWiD data is a JavaScript file, it's not URL-encoded. |
4649c60 to
78589cb
Compare
Yes & Yes, sorry. |
78589cb to
c408e76
Compare
TWID now stays part of the main page.
c408e76 to
b29ca60
Compare
|
Thanks for your pull request, @wilzbach! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
b29ca60 to
d3df255
Compare
|
Alrighty, I have fixed all open "issues" and this should be good to go. Anything else blocking this? |
|
@adamdruppe Any news on twid_latest.dd? |
posix.mak
Outdated
|
|
||
| $G/twid_latest.ddoc: | ||
| @echo "Receiving the latest TWID article. Disable with DIFFABLE=1" | ||
| curl -s --retry 3 --retry-delay 5 http://arsdnet.net/this-week-in-d/twid-latest.js | grep setTwid | \ |
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.
Quotes (and other JS escapes) in TWID titles are still going to show up wrong.
d3df255 to
c99aac3
Compare
|
Thanks a lot @adamdruppe! Integrated & rebased. Anything else missing? :) |
|
Looks great! |
|
And fetching the latest resources on the deploy for dlang.org worked - it's live now :) Thanks a lot @adamdruppe @mdparker @ZombineDev @aG0aep6G @CyberShadow ! @adamdruppe dlang.org gets built and deployed everytime a PR gets merged to dlang/{dmd,druntime,phobos,dlang.org} - according to your stats that's about 30 times a week or ~ three times a day. So, in the worst case, there might be a lag of a few hours until new articles are propagated on dlang.org. |
|
If you want, I can add a trigger that forces a rebuild |
|
On Tue, Jun 27, 2017 at 11:58:35AM -0700, Sebastian Wilzbach wrote:
@adamdruppe dlang.org gets built and deployed everytime a PR gets merged to dlang/{dmd,druntime,phobos,dlang.org}
There's a lag with me updating it too, some days I don't get around
to it till late monday, so not a big deal.
|








I just had this crazy idea and funnily it works quite well - even with Ddoc :)
This definition is only used when
DIFFABLEis not set, so it won't be possible to preview this on the DAutoTest, but here's how it will look in action:For a local build without internet,
curlwill fail silently and it will just create an empty file.On subsequent runs, this target won't be executed. (No
.PHONY).This approach is also nicer than the previous JavaScript injection, because search engines see the new content & they like sites that are updated often.
It's fairly unlikely that the DBlog theme will change soon and if - as said before - it will just silently fail ...
CC @mdparker @JackStouffer @CyberShadow