diff options
author | Fred Drake <fdrake@acm.org> | 2006-12-19 22:06:09 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-12-19 22:06:09 (GMT) |
commit | 51d00223c35f9e8f983cc7d1cb8ba1c62b86355a (patch) | |
tree | 3503dbf250be18beb5227960aeb3f30e777c1e64 /Doc | |
parent | 9a4e95ccc89fa7723df3190555402ebefce7a21d (diff) | |
download | cpython-51d00223c35f9e8f983cc7d1cb8ba1c62b86355a.zip cpython-51d00223c35f9e8f983cc7d1cb8ba1c62b86355a.tar.gz cpython-51d00223c35f9e8f983cc7d1cb8ba1c62b86355a.tar.bz2 |
hide version notes for 1.x and 2.x from the HTML version
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/html/style.css | 3 | ||||
-rw-r--r-- | Doc/perl/python.perl | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Doc/html/style.css b/Doc/html/style.css index 06a613c..f0a2086 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -99,6 +99,9 @@ div.note { background-color: #fffaf0; div.note .label { margin-right: 0.5em; font-family: sans-serif; } +.versionnote1 { display: none; } +.versionnote2 { display: none; } + address { font-size: 80%; } .release-info { font-style: italic; font-size: 80%; } diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index cf0301e..5e940e6 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -422,11 +422,15 @@ sub versionnote($$){ local $_ = $_[1]; my $explanation = next_optional_argument(); my $release = next_argument(); + my $classes = "versionnote"; + if ($release =~ /^(\d+)\./) { + $classes .= " versionnote$1"; + } my $text = "$type in version $release."; if ($explanation) { $text = "$type in version $release:\n$explanation."; } - return "\n<span class=\"versionnote\">$text</span>\n" . $_; + return "\n<span class=\"$classes\" \n>$text</span>\n" . $_; } sub do_cmd_versionadded{ |