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
e03e1fe5
Kaydet (Commit)
e03e1fe5
authored
Nis 05, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add support for the "Aesop Meta Tag". Not widely used, but not a bad idea,
either.
üst
cc8fe040
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
l2hinit.perl
Doc/perl/l2hinit.perl
+4
-0
mkackshtml
Doc/tools/mkackshtml
+1
-0
mkmodindex
Doc/tools/mkmodindex
+2
-0
support.py
Doc/tools/support.py
+24
-0
No files found.
Doc/perl/l2hinit.perl
Dosyayı görüntüle @
e03e1fe5
...
...
@@ -37,6 +37,8 @@ $HAVE_MODULE_INDEX = 0;
$HAVE_GENERAL_INDEX = 0;
$HAVE_TABLE_OF_CONTENTS = 0;
$AESOP_META_TYPE = 'information';
# A little painful, but lets us clean up the top level directory a little,
# and not be tied to the current directory (as far as I can tell). Testing
...
...
@@ -639,6 +641,8 @@ sub make_head_and_body {
, "
<html>
\n
<head>
\n
<title>
", $title, "
</title>
\n"
,
&
meta_information($title)
, $MY_PARTIAL_HEADER
, ($AESOP_META_TYPE eq '' ? ''
: "\n
<meta
name=
'aesop'
content=
'$AESOP_META_TYPE'
>
")
, "\n
</head>
\n
<body
$
body
>
");
}
...
...
Doc/tools/mkackshtml
Dosyayı görüntüle @
e03e1fe5
...
...
@@ -30,6 +30,7 @@ def main():
colnums
=
[]
for
i
in
range
(
options
.
columns
):
colnums
.
append
(
percol
*
i
)
options
.
aesop_type
=
"information"
fp
=
options
.
get_output_file
()
fp
.
write
(
string
.
rstrip
(
options
.
get_header
())
+
"
\n
"
)
fp
.
write
(
THANKS
+
"
\n
"
)
...
...
Doc/tools/mkmodindex
Dosyayı görüntüle @
e03e1fe5
...
...
@@ -34,6 +34,8 @@ import sys
class
IndexOptions
(
support
.
Options
):
aesop_type
=
"links"
def
__init__
(
self
):
support
.
Options
.
__init__
(
self
)
self
.
add_args
(
"l"
,
[
"letters"
])
...
...
Doc/tools/support.py
Dosyayı görüntüle @
e03e1fe5
...
...
@@ -28,6 +28,24 @@ class Options:
uplink
=
"index.html"
uptitle
=
"Python Documentation Index"
# The "Aesop Meta Tag" is poorly described, and may only be used
# by the Aesop search engine (www.aesop.com), but doesn't hurt.
#
# There are a number of values this may take to roughly categorize
# a page. A page should be marked according to its primary
# category. Known values are:
# 'personal' -- personal-info
# 'information' -- information
# 'interactive' -- interactive media
# 'multimedia' -- multimedia presenetation (non-sales)
# 'sales' -- sales material
# 'links' -- links to other information pages
#
# Setting the aesop_type value to one of these strings will cause
# get_header() to add the appropriate <meta> tag to the <head>.
#
aesop_type
=
None
def
__init__
(
self
):
self
.
args
=
[]
self
.
variables
=
{
"address"
:
""
,
...
...
@@ -96,6 +114,12 @@ class Options:
link
=
'<link rel="up" href="
%
s">'
%
self
.
uplink
repl
=
"
%
s
\n
</head>"
%
link
s
=
s
.
replace
(
"</head>"
,
repl
,
1
)
if
self
.
aesop_type
:
meta
=
'
\n
<meta name="aesop" content="
%
s">'
# Insert this in the middle of the head that's been
# generated so far, keeping <meta> and <link> elements in
# neat groups:
s
=
s
.
replace
(
"<link "
,
meta
+
"<link "
,
1
)
return
s
def
get_footer
(
self
):
...
...
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