Skip to content

Commit 967abd3

Browse files
author
Jon Allen
committed
Updated for recent versions of Perl
1 parent 5850a61 commit 967abd3

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

Diff for: javascript/perlversion.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ function selectPerlVersion(element) {
88

99
document.write('<select id="perl_version_select" name="version-chooser" onChange="selectPerlVersion(this)">');
1010
document.write(' <option selected>Select...');
11+
document.write(' <optgroup label="Perl 5 version 14">');
12+
document.write(' <option value="/index.html">Perl 5.14.1');
13+
document.write(' <option value="/5.14.0/index.html">Perl 5.14.0');
14+
document.write(' </optgroup>');
1115
document.write(' <optgroup label="Perl 5 version 12">');
12-
document.write(' <option value="/index.html">Perl 5.12.1');
16+
document.write(' <option value="/5.12.4/index.html">Perl 5.12.4');
17+
document.write(' <option value="/5.12.3/index.html">Perl 5.12.3');
18+
document.write(' <option value="/5.12.2/index.html">Perl 5.12.2');
19+
document.write(' <option value="/5.12.1/index.html">Perl 5.12.1');
1320
document.write(' <option value="/5.12.0/index.html">Perl 5.12.0');
1421
document.write(' </optgroup>');
1522
document.write(' <optgroup label="Perl 5 version 10">');
@@ -20,4 +27,4 @@ document.write(' <optgroup label="Perl 5 version 8">');
2027
document.write(' <option value="/5.8.9/index.html">Perl 5.8.9');
2128
document.write(' <option value="/5.8.8/index.html">Perl 5.8.8');
2229
document.write(' </optgroup>');
23-
document.write('</select>');
30+
document.write('</select>');

Diff for: javascript/search.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ var perldocSearch = {
347347
}
348348
}
349349
if (this.request) {
350-
if (this.request.overrideMimeType) {
351-
this.request.overrideMimeType("text/javascript");
352-
}
350+
//if (this.request.overrideMimeType) {
351+
//this.request.overrideMimeType("text/javascript");
352+
//}
353353
this.request.open('GET', filename, false);
354354
this.request.send(null);
355355
if (this.request.responseText) {

Diff for: static-html/index.html

+15-7
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ <h1>Perl 5 version [% perl5_version %] documentation</h1>
1111
and the extensive <a href="index-faq.html">FAQ</a> section, which provides answers to over 300 common questions.
1212
</p>
1313

14-
<h2>What's new?</h2>
15-
<p>
16-
As you can see, <strong>perldoc.perl.org</strong> has had a redesign! But it's not just about visuals,
17-
almost every aspect of the site has been tweaked and updated, including:
18-
</p>
14+
<h2>Site features</h2>
15+
16+
[% UNLESS download %]
17+
<div style="float: right; padding-top: 20px;">
18+
<a title="The Perl Foundation"
19+
href="http://www.facebook.com/tpf.perl"
20+
target="_TOP">
21+
<img style="border: 0px;"
22+
src="http://badge.facebook.com/badge/213296278682699.2549.1757479420.png"
23+
alt="" width="120" height="259" /></a>
24+
</div>
25+
[% END %]
26+
27+
<div[% UNLESS download %] style="width: 500px"[% END %]>
1928
<ul>
2029
<li><strong>Improved navigation</strong><br>
2130
When you scroll down a page, the top navigation bar remains visible at the top of your screen,
@@ -41,8 +50,7 @@ <h2>What's new?</h2>
4150
View the module indexes with a single click from the left-hand side panel.
4251

4352
</ul>
44-
45-
53+
</div>
4654

4755
<a name="download"></a>
4856
<h2>Downloads</h2>

Diff for: syntax.cache

17.3 MB
Binary file not shown.

Diff for: templates/default.tt

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ Explorer 8</a>
199199
<div id="address">
200200
<p class="name">Contact details</p>
201201
<p class="address">
202-
Site maintained by <a href="http://perl.jonallen.info">Jon Allen (JJ)</a><br>
203-
See the <a href="http://perl.jonallen.info/projects/perldoc">project page</a> for more details
202+
Site maintained by <a href="mailto:[email protected]">Jon Allen (JJ)</a><br>
204203
</p>
205204
<p class="contact">
206205
Documentation maintained by the <a href="http://lists.cpan.org/showlist.cgi?name=perl5-porters">Perl 5 Porters</a>

0 commit comments

Comments
 (0)