Commit Graph

110 Commits

Author SHA1 Message Date
Hugo van Kemenade 3e6630877d
Infra: Add directives to show warning banner for deprecated PEPs (#3682)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2024-04-14 07:35:25 -06:00
Hugo van Kemenade aa17904b42
Infra: Add OG metadata to improve previews of shared links (#3707) 2024-03-16 15:38:11 +02:00
Malcolm Smith 433958e731
Infra: Increase spacing between complex list items (#3662) 2024-02-15 17:20:02 -08:00
Victor Stinner 71308a8cab
Fix HTML "Last Modified" link in the footer (#3653)
Add "peps/" to the URL.
2024-02-09 15:06:51 +00:00
Hugo van Kemenade f7f9f2d68a
PEP 612: Mark as Final (#3575)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2024-01-12 00:20:09 -07:00
Hugo van Kemenade d341072725
PEP 8: Add green and red sidbar for good and bad examples (#3567) 2023-12-09 09:19:37 -07:00
Jacob Coffee ff0702ebfc
Infra: update canonical banners to not stick on small screens (#3559)
Updates small media sizes to not have a sticky banner
Adds a helper close button to optionally close banner

Closes #3536
2023-12-02 22:31:13 -08:00
Sebastian Rittau 6643c37d31
Infra: Improve print style (#3486) 2023-11-14 11:41:48 -07:00
Alyssa Coghlan 6f1da2042d
Update references to Alyssa Coghlan (#3475)
* For most cases (including all PEP metadata), replace birth name with chosen name
* Birth name has been retained in parentheses when this makes other references
  substantially clearer (e.g. references to mailing list posts, elected members
  of the inaugural Steering Council)
2023-10-11 14:05:51 +02:00
Hugo van Kemenade b794468df6
Infra: Add Python version to PEP 0 tables (#3434)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-27 15:16:17 +01:00
Adam Turner 08d688fdca
All PEPs: Move to ``peps/`` folder (#3418) 2023-09-09 18:39:29 +01:00
Adam Turner 0f22268963
Lint: Add Ruff (#3429) 2023-09-09 17:33:52 +01:00
Adam Turner 814ceede97
Lint: Add ``check-peps.py`` (#3275)
``check-peps`` codifies the rules in PEP 1 and PEP 12 into a single
place containing all of the PEP-specific checks. These are primarily
header and metadata validation, and ensuring that direct links to
RFCs and PEPs aren't used.

Reviewed-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Reviewed-by: C.A.M. Gerlach <cam.gerlach@gerlach.cam>
2023-09-05 04:44:46 +01:00
Adam Turner 2d4c98dca7
Infra: Prepare for moving PEPs to a subfolder (#3417) 2023-09-03 04:55:19 +01:00
Adam Turner e906b6a1bb
PEP 0: Set consistent table column widths (#3339) 2023-09-01 17:51:46 +01:00
Adam Turner 52b311ff8b
PEP 0: Remove unneeded import (#3341) 2023-09-01 15:26:09 +00:00
Adam Turner 3550731898
PEP 0: Refactoring (#3340) 2023-09-01 16:19:19 +01:00
Josh Cannon 32a92bd50b
PEP 0: Use authors' full names over surnames (#3295)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-09-01 16:11:33 +01:00
Adam Turner dbe0dd8c4f
Ensure the ``:pep:`` role works properly with the dirhtml builder (#3322) 2023-09-01 05:57:00 +01:00
Adam Turner 7d52bab3ce
Support Sphinx 7.2 in ``pep_sphinx_extensions`` (#3294) 2023-08-17 16:15:55 +00:00
shailshouryya 0ebf5a4390
Lint: Update outdated package dependencies & reformat files (#3291)
* Update `sphinx-lint` package dependency version number → 0.6.8

This new release includes the changes from
https://github.com/sphinx-contrib/sphinx-lint/pull/56/files,
which should address
https://github.com/python/peps/issues/3028. For details
about `sphinx-lint` release 0.6.8, see
https://github.com/sphinx-contrib/sphinx-lint/releases/tag/v0.6.8.

* Update other outdated dependencies

Run the following:

```
python -m pip install pre-commit
pre-commit autoupdate
pre-commit run --all-files
```
2023-08-16 08:07:57 +03:00
Adam Turner 2b53c224d1
Generate ``peps.rss`` via Sphinx (#3274) 2023-08-05 17:22:22 +01:00
Hugo van Kemenade 191de06f27
Infra: Revert "Fix a URL in the PyPA specification banner (#3199)" (#3218) 2023-07-31 22:28:06 +01:00
Uriya Harpeness fee8c3e353
Remove duplicated CSS properties in ``styles.css`` (#3204) 2023-07-16 14:42:59 +01:00
wim glenn 08124264e6
Fix a URL in the PyPA specification banner (#3199) 2023-07-13 03:56:26 +01:00
Hugo van Kemenade ef64ec3cbe
Infra: improve text readability and webpage performance (#3132)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-05-31 11:10:38 +02:00
Hugo van Kemenade 9d6e5b653f
Replace deprecated ``datetime`` functions (#3148)
From Python 3.12, datetime.datetime.utcnow and
datetime.datetime.utcfromtimestamp emit deprecation warnings.
2023-05-18 01:45:51 +01:00
chaojie 6eb6167770
Infra: Make the sticky banner opaque for better readability (#3075)
Make the stick banner opaque for better readability
2023-04-28 12:31:40 -05:00
Roman Solomatin 67712e46d8
Infra: Fix topics links from pep-0000 (#3093) 2023-04-08 17:36:57 -05:00
C.A.M. Gerlach 4b3c9504ed
Infra: Fix hiding of References if it contains invisible SystemMessage (#3083) 2023-04-03 16:05:21 +02:00
Pradyun Gedam 06e5a8a693
Implement support for sticky banners and utilize them (#2992) 2023-03-20 08:42:01 +00:00
Hugo van Kemenade 40f579646e
Infra: Only add Topics index to PEP 0, not topic indices (#3037) 2023-03-04 14:10:39 +02:00
Hugo van Kemenade 9fa3f36d90
Infra: Add index by topic to PEP 0 (#2892)
* Infra: Add index by topic to PEP 0

* Infra: Move intro text

* Simplify wording
2023-03-04 10:22:14 +02:00
C.A.M. Gerlach f292166dba
Lint: Allow per-message Post-History links w/trailing slash (#3005)
* Lint: Only ignore per-message links in Post-History with trailing slash
* PEP 684: Add trailing slash to per-message Post-History link
* Infra: Use clearer term (message, not post) for single Discourse messages
2023-02-06 16:49:00 -06:00
Hugo van Kemenade e92c4d6afa
PEP 1 and 12: Document Topic header (#2995)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-03 21:34:17 +02:00
Hugo van Kemenade 5bdec964da
Meta: Add a governance topic (#2993)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Fixes https://github.com/python/peps/issues/2987
2023-02-02 12:50:01 +02:00
Hugo van Kemenade 77bbe7983a
PEP 404: Add Python 2.8 to Release PEPs topic (#2986) 2023-01-31 11:03:08 +02:00
Hugo van Kemenade 15caa8f24b
Infra: Use dark grey instead of dark green for dark theme background (#2977)
* Use #121212 for dark theme bgcolor

* Use #1111111 for dark theme bgcolor

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-24 07:53:08 +02:00
Hugo van Kemenade 2f277a0a2a
Infra: Fix Replaces/Superseded-By/Requires links for dirhtml (#2981)
After #2972, when building dirhtml,
we need to re-add the initial / for the links to PEPs
in the Replaces/Superseded-By/Requires headers.
2023-01-23 21:26:36 -06:00
Hugo van Kemenade 6fc3a4ddf3
Infra: Use relative links to ease development (#2972) 2023-01-22 12:56:05 +02:00
Hugo van Kemenade 241163786e
Link to the correct location for the RSS feed (#2962) 2023-01-14 17:32:50 +00:00
Philipp A 631ee6ce60
Infra: Only invert image brightness, not hue (#2949)
Since inversion doesn’t just affect brightness, but also hue, there’s a problem: Some background colors have perceptually less contrast with their text when hue rotated. This rotates their hue back, fixing the contrast issue.
2023-01-06 16:33:58 +00:00
Hugo van Kemenade 67512a10ea
Infra: Link status and type headers to descriptions (#2842)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-29 11:48:51 +02:00
Hugo van Kemenade 5731720068
Infra: Include PEP number in API (#2879)
Fixes https://github.com/python/peps/issues/2878
2022-11-10 08:49:09 +02:00
C.A.M. Gerlach 80f41487fe
Meta: Clarify scope of Packaging topic and rm ensurepip PEPs (453/477) (#2826) 2022-11-07 17:57:17 +01:00
Hugo van Kemenade 1a931bf317
Infra: Don't generate broken source link for topic pages (#2843) 2022-10-22 20:42:06 -07:00
Hugo van Kemenade ed92c0697c
Infra: Only emit a category table when it has entries (#2839)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-22 10:44:36 +03:00
Hugo van Kemenade c0b28dab5b
Infra: Add tooltips to type/status in PEP 0 (#2838)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-10-22 10:43:36 +03:00
C.A.M. Gerlach bf3465d3e3
Packaging PEPs: Update headers & link canonical PyPA specs (#2690)
* Update headers/etc. of older packaging PEPs to reflect replacement PEPs

* Infra: Fix lowercase and tweak plural in text for PyPA spec banner

* Add banner to all relevant PEPs pointing to their canonical PyPA specs

Co-authored-by: Brett Cannon <brett@python.org>
2022-10-07 08:29:13 -07:00
Jelle Zijlstra e46b83661d
Add Topic for release schedule PEPs (#2669)
Release PEPs are a pretty unusual kind of PEP and it's useful to me to have
them all listed together. Happy to adjust the name of the topic if desired.

I took the opportunity to adjust the status of a few release PEPs. Now all
releases for EOL versions are Final (3.5 was previously Active), and all
releases for released versions are Active (3.10 was still draft). 3.11 remains
Draft as 3.11 has not yet been released.

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-06 18:01:52 -07:00