Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccfbfb9

Browse files
author
Thomas Heller
committed
Change the default window size to 1024x768. This shows at least the
whole main page. Support 2.3 and 2.4 docs in HTMLHelp format. Already 'backported' to release-23maint.
1 parent 9a80c5d commit ccfbfb9

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

Doc/tools/prechm.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
8181
[WINDOWS]
8282
%(arch)s="Python %(version)s Documentation","%(arch)s.hhc","%(arch)s.hhk",\
83-
"index.html","index.html",,,,,0x63520,220,0x10384e,[271,372,740,718],,,,,,,0
83+
"index.html","index.html",,,,,0x63520,220,0x10384e,[0,0,1024,768],,,,,,,0
8484
8585
[FILES]
8686
'''
@@ -150,6 +150,38 @@ def __init__(self, directory, title, firstpage,
150150
# Library Doc list of books:
151151
# each 'book' : (Dir, Title, First page, Content page, Index page)
152152
supported_libraries = {
153+
'2.4':
154+
[
155+
Book('.', 'Main page', 'index'),
156+
Book('.', 'Global Module Index', 'modindex'),
157+
Book('whatsnew', "What's New", 'index', 'contents'),
158+
Book('tut','Tutorial','tut','node2'),
159+
Book('lib','Library Reference','lib','contents','genindex'),
160+
Book('ref','Language Reference','ref','contents','genindex'),
161+
Book('mac','Macintosh Reference','mac','contents','genindex'),
162+
Book('ext','Extending and Embedding','ext','contents'),
163+
Book('api','Python/C API','api','contents','genindex'),
164+
Book('doc','Documenting Python','doc','contents'),
165+
Book('inst','Installing Python Modules', 'inst', 'index'),
166+
Book('dist','Distributing Python Modules', 'dist', 'index'),
167+
],
168+
169+
'2.3':
170+
[
171+
Book('.', 'Main page', 'index'),
172+
Book('.', 'Global Module Index', 'modindex'),
173+
Book('whatsnew', "What's New", 'index', 'contents'),
174+
Book('tut','Tutorial','tut','node2'),
175+
Book('lib','Library Reference','lib','contents','genindex'),
176+
Book('ref','Language Reference','ref','contents','genindex'),
177+
Book('mac','Macintosh Reference','mac','contents','genindex'),
178+
Book('ext','Extending and Embedding','ext','contents'),
179+
Book('api','Python/C API','api','contents','genindex'),
180+
Book('doc','Documenting Python','doc','contents'),
181+
Book('inst','Installing Python Modules', 'inst', 'index'),
182+
Book('dist','Distributing Python Modules', 'dist', 'index'),
183+
],
184+
153185
'2.2':
154186
[
155187
Book('.', 'Main page', 'index'),

0 commit comments

Comments
 (0)