Commit Graph

84 Commits

Author SHA1 Message Date
Adam Turner 7c56327391
Override PEP & RFC roles for fragments (#2251) 2022-01-19 13:09:27 -08:00
CAM Gerlach c33b7248c1
Set low priority for rm-ing refs section so refs still resolve correctly (#2227) 2022-01-11 16:45:43 -08:00
CAM Gerlach f82973df46
Don't auto-add inline links to ref section & rm if empty, per #2130 (#2155)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2021-12-18 15:23:14 -08:00
Dimitri Papadopoulos Orfanos 40ef5625b7
A couple pep2html.py issues (#2080) 2021-09-21 12:57:20 -07:00
Ethan Furman e6ce12334a add mitigation section 2021-07-13 12:19:58 -07:00
Hugo van Kemenade a169cac7d5
Change language from BDFL-Delegate to PEP-Delegate (#1672) 2020-10-26 11:48:42 -07:00
Brett Cannon a7160d6358
Support the 'Sponsor' header field (#911) 2019-03-04 17:33:37 -08:00
jdemeyer c1b361f770 pep2html: use raw strings where needed (GH-885) 2019-02-05 16:38:06 +01:00
Mariatta 3c0a1e18d3
Linkify the PEP numbers in "Superseded-By" header. (#726)
We're already linking PEP numbers in "Replaces:", and "Requires:".
Adjusted the code so it can link "Superseded-By:".
Add the "Replaces:" header where they're missing.
2018-07-10 11:04:15 -07:00
James Salter 3f1e6f40c2 Fix PEP summary/email line indent in pep-0000.html (#516)
The PEP summary/email lines that aren't the first line in their group
have an extra leading space because the previous line is printed with a
trailing space. The special lines read from pep-0000.txt should be
printed with no extra ending to be consistent with what the python2
version did with a print statement that ends with a comma.
2018-02-16 10:54:56 +10:00
Benjamin Peterson 1f6bc120cc fix reference to docutils PEPZeo 2017-11-09 23:21:15 -08:00
R. David Murray 5acd2bb90e Define missing DataError class in rst2html. 2017-09-05 14:05:57 -04:00
Benjamin Peterson 591a85fadc mask bdfl-delegate email 2017-06-11 12:43:16 -07:00
Benjamin Peterson 2a42be8c60 vendorize some docutils pep transformations, so we can update them 2017-06-11 12:42:47 -07:00
Donald Stufft cfa09e1878 Halt on warnings and not just errors 2016-07-05 13:14:38 -04:00
Matthias Bussonnier 4012c124e1 Handle pep files with `.rst` extensions. 2016-06-27 10:30:09 -07:00
Serhiy Storchaka 56d4eced1d cgi.escape is deprecated, use html.escape instead. 2016-05-03 10:51:13 +03:00
Zachary Ware c1bc6693ac Port pep2html.py to 2/3.
This is a fairly naive port, just ran 2to3 over it and then tweaked
enough to make both versions happy.
2015-04-12 22:27:02 -05:00
Benjamin Peterson fe2923d6eb add missing import 2014-10-07 19:26:44 -04:00
Benjamin Peterson a12e33acbb get docutils not to use the svn url 2014-10-07 16:18:39 -04:00
Benjamin Peterson f0a6df9669 give https link 2014-10-07 16:04:45 -04:00
Benjamin Peterson e0189b5a17 cleanup version header, too 2014-10-07 12:12:47 -04:00
Benjamin Peterson 5ddbe800cd cleanup date field after keyword expansion 2014-10-07 12:11:48 -04:00
Ned Deily ca2574f9d8 Issue #19110: Surpress Last-Modified link in PEP 0 html 2013-09-28 12:10:28 -07:00
Benjamin Peterson 6fb6ffac74 obscure the email address in bdfl-delegate, too 2013-06-05 12:03:27 -07:00
Georg Brandl ff344ee971 Fix mentions of svn.python.org and remove unneeded files. 2011-03-24 09:10:55 +01:00
Guido van Rossum 34ec2ad36c Fix some bugs when dealing with non-existent or non-PEP files. 2007-05-10 22:55:31 +00:00
Guido van Rossum 7cd5c629bf - Fix the link to the svn equivalent of viewcvs.
- Expand keywords in PEP 352.txt.
2005-11-01 00:17:41 +00:00
Guido van Rossum fe551846ee Disable the 'chmod' commands since these don't work since the move to dinsdale. 2005-10-14 15:22:30 +00:00
Guido van Rossum 4e02ab52f6 The root of the tree on dinsdale is /data, not /ftp. 2005-10-13 21:04:15 +00:00
Andrew M. Kuchling 97b822857f Use new www server hostname 2005-10-12 16:08:28 +00:00
David Goodger e65b9b97b5 allow https URI scheme in links, continued 2004-07-19 19:05:01 +00:00
David Goodger 84a666a86d allow https URI scheme in links 2004-07-19 19:02:14 +00:00
David Goodger 0a9b3b929c changes from Docutils project: reformatted docstring/help; send -h/--help output to stdout not stderr; enable exception tracebacks from Docutils; improved version checking 2004-04-02 19:20:13 +00:00
David Goodger e2e00085ed updated 2002-11-13 01:36:44 +00:00
David Goodger 119861ad94 Moved comment inside <head> to appease MSIE. 2002-11-12 05:36:09 +00:00
David Goodger d0acf8e599 Added --local/-l option to make my life easier on creosote. Removed bogus <body> attributes. 2002-11-12 00:56:27 +00:00
David Goodger 419185c12d Added "DO NOT EDIT" comment. Updated from Docutils. 2002-11-08 03:43:48 +00:00
David Goodger cb0de5fce0 Updated for new ``publish_string()`` convenience function. 2002-10-19 01:33:12 +00:00
David Goodger 623c977f6e updated for Docutils API changes 2002-10-18 05:19:08 +00:00
David Goodger 38805e00d4 updated to warn if the installed Docutils is not up to date 2002-09-12 02:31:38 +00:00
David Goodger bd6020c372 removed tab 2002-08-30 04:30:40 +00:00
David Goodger 1655ef5d34 Added an exception handler for a bad PEP number. Updated docstrings. 2002-08-30 03:22:58 +00:00
Barry Warsaw 0e918468e6 push_pep(): Be sure the reST pep.css file gets pushed out too. 2002-08-26 17:02:09 +00:00
Barry Warsaw f4f726904e David Goodger writes:
* Refactored the file I/O model throughout, to support multiple
  processing paths.  PEP source text is now read into a list of lines.

* In ``fixfile()``:

  - Updated its parameters for the new I/O model.
  - Changed ``fo`` to ``outfile``, ``fi`` to ``inpath`` and
    ``input_lines``.
  - Input is read in by iterating over the list of input lines, rather
    than using "readlines()".
  - Opening and closing of files is done by the caller, "make_html()".
  - Added PEP number processing in Requires header.
  - Linked "Content-Type: text/plain" to PEP 9.

* Added ``fix_rst_pep()``, which imports and calls Docutils code.

* Added ``get_pep_type()``, which checks for a Content-Type header and
  returns the value, defaulting to "text/plain".  If no PEP header is
  found, ``None`` is returned: input is not a PEP.

* Added ``get_input_lines()`` to read input file into a list.

* Expanded ``make_html()`` to catch errors and process the different
  PEP formats via the new ``PEP_TYPE_DISPATCH`` dict.

* Added ``check_requirements()`` to check both Python and Docutils
  requirements.  ``pep_type_error()`` is called if the required
  software is not available.

* In ``main()``:

  - Added an ``argv`` parameter, so that pep2html.py can be imported
    and command-line options passed in.  Yes, I use this functionality
    in the Docutils "buildhtml.py" front end.
  - Files skipped (due to an error) are not pushed onto the server.
2002-08-26 16:54:54 +00:00
Barry Warsaw b6612d3812 Oops, get rid of debugging prints. 2002-07-30 16:25:17 +00:00
Barry Warsaw 946f4253b2 Note! Python 2.2 is now required (you need the email package).
fixfile(): Modify the Author: and Discussions-To: header handling for
the new required format.  Since this uses Python 2.2's email package,
it should normalize either old style or new style addresses to the new
style for the web page.
2002-07-30 16:17:11 +00:00
Fred Drake 8400ef771c Change the handling of email addresses to be somewhat more difficult for
spam harvesters to collect, and limit those that are actually turned into
hyperlinks.
2002-05-28 15:46:24 +00:00
Fred Drake ac45574485 Link to the stylesheet instead of embedding it; even NS4 doesn't require
that!
Allow the stylesheet to take care of alignment in the headers table.
2002-04-04 16:13:32 +00:00
Fred Drake 95a78f70d3 Do not open <pre> sections until we need them; this avoids empty <pre>
elements at the top of the content and removes leading blank lines inside
<pre> sections.
2002-04-04 15:42:20 +00:00