Summary: | Suggestion: place new packages and/or glsa information on the frontpage | ||
---|---|---|---|
Product: | Websites | Reporter: | Aniruddha <mailingdotlist> |
Component: | [OLD] News | Assignee: | Xavier Neys (RETIRED) <neysx> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | antarus, billie, dsd, esycat, gentoo-bugs, mpagano, nichoj, pr |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 141909 | ||
Bug Blocks: | 252157 | ||
Attachments: |
20090130-website-changes.xml
20090130-website-changes.xml |
Description
Aniruddha
2008-01-05 05:48:03 UTC
There is new news committed to the front now, and this is a website issue, I don't think it's infra. (In reply to comment #1) This bug should be reassigned to www@g.o then . . . assuming there's anyone still on that team. So you know, I do have commit access to the front page, so I can manually update stuff when needed. I'm not sure how I'd set up automated feeds from our other sites, though. docs-team write docs, i.e. stuff under /doc :) The fact that I handle xsl/dtd issues does not make them docs-team issues This bug depends on having a proper glsa-index.xml BTW Listing packages seemed like a nice idea too, but they'd have hidden the recent 3 news items as there are almost always more recent packages that appear at the top of list. I'll see how it looks with the latest packages all put together in a single news item. Forgot to reassign. I'm working on something like this. (In reply to comment #5) > I'm working on something like this. Good, since the xsl already exists, maybe you could focus on editing a static html page and get it approved instead of banging your head against XSL someone else might find trivial to write :) GLSA, done, putting each in a newsitem looks OK to me. Latest packages, done, does not look good imo, I'll see how it looks in a single newsitem. (In reply to comment #6) > Latest packages, done, does not look good imo, I'll see how it looks in a > single newsitem. Looks better imho (In reply to comment #6) > (In reply to comment #5) > > I'm working on something like this. > > Good, since the xsl already exists, maybe you could focus on editing a static > html page and get it approved instead of banging your head against XSL someone > else might find trivial to write :) static html? ew :P XSL point taken however ;) > > GLSA, done, putting each in a newsitem looks OK to me. > Latest packages, done, does not look good imo, I'll see how it looks in a > single newsitem. > Wrong bug, sorry. Could infra please make feeds from planet/packages available under /dyn ? Here's what runs on my box: # Download new packages from packages.g.o curl -s http://packages.gentoo.org/feed/newpackage >tmp.newpackages xmllint --noout tmp.newpackages if [ $? -eq 0 ]; then diff tmp.newpackages $W/dyn/new-packages.xml 2>/dev/null 1>&2 if [ $? -ne 0 ]; then mv tmp.newpackages $W/dyn/new-packages.xml fi fi # Download feed from planet.g.o curl -s http://planet.gentoo.org/rss20.xml >tmp.planet xmllint --noout tmp.planet if [ $? -eq 0 ]; then diff tmp.planet $W/dyn/planet.xml 2>/dev/null 1>&2 if [ $? -ne 0 ]; then mv tmp.planet $W/dyn/planet.xml fi fi ########################### Logic is the same as on bug #131476 copy to temp file, if temp file is both valid and different than current, mv file under /dyn Thanks. Have a look at http://www.gentoo.org/index2.xml FYI, it uses remote files, i.e. the html is not cached, i.e. the whole shebang is transformed on every hit. It makes it not only terribly slow, but also sensitive to outages. Remote files come from planet.g.o packages.g.o and my own box, if any of them is down, the home page (index2.xml, not the real one) is dead. (In reply to comment #11) > Could infra please make feeds from planet/packages available under /dyn ? I like the new look. Maybe I can help on the planet side here? I assume you mean the RSS feed. I don't know what or where /dyn is though. How would the feed get transported there? There is no /dyn on the planet host (warbler) (In reply to comment #13) > (In reply to comment #11) > > Could infra please make feeds from planet/packages available under /dyn ? > > I like the new look. Maybe I can help on the planet side here? I assume you > mean the RSS feed. > > I don't know what or where /dyn is though. How would the feed get transported > there? There is no /dyn on the planet host (warbler) /dyn is www.gentoo.org where a couple of other dynamically generated files go, i.e. they are not committed into CVS, e.g. the devaway.xml that is copied from dev.g.o, see bug #131476 Opened: 2006-04-27 09:24 planet.g.o already provides a feed, no need to change anything there. The feeds gets transported to www.g.o by the script posted above, once implemented. (In reply to comment #12) > Have a look at http://www.gentoo.org/index2.xml > This looks great! Any chance it gets implemented? InCVS. /var/cvsroot/gentoo-infra/cfengine/files/home/gweb/scripts/master/new-packages.sh,v <-- new-packages.sh initial revision: 1.1 /var/cvsroot/gentoo-infra/cfengine/files/home/gweb/scripts/master/planet.sh,v <-- planet.sh initial revision: 1.1 /var/cvsroot/gentoo-infra/cfengine/files/home/gweb/scripts/master/update-master.sh,v <-- update-master.sh new revision: 1.8; previous revision: 1.7 Should be live on the web in the next hour. Is it me or has the implementation been delayed? CC'ed PR. Newsitem should be committed at the same time. Cheers. Thank for the ping, Xavier. Got some work-related deadlines going on, I'm trying to get to this. If you feel like tossing together a draft of the changes, I'd be happy to look it over. As you must have already noticed, your favourite website now displays more information. Due to popular demand, the latest blog posts from planet.gentoo.org, packages from packages.gentoo.org and security announcements are summed up on Gentoo's home page. Created attachment 180209 [details] 20090130-website-changes.xml Xavier, Great timing! I was just spending a little time on PR things tonight. Here is an XML file almost ready to go. The only thing missing is a link to the forums thread -- I generally file that first since news items have deterministic links, then commit the news item. Here's an example: http://forums.gentoo.org/viewtopic-t-719732.html Created attachment 180211 [details]
20090130-website-changes.xml
Woops, those <uri> bits apparently need a link attrib to do the right thing.
Feeds are now syndicated on front page. Thanks for reporting. The website looks great :) |