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
43819254
Kaydet (Commit)
43819254
authored
Nis 26, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move pydoc_topics module to its own subdirectory, so that no generated code is in Lib/.
üst
0d478c45
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
Makefile
Doc/Makefile
+4
-4
pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+2
-2
pydoc.py
Lib/pydoc.py
+5
-5
__init__.py
Lib/pydoc_data/__init__.py
+0
-0
topics.py
Lib/pydoc_data/topics.py
+0
-0
No files found.
Doc/Makefile
Dosyayı görüntüle @
43819254
...
...
@@ -28,8 +28,8 @@ help:
@
echo
" coverage to check documentation coverage for library and C API"
@
echo
" dist to create a
\"
dist
\"
directory with archived docs for download"
# Note: if you update versions here, do the same in make.bat and README.txt
checkout
:
# Note: if you update versions here, do the same in make.bat and README.txt
@
if
[
!
-d
tools/sphinx
]
;
then
\
echo
"Checking out Sphinx..."
;
\
svn checkout
$(SVNROOT)
/external/Sphinx-0.6.1/sphinx tools/sphinx
;
\
...
...
@@ -102,8 +102,8 @@ doctest: build
pydoc-topics
:
BUILDER = pydoc-topics
pydoc-topics
:
build
@
echo
"Building finished; now copy build/pydoc-topics/
pydoc_
topics.py "
\
"
into the Lib/ director
y"
@
echo
"Building finished; now copy build/pydoc-topics/topics.py "
\
"
to Lib/pydoc_data/topics.p
y"
htmlview
:
html
$(PYTHON)
-c
"import webbrowser; webbrowser.open('build/html/index.html')"
...
...
@@ -133,7 +133,7 @@ dist:
(cd
dist;
zip
-q
-r
-9
python-$(DISTVERSION)-docs-text.zip
python-$(DISTVERSION)-docs-text)
rm
-r
dist/python-$(DISTVERSION)-docs-text
rm
dist/python-$(DISTVERSION)-docs-text.tar
# archive the A4 latex
-rm
-r
build/latex
make
latex
PAPER
=
a4
...
...
Doc/tools/sphinxext/pyspecific.py
Dosyayı görüntüle @
43819254
...
...
@@ -5,7 +5,7 @@
Sphinx extension with Python doc-specific markup.
:copyright: 2008 by Georg Brandl.
:copyright: 2008
, 2009
by Georg Brandl.
:license: Python license.
"""
...
...
@@ -89,7 +89,7 @@ class PydocTopicsBuilder(Builder):
self
.
topics
[
label
]
=
writer
.
output
def
finish
(
self
):
f
=
open
(
path
.
join
(
self
.
outdir
,
'
pydoc_
topics.py'
),
'w'
)
f
=
open
(
path
.
join
(
self
.
outdir
,
'topics.py'
),
'w'
)
try
:
f
.
write
(
'# Autogenerated by Sphinx on
%
s
\n
'
%
asctime
())
f
.
write
(
'topics = '
+
pformat
(
self
.
topics
)
+
'
\n
'
)
...
...
Lib/pydoc.py
Dosyayı görüntüle @
43819254
...
...
@@ -1533,11 +1533,11 @@ class Helper:
# These dictionaries map a topic name to either an alias, or a tuple
# (label, seealso-items). The "label" is the label of the corresponding
# section in the .rst file under Doc/ and an index into the dictionary
# in pydoc_topics.py.
# in pydoc_
data/
topics.py.
#
# CAUTION: if you change one of these dictionaries, be sure to adapt the
# list of needed labels in Doc/tools/sphinxext/pyspecific.py and
# regenerate the pydoc_topics.py file by running
# regenerate the pydoc_
data/
topics.py file by running
# make pydoc-topics
# in Doc/ and copying the output file into the Lib/ directory.
...
...
@@ -1821,11 +1821,11 @@ Here is a list of available topics. Enter any topic name to get more help.
def
showtopic
(
self
,
topic
,
more_xrefs
=
''
):
try
:
import
pydoc_topics
import
pydoc_
data.
topics
except
ImportError
:
self
.
output
.
write
(
'''
Sorry, topic and keyword documentation is not available because the
module "pydoc_topics" could not be found.
module "pydoc_
data.
topics" could not be found.
'''
)
return
target
=
self
.
topics
.
get
(
topic
,
self
.
keywords
.
get
(
topic
))
...
...
@@ -1837,7 +1837,7 @@ module "pydoc_topics" could not be found.
label
,
xrefs
=
target
try
:
doc
=
pydoc_topics
.
topics
[
label
]
doc
=
pydoc_
data
.
topics
.
topics
[
label
]
except
KeyError
:
self
.
output
.
write
(
'no documentation found for
%
s
\n
'
%
repr
(
topic
))
return
...
...
Lib/pydoc_data/__init__.py
0 → 100644
Dosyayı görüntüle @
43819254
Lib/pydoc_topics.py
→
Lib/pydoc_
data/
topics.py
Dosyayı görüntüle @
43819254
File moved
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