- From: Mercurial notifier <nobody@w3.org>
- Date: Sat, 21 May 2011 09:50:47 +0000
- To: markup-validator updates <www-validator-cvs@w3.org>
changeset: 3237:66cc97e90ade
tag: tip
user: Ville Skyttä <ville.skytta@iki.fi>
date: Sat May 21 12:49:44 2011 +0300
files: htdocs/base.css htdocs/config/tips.cfg htdocs/config/validator.conf htdocs/docs/install_win.html htdocs/tips.css httpd/cgi-bin/check share/templates/en_US/tip.tmpl
description:
Remove inactive "tip of the day" functionality.
The tips haven't been included in validator's output since validator
0.7.0 (hg rev 1018:64d1a483353a) due to nothing referencing/including
tip.tmpl.
diff -r 7dffe281d372 -r 66cc97e90ade htdocs/base.css
--- a/htdocs/base.css Sat May 21 12:29:29 2011 +0300
+++ b/htdocs/base.css Sat May 21 12:49:44 2011 +0300
@@ -7,7 +7,6 @@
@import url("results"); /* CSS for validation results. */
@import url("navbar"); /* CSS for navigation menu. */
-@import url("tips"); /* CSS for Quality Tips. */
@import url("docs"); /* CSS for the Documentation. */
@import url("print") print;
@import url("handheld") handheld;
diff -r 7dffe281d372 -r 66cc97e90ade htdocs/config/tips.cfg
--- a/htdocs/config/tips.cfg Sat May 21 12:29:29 2011 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-#
-# "Tip Of The Day" Configuration.
-#
-# Each key is a URL and the value is the text that should be displayed as
-# the link to it. Will appear in Validation Results pages. To disable
-# just comment out or delete all lines in this file. The URL should be a
-# properly escaped URI (not HTML escaped), and the value is included as-is
-# in the markup.
-#
-
-http://www.w3.org/QA/Tips/good-titles = <strong><title></strong>: the most important element of a quality Web page.
-http://www.w3.org/QA/Tips/noClickHere = Don't use "click here" as link text!
-http://www.w3.org/QA/Tips/Use_h1_for_Title = Use <h1> for top-level heading
-http://www.w3.org/QA/Tips/reback = Use standard redirects: don't break the back button!
-http://www.w3.org/QA/Tips/altAttribute = Use the <code>alt</code> attribute to describe the function of each visual
-http://www.w3.org/QA/Tips/color = If You Pick One Color Pick Them All
-http://www.w3.org/QA/Tips/font-size = Care With Font Size
-http://www.w3.org/QA/Tips/use-links = Use <link>s in your document
-http://www.w3.org/QA/Tips/iso-date = Use international date format
-http://www.w3.org/QA/Tips/png-gif = GIF or PNG
-http://www.w3.org/QA/Tips/headings = Use headings to structure your document
-http://www.w3.org/QA/Tips/uri-choose = Choose URIs wisely
-http://www.w3.org/QA/Tips/uri-manage = Managing URIs
-http://www.w3.org/QA/Tips/beyond-validation = Beyond Validation
-http://www.w3.org/QA/Tips/goodclassnames = Use <code>class</code> with semantics in mind
-http://www.w3.org/QA/Tips/unordered-lists = Unordered lists: more than just bullets
-
diff -r 7dffe281d372 -r 66cc97e90ade htdocs/config/validator.conf
--- a/htdocs/config/validator.conf Sat May 21 12:29:29 2011 +0300
+++ b/htdocs/config/validator.conf Sat May 21 12:49:44 2011 +0300
@@ -116,12 +116,6 @@
application/mathml+xml = XML
</MIME>
-#
-# Source for the "Tip of The Day" blurbs.
-<Tips>
- Include tips.cfg
-</Tips>
-
<External>
## Enable checking documents via external services.
## The example config below assumes that you have installed the validator.nu
diff -r 7dffe281d372 -r 66cc97e90ade htdocs/docs/install_win.html
--- a/htdocs/docs/install_win.html Sat May 21 12:29:29 2011 +0300
+++ b/htdocs/docs/install_win.html Sat May 21 12:49:44 2011 +0300
@@ -379,12 +379,6 @@
application/xhtml+xml = XML
application/mathml+xml = XML
</MIME>
-
-#
-# Source for the "Tip of The Day" blurbs.
-<Tips>
- Include tips.cfg
-</Tips>
</pre>
<p>Now, the validator has been successfully configured. But it
is not ready for use yet, some lines in the validator script
diff -r 7dffe281d372 -r 66cc97e90ade htdocs/tips.css
--- a/htdocs/tips.css Sat May 21 12:29:29 2011 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*!
- Quality Tips Style Sheet for the W3C Markup Validation Service.
-
- Copyright 2000 W3C (MIT, INRIA, Keio). All Rights Reserved.
- See http://www.w3.org/Consortium/Legal/ipr-notice.html#Copyright
-*/
-
-dl.tip {
- margin-top: 0em;
- text-align: center;
- background: #eeeeee;
- border-top: 1px solid black;
- border-bottom: 1px solid black;
- padding: .5em;
-}
-
-dl.tip dt {
- text-align: center;
- color: black;
- background: #eeeeee;
- display: inline;
-}
-
-dl.tip dt a {
- text-decoration: none;
- color: inherit;
-}
-
-dl.tip dd {
- text-align: center;
- text-decoration: none;
- font-weight: bolder;
- color: blue;
- display: inline;
-
-}
-
-dl.tip dd a {
- text-decoration: none;
-}
-
diff -r 7dffe281d372 -r 66cc97e90ade httpd/cgi-bin/check
--- a/httpd/cgi-bin/check Sat May 21 12:29:29 2011 +0300
+++ b/httpd/cgi-bin/check Sat May 21 12:49:44 2011 +0300
@@ -1505,12 +1505,6 @@
$T->param(opt_group_errors => $File->{Opt}->{'Group Errors'});
$T->param(opt_no200 => $File->{Opt}->{No200});
- #
- # Tip of the Day...
- my $tip = &get_tip();
- $T->param(tip_uri => $tip->[0]);
- $T->param(tip_slug => $tip->[1]);
-
# Root Element
$T->param(root_element => $File->{Root});
@@ -3364,17 +3358,6 @@
}
#
-# Return random tip and its URL.
-sub get_tip
-{
- my @tipAddrs = keys %{$CFG->{Tips}};
- my $tipAddr = $tipAddrs[rand scalar @tipAddrs];
- my $tipSlug = $CFG->{Tips}->{$tipAddr};
-
- return [$tipAddr, $tipSlug];
-}
-
-#
# Construct a self-referential URL from a $File object.
sub self_url_file
{
diff -r 7dffe281d372 -r 66cc97e90ade share/templates/en_US/tip.tmpl
--- a/share/templates/en_US/tip.tmpl Sat May 21 12:29:29 2011 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
- <dl class="tip">
- <dt><a href="http://www.w3.org/2001/06tips/">Tip Of The Day</a>:</dt>
- <dd><a href="<TMPL_VAR NAME="tip_uri" ESCAPE="HTML">"><TMPL_VAR NAME="tip_slug"></a></dd>
- </dl>
Received on Saturday, 21 May 2011 09:50:49 UTC