mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
New support scripts for HTML->info conversion that use Michael Ernst's new
conversion tools.
This commit is contained in:
parent
3fe1d32693
commit
c58f346374
3 changed files with 58 additions and 5 deletions
17
Doc/tools/fixinfo.el
Normal file
17
Doc/tools/fixinfo.el
Normal file
|
@ -0,0 +1,17 @@
|
|||
(defun fix-python-texinfo ()
|
||||
(goto-char (point-min))
|
||||
(replace-regexp "\\(@setfilename \\)\\([-a-z]*\\)$"
|
||||
"\\1python-\\2.info")
|
||||
(replace-string "@node Front Matter\n@chapter Abstract\n"
|
||||
"@node Abstract\n@section Abstract\n")
|
||||
(progn
|
||||
(mark-whole-buffer)
|
||||
(texinfo-master-menu 'update-all-nodes)
|
||||
)
|
||||
(save-buffer)
|
||||
) ;; fix-python-texinfo
|
||||
|
||||
;; now really do it:
|
||||
(find-file (car command-line-args-left))
|
||||
(fix-python-texinfo)
|
||||
(kill-emacs)
|
Loading…
Add table
Add a link
Reference in a new issue