Bug 1176246 - Planet TaskCluster

git-svn-id: https://svn.mozilla.org/projects/planet@144972 4eb1ac78-321c-0410-a911-ec516a8615a5
This commit is contained in:
reed@reedloden.com 2015-08-14 17:13:02 +00:00
Родитель eb240e0b29
Коммит b4d327a315
6 изменённых файлов: 407 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,65 @@
# Planet configuration file
# Every planet needs a [Planet] section
[Planet]
# name: Your planet's name
# link: Link to the main page
# owner_name: Your name
# owner_email: Your e-mail address
name = Planet Taskcluster
link = https://planet.mozilla.org/taskcluster/
owner_name = Firefox OS Automation Team
owner_email = fxos-automation@mozilla.com
# cache_directory: Where cached feeds are stored
# log_level: One of DEBUG, INFO, WARNING, ERROR or CRITICAL
cache_directory = cache
log_level = ERROR
feed_timeout = 20
# The following provide defaults for each template:
# output_theme: "theme" of the output
# output_dir: Directory to place output files
# items_per_page: How many items to put on each page
output_theme = moz_taskcluster
output_dir = /data/static/src/planet.mozilla.org/taskcluster
items_per_page = 75
# If non-zero, all feeds which have not been updated in the indicated
# number of days will be marked as inactive
activity_threshold = 90
# filters to be run
filters = minhead.py
# Options placed in the [DEFAULT] section provide defaults for the feed
# sections. Placing a default here means you only need to override the
# special cases later.
[DEFAULT]
# Hackergotchi default size.
# If we want to put a face alongside a feed, and it's this size, we
# can omit these variables.
facewidth = 65
faceheight = 85
# Any other section defines a feed to subscribe to. The section title
# (in the []s) is the URI of the feed itself. A section can also be
# have any of the following options:
#
# name: Name of the feed (defaults to the title found in the feed)
# offset: Number of hours (+ or -) the feed's times tend to be out
#
# Additionally any other option placed here will be available in
# the template (prefixed with channel_ for the Items loop). We use
# this trick to make the faces work -- this isn't something Planet
# "natively" knows about. Look at fancy-examples/index.html.tmpl
# for the flip-side of this.
[http://blog.johnford.org/search/label/taskcluster]
name = John Ford
[http://jonasfj.dk/category/taskcluster/feed]
name = Jonas Finnemann Jensen
[http://blog.gregarndt.com]
name = Greg Arndt

Просмотреть файл

@ -0,0 +1,6 @@
ExpiresActive on
ExpiresDefault "access plus 5 minutes"
AddType text/html html
RewriteEngine off

Двоичные данные
branches/taskcluster/theme/body_back.gif Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 526 B

Просмотреть файл

@ -0,0 +1,16 @@
[Planet]
template_files:
atom.xml.xslt
foafroll.xml.xslt
index.html.tmpl
opml.xml.xslt
rss10.xml.tmpl
rss20.xml.tmpl
template_directories:
../../../trunk/themes/common
bill_of_materials:
.htaccess
body_back.gif
planet.css

Просмотреть файл

@ -0,0 +1,96 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
### Fancy Planet HTML template.
###
### When combined with the stylesheet and images in the output/ directory
### of the Planet source, this gives you a much prettier result than the
### default examples template and demonstrates how to use the config file
### to support things like faces
###
### For documentation on the more boring template elements, see
### examples/config.ini and examples/index.html.tmpl in the Planet source.
<head>
<title><TMPL_VAR name></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="<TMPL_VAR generator ESCAPE="HTML">">
<link rel="stylesheet" href="planet.css" type="text/css">
<link rel="icon" href="http://www.mozilla.org/images/mozilla-16.png" type="image/png">
<TMPL_IF feedtype>
<link rel="alternate" href="<TMPL_VAR feed ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">" type="application/<TMPL_VAR feedtype>+xml">
</TMPL_IF>
</head>
<body>
<div class="header">
<h1><TMPL_VAR name></h1>
</div>
<div class="content">
<TMPL_LOOP Items>
<TMPL_IF new_date>
<h2><TMPL_VAR new_date></h2>
</TMPL_IF>
<TMPL_IF new_channel>
### Planet provides template variables for *all* configuration options for
### the channel (and defaults), even if it doesn't know about them. We
### exploit this here to add hackergotchi faces to our channels. Planet
### doesn't know about the "face", "facewidth" and "faceheight" configuration
### variables, but makes them available to us anyway.
<h3><a href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title ESCAPE="HTML">"><TMPL_VAR channel_name></a></h3>
<TMPL_IF channel_face>
<img class="face" src="images/<TMPL_VAR channel_face ESCAPE="HTML">" width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR channel_faceheight ESCAPE="HTML">" alt="">
</TMPL_IF>
</TMPL_IF>
<TMPL_IF title>
<h4><a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a></h4>
</TMPL_IF>
<div class="entry">
<TMPL_VAR content>
<p class="date">
<a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_IF creator>by <TMPL_VAR creator> at </TMPL_IF><TMPL_VAR date></a>
</p>
</div>
</TMPL_LOOP>
</div>
<div class="sidebar">
<div>
Feeds: <a href="atom.xml">Atom</a>, <a href="rss20.xml">RSS 2.0</a>, <a href="rss10.xml">RSS 1.0</a><br>
Subscription list: <a href="foafroll.xml">FOAF</a>, <a href="opml.xml">OPML</a>
<br><br>
Last update: <TMPL_VAR date><br>
<em>All times are UTC.</em>
</div>
<div>
<h2>Subscriptions</h2>
<ul>
<TMPL_LOOP Channels>
<li><a href="<TMPL_VAR link ESCAPE="HTML">" title="<TMPL_VAR title ESCAPE="HTML">"><TMPL_VAR name></a> <a href="<TMPL_VAR url ESCAPE="HTML">">(feed)</a></li>
</TMPL_LOOP>
</ul>
</div>
</div>
<div id="footer">
<ul id="bn">
<li><a href="http://www.mozillafoundation.org/">Mozilla Foundation</a></li>
<li><a href="http://www.mozillazine.org/">MozillaZine.org</a></li>
<li><a href="http://www.mozilla.org/get-involved.html">Get Involved!</a></li>
</ul>
<p>Maintained by <a href="mailto:<TMPL_VAR owner_email>"><TMPL_VAR owner_name></a>, powered by <a href="http://www.intertwingly.net/code/venus/">Planet Venus</a></p>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,224 @@
body {
font-family: sans-serif;
background: #fff url("body_back.gif") repeat-x;
color: #000;
margin: 15px;
}
a:link { color: #039; }
a:visited { color: #636; }
a:hover { color: #333; }
a:active { color: #000; }
div.content {
margin: 0 230px 0 0;
/*
padding-left: 0px;
padding-right: 0px;
*/
}
h1 {
/* height: 50px; */
padding: 20px;
font-weight: normal;
letter-spacing: -2px;
text-transform: lowercase;
color: white;
background: #455372 /* url("header_bl.png") repeat-x*/;
-moz-border-radius: 12px;
}
h2, h3 {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #cccccc;
margin-left: 0;
}
h2 {
font-size: 150%;
font-weight: normal;
}
h3, h4 {
clear: both;
}
h3 {
font-size: 120%;
clear: both;
}
h3 a {
text-decoration: none;
}
h4 {
margin: 1em 0 0 1em;
}
h4 a {
}
img.face {
float: right;
margin-top: -3em;
}
div.entry {
margin: 0 0.5em 1em 1em;
padding-top: 1em;
}
div.entry p:first-child {
margin-top: 0;
}
.entry .date {
margin-top: 0.5em;
text-align: right;
}
div.sidebar {
position: absolute;
top: 85px;
right: 0px;
width: 230px;
margin-left: 0px;
margin-right: 15px;
padding-left: 0px;
padding-right: 0px;
padding-top: 20px;
font-size: 70%;
}
.sidebar h2 {
font-size: 150%;
font-weight: bold;
color: black;
border-bottom-style: none;
padding-left: 5px;
margin-left: 0px;
margin-top: 0px;
}
.sidebar ul {
padding-left: 2em;
margin-left: 0px;
list-style-type: square;
}
.sidebar dl {
padding-left: 5px;
margin-left: 0px;
}
.sidebar dt {
padding-top: 5px;
}
.sidebar dd {
margin-left: 10px;
}
.sidebar ul li:hover {
color: grey;
}
.sidebar div {
padding: 10px;
margin-top: 0px;
margin-right: 0px;
margin-left: 20px;
margin-bottom: 10px;
background: #e4ecec;
-moz-border-radius: 1em;
}
a:hover {
text-decoration: underline !important;
color: blue !important;
}
/* template.css footer */
#footer {
border-top: 1px solid #666;
margin: 2em 0;
padding: 1em 0;
text-align: center;
}
#footer ul {
margin: 0;
padding: 0;
list-style: none;
}
#footer li {
display: inline;
}
#footer span,#footer a {
white-space: nowrap;
padding: 0 1em;
}
#footer p span,#footer p a {
white-space: nowrap;
padding: 0 0.3em;
}
#footer span a {
padding: 0;
}
#footer p,#footer p a {
color: #666;
}
#footer p a:hover {
color: #000;
}
/* template_002.css */
#footer {
clear: both;
margin-top: 1em;
}
#footer ul {
margin: 0 0 1em 0;
padding: 0;
}
#footer li {
display: inline;
padding: 0 20px 0 0;
margin: 0;
white-space: nowrap;
}
#footer p {
margin: 0.6em 0;
}
/* planet */
#footer {
margin-right: 0;
}