Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
95474f96
Commit
95474f96
authored
Feb 09, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the navigation bar to be a little prettier and more consistent
with the python.org style.
parent
2e7840fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
Doc/perl/l2hinit.perl
Doc/perl/l2hinit.perl
+19
-13
No files found.
Doc/perl/l2hinit.perl
View file @
95474f96
...
...
@@ -92,30 +92,35 @@ sub set_icon_size{
$iconsizes
{
$name
}
=
"
width=
$w
height=
$h
";
}
foreach
$name
(
split
(
/ /
,
'
up next previous contents index modules
'))
{
foreach
$name
(
split
(
/ /
,
'
up next previous contents index modules
blank
'))
{
set_icon_size
(
$name
,
32
,
32
);
}
# The '_motif' is really annoying, and makes the HTML larger with no value
# added, so strip it off:
foreach
$name
(
keys
%
icons
)
{
my
$icon
=
$icons
{
$name
};
# Strip off the wasteful '_motif':
$icon
=~
s/_motif//
;
# Change the greyed-out icons to be blank:
$icon
=~
s/[a-z]*_gr/blank/
;
$icons
{
$name
}
=
$icon
;
}
$icons
{'
blank
'}
=
'
blank.
'
.
$IMAGE_TYPE
;
$CUSTOM_BUTTONS
=
'';
$BLANK_ICON
=
"
\n
<td>
"
.
img_tag
('
blank.
'
.
$IMAGE_TYPE
)
.
"
</td>
";
sub
make_nav_panel
{
(
'
<table width="100%" cellpadding=0 cellspacing=0><tr><td width="20%">
'
.
(
$NEXT_TITLE
?
"
$NEXT
"
:
'')
.
(
$UP_TITLE
?
"
$UP
"
:
'')
.
(
$PREVIOUS_TITLE
?
"
$PREVIOUS
"
:
'')
.
"
</td>
\n
<td align=center width=
\"
60%
\"
><b>
$t_title
</b
>
"
.
"
</td>
\n
<td align=right width=
\"
20%
\"
>
"
.
$CONTENTS
.
'
'
.
$CUSTOM_BUTTONS
.
'
'
.
$INDEX
.
"
</td></tr></table>
\n
<hr>
\n
"
(
"
<table width=
\"
100%
\"
cellpadding=0 cellspacing=0>
\n
<tr>
"
.
"
\n
<td>
$NEXT
</td>
"
.
"
\n
<td>
$UP
</td>
"
.
"
\n
<td>
$PREVIOUS
</td>
"
.
"
\n
<td align=center bgcolor=
\"
#99CCFF
\"
width=
\"
100%
\"
>
"
.
"
\n
<b>
$t_title
</b></td
>
"
.
(
$CONTENTS
?
"
\n
<td>
$CONTENTS
</td>
"
:
$BLANK_ICON
)
.
"
\n
<td>
$CUSTOM_BUTTONS
</td>
"
# module index
.
(
$INDEX
?
"
\n
<td>
$INDEX
</td>
"
:
$BLANK_ICON
)
.
"
\n
</tr></table>
<hr>
\n
"
.
(
$NEXT_TITLE
?
"
<b>Next:</b>
$NEXT_TITLE
\n
"
:
'')
.
(
$UP_TITLE
?
"
<b>Up:</b>
$UP_TITLE
\n
"
:
'')
.
(
$PREVIOUS_TITLE
?
"
<b>Previous:</b>
$PREVIOUS_TITLE
\n
"
:
''));
...
...
@@ -176,7 +181,7 @@ sub img_tag {
$alt
=
join
('
|
',
'
up
',
'
next_group
',
'
previous_group
'
,
'
next
',
'
previous
',
'
change_begin_right
',
'
change_begin
'
,
'
change_end_right
',
'
change_end
',
'
change_delete_right
'
,
'
change_delete
',
'
contents
',
'
index
',
'
modules
');
,
'
change_delete
',
'
contents
',
'
index
',
'
modules
'
,
'
blank
'
);
if
(
$icon
=~
/(gif|png)$/
)
{
$used_icons
{
$icon
}
=
1
;
...
...
@@ -380,6 +385,7 @@ sub add_bbl_and_idx_dummy_commands {
.
img_tag
('
modules.
'
.
$IMAGE_TYPE
)
.
"
</a>
");
}
else
{
$CUSTOM_BUTTONS
.=
img_tag
('
blank.
'
.
$IMAGE_TYPE
);
$global
{'
max_id
'}
=
$id
;
# not sure why....
s/([\\]begin\s*$O\d+$C\s*theindex)/\\textohtmlindex $1/o
;
s/[\\]printindex/\\textohtmlindex /o
;
...
...
@@ -444,7 +450,7 @@ sub protect_useritems {
}
# This changes the markup used for {verbatim} environments, and is the
# best way I've found that ensures the <dl> goes on
e
the outside of the
# best way I've found that ensures the <dl> goes on the outside of the
# <pre>...</pre>.
#
# Note that this *must* be done in the init file, not the python.perl
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment