|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75145 - in website/public_html/beta: . site-tools/boost_site site-tools/templates users/download
From: dnljms_at_[hidden]
Date: 2011-10-27 17:44:23
Author: danieljames
Date: 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
New Revision: 75145
URL: http://svn.boost.org/trac/boost/changeset/75145
Log:
Website: Add beta to home page.
Text files modified:
website/public_html/beta/index.html | 15 ++++++-------
website/public_html/beta/site-tools/boost_site/settings.py | 13 +++++++++++
website/public_html/beta/site-tools/boost_site/site_tools.py | 13 +++++++++++
website/public_html/beta/site-tools/templates/download-template.html | 42 ++++++++++++++++++++-------------------
website/public_html/beta/site-tools/templates/index-src.html | 29 +++++++++++++++------------
website/public_html/beta/users/download/index.html | 23 ++++++++++++++++++---
6 files changed, 88 insertions(+), 47 deletions(-)
Modified: website/public_html/beta/index.html
==============================================================================
--- website/public_html/beta/index.html (original)
+++ website/public_html/beta/index.html 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
@@ -93,14 +93,13 @@
<div class="directory-item" id="important-downloads">
<h2>Downloads</h2>
- <ul id="downloads">
-
- <li><span class=
- "news-title">Version 1.47.0 (release notes)
- </span>
- <span class=
- "news-date">July 11th, 2011 18:19 GMT</span></li>
- </ul>
+<h3>Current Release</h3>
+<ul id="downloads">
+<li><span class="news-title">Version 1.47.0 (release notes)</span><span class="news-date">July 11th, 2011 18:19 GMT</span></li>
+</ul><h3>Beta Release</h3>
+<ul id="downloads">
+<li><span class="news-title">Version 1.48.0 (release notes)</span><span class="news-date">In Progress</span></li>
+</ul>
<p>More Downloads...
(RSS)</p>
Modified: website/public_html/beta/site-tools/boost_site/settings.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/settings.py (original)
+++ website/public_html/beta/site-tools/boost_site/settings.py 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
@@ -4,7 +4,18 @@
settings = {
'downloads' : [
- 'feed/history/boost_1_47_0.qbk'
+ {
+ 'anchor': 'live',
+ 'single': 'Current Release',
+ 'plural': 'Current Releases',
+ 'patterns': ['feed/history/boost_1_47_0.qbk']
+ },
+ {
+ 'anchor': 'beta',
+ 'single': 'Beta Release',
+ 'plural': 'Beta Releases',
+ 'patterns': ['feed/history/boost_1_48_0.qbk']
+ }
],
'pages': {
'users/history/': {
Modified: website/public_html/beta/site-tools/boost_site/site_tools.py
==============================================================================
--- website/public_html/beta/site-tools/boost_site/site_tools.py (original)
+++ website/public_html/beta/site-tools/boost_site/site_tools.py 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
@@ -35,9 +35,20 @@
# Generate 'Index' pages
+ downloads = []
+ for x in settings['downloads']:
+ entries = pages.match_pages(x['patterns'], sort = False)
+ if entries:
+ y = { 'anchor': x['anchor'], 'entries' : entries }
+ if len(entries) == 1:
+ y['label'] = x['single']
+ else:
+ y['label'] = x['plural']
+ downloads.append(y)
+
index_page_variables = {
'pages' : pages,
- 'downloads' : pages.match_pages(settings['downloads'], sort = False)
+ 'downloads' : downloads
}
for index_page in settings['index-pages']:
Modified: website/public_html/beta/site-tools/templates/download-template.html
==============================================================================
--- website/public_html/beta/site-tools/templates/download-template.html (original)
+++ website/public_html/beta/site-tools/templates/download-template.html 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
@@ -1,6 +1,5 @@
${
title = 'Boost Downloads'
-entries = downloads
}$<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -32,32 +31,35 @@
<div class="section-body">
<ul class="toc">
- <li>Packaged Releases</li>
-
+${
+for x in downloads:
+ emit('<li><a href="#%s">%s</li>\n' % (x['anchor'], x['label']))
+}$
<li>Old Boost Releases</li>
<li>Subversion Repository</li>
</ul>
-
- <h2><a name="releases" id="releases"></a>Packaged
- Releases</h2>${
-for entry in entries:
- emit('\n')
- emit(' <h3><span class=\n "news-title">%s</span></h3>\n\n' % entry.title_xml)
- emit(' <p class="news-date">%s</p>\n\n' % entry.web_date())
- emit(' <p class="news-description">\n')
- emit(' <span class="brief"><span class="purpose">%s</span></span></p>\n\n' % entry.purpose_xml)
- emit(' <ul class="menu">\n')
- emit(' <li>\n')
- emit(' Details' % entry.location)
- emit('</li>\n')
- if(entry.download_item):
+${
+for x in downloads:
+ emit('<h2 id="%s">%s</h2>' % (x['anchor'], x['label']))
+ for entry in x['entries']:
emit('\n')
+ emit(' <h3><span class=\n "news-title">%s</span></h3>\n\n' % entry.title_xml)
+ emit(' <p class="news-date">%s</p>\n\n' % entry.web_date())
+ emit(' <p class="news-description">\n')
+ emit(' <span class="brief"><span class="purpose">%s</span></span></p>\n\n' % entry.purpose_xml)
+ emit(' <ul class="menu">\n')
emit(' <li>\n')
- emit(' Download</li>' % entry.download_item)
- emit('\n')
- emit(' </ul>')
+ emit(' Details' % entry.location)
+ emit('</li>\n')
+ if(entry.download_item):
+ emit('\n')
+ emit(' <li>\n')
+ emit(' Download</li>' % entry.download_item)
+ emit('\n')
+ emit(' </ul>')
}$
+
<h2><a name="history" id="history"></a>Old Boost Releases</h2>
<p>Old versions of boost can be found on the <a href=
Modified: website/public_html/beta/site-tools/templates/index-src.html
==============================================================================
--- website/public_html/beta/site-tools/templates/index-src.html (original)
+++ website/public_html/beta/site-tools/templates/index-src.html 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
@@ -98,20 +98,23 @@
<div class="directory-item" id="important-downloads">
<h2>Downloads</h2>
- <ul id="downloads">
- ${
-for entry in downloads[:5]:
- emit('\n')
- emit(' <li><span class=\n "news-title">')
- if entry.download_item:
- emit('<a href="%s">' % entry.download_item)
- emit(entry.title_xml)
- if entry.download_item:
- emit('</a>')
- emit(' (release notes)\n </span>\n' % (entry.location))
- emit(' <span class=\n "news-date">%s</span></li>' % (entry.web_date()))
+${
+for x in downloads:
+ label = x['label']
+ entries = x['entries']
+ emit('<h3>%s</h3>\n' % label)
+ emit('<ul id="downloads">\n')
+ for entry in entries:
+ emit('<li><span class="news-title">')
+ if entry.download_item:
+ emit('<a href="%s">' % entry.download_item)
+ emit(entry.title_xml)
+ if entry.download_item:
+ emit('</a>')
+ emit(' (release notes)</span>' % (entry.location))
+ emit('<span class="news-date">%s</span></li>\n' % (entry.web_date()))
+ emit('</ul>')
}$
- </ul>
<p>More Downloads...
(RSS)</p>
Modified: website/public_html/beta/users/download/index.html
==============================================================================
--- website/public_html/beta/users/download/index.html (original)
+++ website/public_html/beta/users/download/index.html 2011-10-27 17:44:22 EDT (Thu, 27 Oct 2011)
@@ -27,15 +27,14 @@
<div class="section-body">
<ul class="toc">
- <li>Packaged Releases</li>
+<li><a href="#live">Current Release</li>
+<li><a href="#beta">Beta Release</li>
<li>Old Boost Releases</li>
<li>Subversion Repository</li>
</ul>
-
- <h2><a name="releases" id="releases"></a>Packaged
- Releases</h2>
+<h2 id="live">Current Release</h2>
<h3><span class=
"news-title">Version 1.47.0</span></h3>
@@ -55,7 +54,23 @@
<li>
<a href="http://sourceforge.net/projects/boost/files/boost/1.47.0/">Download</a></li>
+ </ul><h2 id="beta">Beta Release</h2>
+ <h3><span class=
+ "news-title">Version 1.48.0</span></h3>
+
+ <p class="news-date">In Progress</p>
+
+ <p class="news-description">
+ <span class="brief"><span class="purpose">
+ New Libraries: Container, Locale, Move. Updated Libraries:
+ </span></span></p>
+
+ <ul class="menu">
+ <li>
+ Details</li>
+
</ul>
+
<h2><a name="history" id="history"></a>Old Boost Releases</h2>
<p>Old versions of boost can be found on the <a href=
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk