Commit Graph

32 Commits

Author SHA1 Message Date
Marc-André Lemburg e7818687b7 Added support for Last-Modified header and its (possibly automatic)
generation.
2002-03-01 19:07:46 +00:00
Marc-André Lemburg b40374d85b Fix for the case when no PEP title is given. 2002-02-16 10:44:32 +00:00
Marc-André Lemburg b71153a027 Fixed a typo which caused help (-h) to fail. 2002-02-04 22:38:27 +00:00
Barry Warsaw 2e318ecd10 Slight rewording of docstring. 2001-11-12 14:58:07 +00:00
Barry Warsaw 7dd574bea5 fixpat: Add , to the list of punctuation allowable in a url.
fixanchor(): Adopt the algorithm for url recognition from faqwiz after
    suggestion by Guido.  Strip any trailing punctuation from the end
    of the url.

    Also, use .startswith() where appropriate.
2001-08-14 21:42:39 +00:00
Barry Warsaw c673087bfc fixfile(): Added special casing to handle the new PEP 0 format, which
eliminates the "filename" field in favor of just the unadorned PEP
    number.
2001-08-14 16:45:19 +00:00
Barry Warsaw d7727706d9 fixpat: Recognize current preferred usage for PEP references in body,
e.g. "PEP 1".

fixanchor(): Turn preferred usage for PEP references into PEP url
using the new PEPURL template (which uses the canonical
www.python.org/peps url instead of the sourceforge.net site).
(Also, get rid of base argument in int() calls; base 10 is default.)

fixfile(): If we can't open the input file, print an error message and
continue on.
2001-07-05 18:44:20 +00:00
Barry Warsaw bdb526ef89 fixanchor(): Use a module global RFCURL template for RFC urls. Change
this template to point at the nice faqs.org html-ified RFCs.
2001-06-05 17:21:19 +00:00
Barry Warsaw f01e1f9e49 The home directory for the python project has moved (and the symlink removed). 2001-05-01 17:53:52 +00:00
Barry Warsaw 11272e5033 fixfile(): Discussions-To: can contain an address or a url. Adjust
the text accordingly.
2001-03-21 18:59:03 +00:00
Barry Warsaw 3e471ac10a fixfile(): Do the mailto: hacking on both the Author: and
Discussions-To: headers.  Also, apply SF patch #410223 by Andrew
Kuchling, which does the PEP# href wrapping for Replaces: and
Replaced-By: headers.
2001-03-21 17:26:05 +00:00
Fred Drake c3157b3336 Be more careful about generating the URL to RFCs. 2001-03-21 14:52:13 +00:00
Moshe Zadka 456c12266f Add hyperlinking of RFC mentions (Idea and link stolen from pydoc.py) 2001-03-21 12:37:22 +00:00
Barry Warsaw 9fff8bede1 push_html() -> push_pep()
push_pep(), main(): Arrange for the .txt source file to also be scp
uploaded to SF when the -i/--install flag is given.
2001-03-20 15:07:21 +00:00
Barry Warsaw af1139129f fixfile(): Include a link to the plain text "PEP source" on each html
page.
2001-03-20 15:00:13 +00:00
Barry Warsaw 1c49b642d1 Document -q/--quiet in the module docstring. 2000-11-03 15:43:28 +00:00
Thomas Wouters 00cf9fa6f6 Add -u and --user options to the call to getopt, to make them actually work. 2000-11-01 23:45:47 +00:00
Fred Drake 181d3e68ea push_html(): New function; handles the mechanics of actually pushing the
generated HTML to SourceForge.

main():  Adjust to use push_html(), and simplify the logic so it only
         gets called from one place.
2000-09-08 15:31:36 +00:00
Fred Drake f07c9e76b0 Added a -q/--quiet option to suppress the per-file progress message.
Fixed the branch for files specified from the command line to only update
the Web server if the -u/--update option was used.
2000-09-07 01:26:46 +00:00
Jeremy Hylton 020ce8ad4b new usage to support conversion of only specified PEPs
Usage: %(PROGRAM)s [options] [peps]
Notes:
    The optional argument peps can be either pep numbers or .txt files.
Options:
    -u/--user
        SF username
    [rest is the same]
2000-08-28 16:00:49 +00:00
Barry Warsaw a9248810dc Linkify the Author: fields with mailto urls. 2000-08-17 04:27:04 +00:00
Peter Schneider-Kamp d5840d43dd remove superfluous special casing for lines beginning with '[*]' 2000-08-15 10:35:17 +00:00
Barry Warsaw 436c8543f6 Changed the sense of the default behavior. No longer installs the
.html files in SF by default; you must explicitly include the
-i/--install option in order to upload.

Also, added -h/--help and migrated to getopt for switch parsing.
Included a usage() function.

Some cosmetic changes.
2000-08-15 05:53:19 +00:00
Peter Schneider-Kamp 5feb78f32b special case lines beginning with "[*]" as non-header
add optical sugar
2000-08-11 22:18:04 +00:00
Barry Warsaw 4762067d68 Moved "Local Variables:" string farther away from the end of the file,
so Emacs doesn't think this actually indicates the beginning of a
local variable section!
2000-07-28 06:40:10 +00:00
Fred Drake ebc3175f87 Handle RFC822-style continuation lines. One of these appeared in PEP-0001. 2000-07-27 19:18:59 +00:00
Fred Drake 7896bf218d Further presentation adjustments, use a style sheet for some things. 2000-07-27 18:44:44 +00:00
Fred Drake f30b9ed129 If form-feeds are not going to be used to indicate what can be marked as
a header, use a non-white character in the first column.  This looks a
little cleaner.
2000-07-26 04:14:30 +00:00
Peter Schneider-Kamp 638555dec7 try to change rights of peps to rw-rw-r-- 2000-07-25 04:12:28 +00:00
Fred Drake cc3cb98680 Revise the generated HTML to be a little nicer, but still pretty simple.
Also add a -n option to suppress installing the generated HTML at
SourceForge to allow local use.
2000-07-25 03:51:44 +00:00
Peter Schneider-Kamp d96183f255 incorporating changes from /F
not including pep-0000.txt -> index.html (a symbolic link does just fine)
2000-07-20 22:44:36 +00:00
Peter Schneider-Kamp 8f14080fb1 converts pep-*.txt to pep-*.html and loads them up with the help of scp
it would be nice if you could call it after committing changes on a pep

Syntax: python pep2html [sf_username]
2000-07-20 22:29:24 +00:00