You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/05/15 14:17:19 UTC
[whimsy] branch master updated: Add details of the rules
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new d60dc3f Add details of the rules
d60dc3f is described below
commit d60dc3fd728641dfdb2340de05029b20ba94bd9b
Author: Sebb <se...@apache.org>
AuthorDate: Mon May 15 15:17:17 2017 +0100
Add details of the rules
---
www/site.cgi | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/www/site.cgi b/www/site.cgi
index 2c37691..ed768dc 100755
--- a/www/site.cgi
+++ b/www/site.cgi
@@ -31,6 +31,24 @@ CHECKS = {
'security' => %r{apache.org/[Ss]ecurity},
'thanks' => %r{apache.org/foundation/thanks},
}
+DOCS = {
+ 'uri' => ['https://www.apache.org/foundation/marks/pmcs#websites',
+ 'The homepage for any ProjectName must be served from http://ProjectName.apache.org'],
+# 'copyright' => 'TBA',
+ 'foundation' => ['https://www.apache.org/foundation/marks/pmcs#navigation',
+ 'All projects must feature some prominent link back to the main ASF homepage at http://www.apache.org/'],
+ 'trademarks' => ['https://www.apache.org/foundation/marks/pmcs#attributions',
+ 'All project or product homepages must feature a prominent trademark attribution of all applicable Apache trademarks'],
+# 'events' => 'TBA',
+ 'license' => ['https://www.apache.org/foundation/marks/pmcs#navigation',
+ '"License" should link to: http://www.apache.org/licenses/'],
+ 'sponsorship' => ['https://www.apache.org/foundation/marks/pmcs#navigation',
+ '"Sponsorship" or "Donate" should link to: http://www.apache.org/foundation/sponsorship.html'],
+ 'security' => ['https://www.apache.org/foundation/marks/pmcs#navigation',
+ '"Security" should link to either to a project-specific page [...], or to the main http://www.apache.org/security/ page'],
+ 'thanks' => ['https://www.apache.org/foundation/marks/pmcs#navigation',
+ '"Thanks" should link to: http://www.apache.org/foundation/thanks.html'],
+}
DATAURI = 'https://whimsy.apache.org/public/site-scan.json'
def analyze(sites)
@@ -159,6 +177,11 @@ _html do
_code CHECKS[col].source
_ ')'
end
+ _p do
+ if DOCS.include? col
+ _a DOCS[col][1], href: DOCS[col][0]
+ end
+ end
end
_table.table do
_tbody do
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].