public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] sites/www:master commit in: bin/, _plugins/, inside-gentoo/developers/
@ 2016-01-31  0:56 99% Alex Legler
  0 siblings, 0 replies; 1+ results
From: Alex Legler @ 2016-01-31  0:56 UTC (permalink / raw
  To: gentoo-commits

commit:     ab268de78b5c9f952cfedfbd75eab2f249f175c2
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Jan 31 00:56:23 2016 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Jan 31 00:56:23 2016 +0000
URL:        https://gitweb.gentoo.org/sites/www.git/commit/?id=ab268de7

Deprecate herds

 _plugins/herds.rb                   | 43 --------------------------
 bin/update-herds.sh                 |  6 ----
 bin/update.sh                       |  1 -
 inside-gentoo/developers/herds.html | 60 ++++++-------------------------------
 4 files changed, 9 insertions(+), 101 deletions(-)

diff --git a/_plugins/herds.rb b/_plugins/herds.rb
deleted file mode 100644
index 971f1e2..0000000
--- a/_plugins/herds.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-module Gentoo
-  class HerdsGenerator < Jekyll::Generator
-    XML = '_data/herds.xml'
-
-    def generate(site)
-      xml = Nokogiri::XML(File.open(XML))
-
-      site.data['herds'] ||= {}
-
-      xml.xpath('/herds/herd').each do |item|
-        item_data = {}
-
-        name = item.xpath('./name').first.text
-
-        item_data['email'] = item.xpath('./email/text()').first.content
-        item_data['description'] = item.xpath('./description/text()').first.text
-
-        ns_maint = item.xpath('./maintainer')
-        item_data['maintainers'] = [] if ns_maint.size > 0
-        ns_maint.each do |maint|
-          maint_data = {
-            'email' => maint.xpath('./email/text()').first.text,
-            'name' => nil,
-            'role' => nil
-          }
-
-          ns_name = maint.xpath('./name/text()')
-          maint_data['name'] = ns_name.first.text if ns_name.size > 0
-
-          ns_role = maint.xpath('./role/text()')
-          maint_data['role'] = ns_role.first.text if ns_role.size > 0
-
-          item_data['maintainers'] << maint_data
-        end
-
-        ns_maintproj = item.xpath('./maintainingproject/text()')
-        item_data['proj'] = ns_maintproj.first.text if ns_maintproj.size > 0
-
-        site.data['herds'][name] = item_data
-      end
-    end
-  end
-end

diff --git a/bin/update-herds.sh b/bin/update-herds.sh
deleted file mode 100755
index 5e21b08..0000000
--- a/bin/update-herds.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-echo -n 'Updating herd information...'
-wget 'https://api.gentoo.org/packages/herds.xml' -O _data/herds.xml.tmp 2>/dev/null
-[ $? -eq 0 ] && mv _data/herds.xml.tmp _data/herds.xml
-echo 'done.'

diff --git a/bin/update.sh b/bin/update.sh
index 35fd32c..5e8068d 100755
--- a/bin/update.sh
+++ b/bin/update.sh
@@ -3,7 +3,6 @@
 bin/update-devaway.sh || exit 1
 bin/update-downloads.sh || exit 1
 bin/update-glsa.sh || exit 1
-bin/update-herds.sh || exit 1
 bin/update-mirrors.sh || exit 1
 bin/update-packages.sh || exit 1
 bin/update-planet.sh || exit 1

diff --git a/inside-gentoo/developers/herds.html b/inside-gentoo/developers/herds.html
index 84f30e0..31a118d 100644
--- a/inside-gentoo/developers/herds.html
+++ b/inside-gentoo/developers/herds.html
@@ -7,59 +7,17 @@ nav1: inside-gentoo
 nav2: developers
 
 nav3: herds
-nav3-show: true
+nav3-show: false
 nav3-weight: 40
 
 layout: page-nav3
 ---
 
-<p>
-  This page lists all package maintenance groups (herds) in the Gentoo project.
-</p>
-
-{% for entry in site.data.herds %}
-<h3 id="{{ entry[0] | xml_escape }}">{{ entry[0] | xml_escape }}</h3>
-
-<table class="table">
-  <tr>
-    <th class="herd-desc-col">Description</th>
-    <td>{{ entry[1].description | xml_escape }}</td>
-  </tr>
-  <tr>
-    <th>Contact</th>
-    <td><a href="mailto:{{ entry[1].email | xml_escape }}">{{ entry[1].email | xml_escape }}</a></td>
-  </tr>
-  <tr>
-    <th>Maintainers</th>
-    <td>
-      {% if entry[1].maintainers %}
-      <table class="table table-condensed">
-        <tr>
-          <th class="herd-maint-col">Maintainer</th>
-          <th>Roles</th>
-        </tr>
-        {% for maint in entry[1].maintainers %}
-        <tr>
-          <td>
-            {% if maint.name %}
-            <a href="mailto:{{ maint.email | xml_escape }}">{{ maint.name | xml_escape }}</a>
-            {% else %}
-            <a href="mailto:{{ maint.email | xml_escape }}">{{ maint.email | xml_escape }}</a>
-            {% endif %}
-          </td>
-          <td>
-           {{ maint.role | xml_escape }}
-          </td>
-        </tr>
-        {% endfor %}
-      </table>
-      {% endif %}
-
-      {% if entry[1].proj %}
-        A Gentoo project is (also) listed as participating in the maintenance of packages in this herd.
-        Listing maintainers of this project is currently not possible.
-      {% endif %}
-    </td>
-  </tr>
-</table>
-{% endfor %}
+<div class="alert alert-warning">
+  <strong>This page is deprecated.</strong>
+  <br>
+  With <a class="alert-link" href="https://wiki.gentoo.org/wiki/GLEP:67">GLEP 67</a>, the concept of <em>herds</em> has been deprecated.
+  <br>
+  Packages are now maintained by Gentoo projects and their respective members.
+  For a list of projects, please see our <a class="alert-link" href="https://wiki.gentoo.org/wiki/Project:Gentoo">Wiki</a>.
+</div>


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-01-31  0:56 99% [gentoo-commits] sites/www:master commit in: bin/, _plugins/, inside-gentoo/developers/ Alex Legler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox