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
7eb03ddf
Kaydet (Commit)
7eb03ddf
authored
Eki 01, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix/improve the changelog filtering.
üst
77cddc31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
21 deletions
+53
-21
layout.html
Doc/tools/sphinxext/layout.html
+53
-13
changelog.rst
Doc/whatsnew/changelog.rst
+0
-8
No files found.
Doc/tools/sphinxext/layout.html
Dosyayı görüntüle @
7eb03ddf
...
...
@@ -10,19 +10,59 @@
{% if not embedded %}
<script
type=
"text/javascript"
src=
"{{ pathto('_static/copybutton.js', 1) }}"
></script>
{% endif %}
{% if pagename == 'whatsnew/changelog' %}
<script
type=
"text/javascript"
>
function
dofilter
()
{
var
el
=
document
.
getElementById
(
'searchbox'
);
var
string
=
el
.
value
.
toLowerCase
();
var
litags
=
document
.
getElementsByTagName
(
'li'
)
for
(
var
idx
=
0
;
idx
<
litags
.
length
;
idx
++
)
{
var
li
=
litags
[
idx
];
if
(
li
.
innerHTML
.
toLowerCase
().
indexOf
(
string
)
>=
0
)
{
li
.
style
.
display
=
''
;
}
else
{
li
.
style
.
display
=
'none'
;
$
(
document
).
ready
(
function
()
{
// add the search form and bind the events
$
(
'h1'
).
after
([
'<p>Filter entries by content:'
,
'<input type="text" value="" id="searchbox" style="width: 50%">'
,
'<input type="submit" id="searchbox-submit" value="Filter"></p>'
].
join
(
'
\
n'
));
function
dofilter
()
{
try
{
var
query
=
new
RegExp
(
$
(
'#searchbox'
).
val
(),
'i'
);
}
catch
(
e
)
{
return
;
// not a valid regex (yet)
}
// find headers for the versions (What's new in Python X.Y.Z?)
$
(
'#changelog h2'
).
each
(
function
(
index1
,
h2
)
{
var
h2_parent
=
$
(
h2
).
parent
();
var
sections_found
=
0
;
// find headers for the sections (Core, Library, etc.)
h2_parent
.
find
(
'h3'
).
each
(
function
(
index2
,
h3
)
{
var
h3_parent
=
$
(
h3
).
parent
();
var
entries_found
=
0
;
// find all the entries
h3_parent
.
find
(
'li'
).
each
(
function
(
index3
,
li
)
{
var
li
=
$
(
li
);
// check if the query matches the entry
if
(
query
.
test
(
li
.
text
()))
{
li
.
show
();
entries_found
++
;
}
else
{
li
.
hide
();
}
});
// if there are entries, show the section, otherwise hide it
if
(
entries_found
>
0
)
{
h3_parent
.
show
();
sections_found
++
;
}
else
{
h3_parent
.
hide
();
}
});
if
(
sections_found
>
0
)
h2_parent
.
show
();
else
h2_parent
.
hide
();
});
}
}
}
$
(
'#searchbox'
).
keyup
(
dofilter
);
$
(
'#searchbox-submit'
).
click
(
dofilter
);
});
</script>
{% endif %}
{{ super() }}
...
...
@@ -31,7 +71,7 @@
<div
class=
"footer"
>
©
<a
href=
"{{ pathto('copyright') }}"
>
Copyright
</a>
{{ copyright|e }}.
<br
/>
The Python Software Foundation is a non-profit corporation.
The Python Software Foundation is a non-profit corporation.
<a
href=
"http://www.python.org/psf/donations/"
>
Please donate.
</a>
<br
/>
Last updated on {{ last_updated|e }}.
...
...
Doc/whatsnew/changelog.rst
Dosyayı görüntüle @
7eb03ddf
...
...
@@ -2,13 +2,5 @@
Changelog
+++++++++
.. raw:: html
<p>
Filter entries by content:
<input type="text" value="" id="searchbox" style="width: 50%" onchange="dofilter()">
<input type="submit" value="Filter" onclick="dofilter()">
</p>
.. miscnews:: ../../Misc/NEWS
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