@@ -45,6 +45,8 @@ class HelpParser(HTMLParser):
4545 The overridden handle_xyz methods handle a subset of html tags.
4646 The supplied text should have the needed tag configurations.
4747 The behavior for unsupported tags, such as table, is undefined.
48+ If the tags generated by Sphinx change, this class, especially
49+ the handle_starttag and handle_endtags methods, might have to also.
4850 """
4951 def __init__ (self , text ):
5052 HTMLParser .__init__ (self , convert_charrefs = True )
@@ -226,7 +228,28 @@ def __init__(self, parent, filename, title):
226228
227229
228230def copy_strip ():
229- "Copy idle.html to idlelib/help.html, stripping trailing whitespace."
231+ """Copy idle.html to idlelib/help.html, stripping trailing whitespace.
232+
233+ Files with trailing whitespace cannot be pushed to the hg cpython
234+ repository. For 3.x (on Windows), help.html is generated, after
235+ editing idle.rst in the earliest maintenance version, with
236+ sphinx-build -bhtml . build/html
237+ python_d.exe -c "from idlelib.help import copy_strip; copy_strip()"
238+ After refreshing TortoiseHG workshop to generate a diff,
239+ check both the diff and displayed text. Push the diff along with
240+ the idle.rst change and merge both into default (or an intermediate
241+ maintenance version).
242+
243+ When the 'earlist' version gets its final maintenance release,
244+ do an update as described above, without editing idle.rst, to
245+ rebase help.html on the next version of idle.rst. Do not worry
246+ about version changes as version is not displayed. Examine other
247+ changes and the result of Help -> IDLE Help.
248+
249+ If maintenance and default versions of idle.rst diverge, and
250+ merging does not go smoothly, then consider generating
251+ separate help.html files from separate idle.htmls.
252+ """
230253 src = join (abspath (dirname (dirname (dirname (__file__ )))),
231254 'Doc' , 'build' , 'html' , 'library' , 'idle.html' )
232255 dst = join (abspath (dirname (__file__ )), 'help.html' )
0 commit comments