summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Skytt? <ville.skytta@iki.fi>2011-05-21 12:49:44 +0300
committerVille Skytt? <ville.skytta@iki.fi>2011-05-21 12:49:44 +0300
commit4b74e92fade9ab97665b7f09aaac94893c5b9869 (patch)
treed26c39ec487c159f2f7b5eb82bd57ee1fd39fe2a
parent5a9fdb3b75e4cdd54be75201d78e8200c1a3a2e6 (diff)
downloadmarkup-validator-4b74e92fade9ab97665b7f09aaac94893c5b9869.zip
markup-validator-4b74e92fade9ab97665b7f09aaac94893c5b9869.tar.gz
markup-validator-4b74e92fade9ab97665b7f09aaac94893c5b9869.tar.bz2
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.
-rw-r--r--htdocs/base.css1
-rw-r--r--htdocs/config/tips.cfg27
-rw-r--r--htdocs/config/validator.conf6
-rw-r--r--htdocs/docs/install_win.html6
-rw-r--r--htdocs/tips.css41
-rwxr-xr-xhttpd/cgi-bin/check17
-rw-r--r--share/templates/en_US/tip.tmpl4
7 files changed, 0 insertions, 102 deletions
diff --git a/htdocs/base.css b/htdocs/base.css
index 090444e..47c25c7 100644
--- a/htdocs/base.css
+++ b/htdocs/base.css
@@ -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 --git a/htdocs/config/tips.cfg b/htdocs/config/tips.cfg
deleted file mode 100644
index c0d0b0b..0000000
--- a/htdocs/config/tips.cfg
+++ /dev/null
@@ -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>&lt;title&gt;</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 &lt;h1&gt; 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 &lt;link&gt;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 --git a/htdocs/config/validator.conf b/htdocs/config/validator.conf
index b8921ad..c2b1a83 100644
--- a/htdocs/config/validator.conf
+++ b/htdocs/config/validator.conf
@@ -116,12 +116,6 @@ Languages = en
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 --git a/htdocs/docs/install_win.html b/htdocs/docs/install_win.html
index e112f77..10fe5db 100644
--- a/htdocs/docs/install_win.html
+++ b/htdocs/docs/install_win.html
@@ -379,12 +379,6 @@ Languages = en
application/xhtml+xml = XML
application/mathml+xml = XML
&lt;/MIME&gt;
-
-#
-# Source for the &quot;Tip of The Day&quot; blurbs.
-&lt;Tips&gt;
- Include tips.cfg
-&lt;/Tips&gt;
</pre>
<p>Now, the validator has been successfully configured. But it
is not ready for use yet, some lines in the validator script
diff --git a/htdocs/tips.css b/htdocs/tips.css
deleted file mode 100644
index 609e290..0000000
--- a/htdocs/tips.css
+++ /dev/null
@@ -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 --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 117f721..7cd772b 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -1505,12 +1505,6 @@ sub prep_template ($$)
$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 @@ sub self_url_q
}
#
-# 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 --git a/share/templates/en_US/tip.tmpl b/share/templates/en_US/tip.tmpl
deleted file mode 100644
index 3a349da..0000000
--- a/share/templates/en_US/tip.tmpl
+++ /dev/null
@@ -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>