Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
95474f96
Kaydet (Commit)
95474f96
authored
Şub 09, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change the navigation bar to be a little prettier and more consistent
with the python.org style.
üst
2e7840fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
l2hinit.perl
Doc/perl/l2hinit.perl
+19
-13
No files found.
Doc/perl/l2hinit.perl
Dosyayı görüntüle @
95474f96
...
@@ -92,30 +92,35 @@ sub set_icon_size{
...
@@ -92,30 +92,35 @@ sub set_icon_size{
$iconsizes
{
$name
}
=
"width=$w height=$h"
;
$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
);
set_icon_size
(
$name
,
32
,
32
);
}
}
# The '_motif' is really annoying, and makes the HTML larger with no value
# The '_motif' is really annoying, and makes the HTML larger with no value
# added, so strip it off:
# added, so strip it off:
foreach
$name
(
keys
%
icons
)
{
foreach
$name
(
keys
%
icons
)
{
my
$icon
=
$icons
{
$name
};
my
$icon
=
$icons
{
$name
};
# Strip off the wasteful '_motif':
$icon
=~
s/_motif//
;
$icon
=~
s/_motif//
;
# Change the greyed-out icons to be blank:
$icon
=~
s/[a-z]*_gr/blank/
;
$icons
{
$name
}
=
$icon
;
$icons
{
$name
}
=
$icon
;
}
}
$icons
{
'blank'
}
=
'blank.'
.
$IMAGE_TYPE
;
$CUSTOM_BUTTONS
=
''
;
$CUSTOM_BUTTONS
=
''
;
$BLANK_ICON
=
"\n<td>"
.
img_tag
(
'blank.'
.
$IMAGE_TYPE
)
.
"</td>"
;
sub
make_nav_panel
{
sub
make_nav_panel
{
(
'<table width="100%" cellpadding=0 cellspacing=0><tr><td width="20%">'
(
"<table width=\"100%\" cellpadding=0 cellspacing=0>\n<tr>"
.
(
$NEXT_TITLE
?
"$NEXT "
:
''
)
.
"\n<td>$NEXT</td>"
.
(
$UP_TITLE
?
"$UP "
:
''
)
.
"\n<td>$UP</td>"
.
(
$PREVIOUS_TITLE
?
"$PREVIOUS "
:
''
)
.
"\n<td>$PREVIOUS</td>"
.
"
</td>\n<td align=center width=\"60%\"><b>$t_title</b
>"
.
"
\n<td align=center bgcolor=\"#99CCFF\" width=\"100%\"
>"
.
"
</td>\n<td align=right width=\"20%\"
>"
.
"
\n <b>$t_title</b></td
>"
.
$CONTENTS
.
(
$CONTENTS
?
"\n<td>$CONTENTS</td>"
:
$BLANK_ICON
)
.
' '
.
$CUSTOM_BUTTONS
.
"\n<td>$CUSTOM_BUTTONS</td>"
# module index
.
' '
.
$INDEX
.
(
$INDEX
?
"\n<td>$INDEX</td>"
:
$BLANK_ICON
)
.
"
</td></tr></table>\n
<hr>\n"
.
"
\n</tr></table>
<hr>\n"
.
(
$NEXT_TITLE
?
"<b>Next:</b> $NEXT_TITLE\n"
:
''
)
.
(
$NEXT_TITLE
?
"<b>Next:</b> $NEXT_TITLE\n"
:
''
)
.
(
$UP_TITLE
?
"<b>Up:</b> $UP_TITLE\n"
:
''
)
.
(
$UP_TITLE
?
"<b>Up:</b> $UP_TITLE\n"
:
''
)
.
(
$PREVIOUS_TITLE
?
"<b>Previous:</b> $PREVIOUS_TITLE\n"
:
''
));
.
(
$PREVIOUS_TITLE
?
"<b>Previous:</b> $PREVIOUS_TITLE\n"
:
''
));
...
@@ -176,7 +181,7 @@ sub img_tag {
...
@@ -176,7 +181,7 @@ sub img_tag {
$alt
=
join
(
'|'
,
'up'
,
'next_group'
,
'previous_group'
$alt
=
join
(
'|'
,
'up'
,
'next_group'
,
'previous_group'
,
'next'
,
'previous'
,
'change_begin_right'
,
'change_begin'
,
'next'
,
'previous'
,
'change_begin_right'
,
'change_begin'
,
'change_end_right'
,
'change_end'
,
'change_delete_right'
,
'change_end_right'
,
'change_end'
,
'change_delete_right'
,
'change_delete'
,
'contents'
,
'index'
,
'modules'
);
,
'change_delete'
,
'contents'
,
'index'
,
'modules'
,
'blank'
);
if
(
$icon
=~
/(gif|png)$/
)
{
if
(
$icon
=~
/(gif|png)$/
)
{
$used_icons
{
$icon
}
=
1
;
$used_icons
{
$icon
}
=
1
;
...
@@ -380,6 +385,7 @@ sub add_bbl_and_idx_dummy_commands {
...
@@ -380,6 +385,7 @@ sub add_bbl_and_idx_dummy_commands {
.
img_tag
(
'modules.'
.
$IMAGE_TYPE
)
.
"</a>"
);
.
img_tag
(
'modules.'
.
$IMAGE_TYPE
)
.
"</a>"
);
}
}
else
{
else
{
$CUSTOM_BUTTONS
.=
img_tag
(
'blank.'
.
$IMAGE_TYPE
);
$global
{
'max_id'
}
=
$id
;
# not sure why....
$global
{
'max_id'
}
=
$id
;
# not sure why....
s/([\\]begin\s*$O\d+$C\s*theindex)/\\textohtmlindex $1/o
;
s/([\\]begin\s*$O\d+$C\s*theindex)/\\textohtmlindex $1/o
;
s/[\\]printindex/\\textohtmlindex /o
;
s/[\\]printindex/\\textohtmlindex /o
;
...
@@ -444,7 +450,7 @@ sub protect_useritems {
...
@@ -444,7 +450,7 @@ sub protect_useritems {
}
}
# This changes the markup used for {verbatim} environments, and is the
# 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>.
# <pre>...</pre>.
#
#
# Note that this *must* be done in the init file, not the python.perl
# 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