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
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
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
Uriya Harpeness
fee8c3e353
Remove duplicated CSS properties in ``styles.css`` ( #3204 )
2023-07-16 14:42:59 +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
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
Pradyun Gedam
06e5a8a693
Implement support for sticky banners and utilize them ( #2992 )
2023-03-20 08:42:01 +00: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
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
1a931bf317
Infra: Don't generate broken source link for topic pages ( #2843 )
2022-10-22 20:42:06 -07: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
326e5623a5
Style: Fix zebra stripes and improve table & code presentation ( #2805 )
...
* Style: Further lighten table zebra stripes
* Style: Ensure consistent contrast for code blocks in zebra tables
* Style: Add padding around inline code literal BG to not be so tight
* Style: Add horizontal rules and header color to tables
* Style: Remove zebra striping from tables
* Style: Use more sensible color name for admonition + header color
2022-10-01 19:36:50 -05:00
Hugo van Kemenade
97e3dbde98
Infra: Mute table zebra stripes to de-emphasise different rows ( #2740 )
...
* Infra: Mute table zebra stripes to de-emphasise different rows
* Infra: change #eee to #ddd
2022-08-28 22:55:26 +03:00
CAM Gerlach
0b788056de
Infra: Fix canonical link tag to point to correct PEP URL ( #2687 )
...
* Fix canonical link tag to point to correct PEP URL
* Use shorter, standard HTML5 syntax for self-closing tags
* Avoid depr clip prop & use better supported transform prop in CSS
* Use strict mode in the color scheme JS
2022-07-10 15:40:09 -05:00
CAM Gerlach
5d2f8d10ea
Style: Fix colors and style for all admonitions ( #2691 )
...
Since the basic admonition admonition styles are just applied to a couple individual admonitions, rather than admonitions in general, those other than "warning" and "note" won't display as admonitions at all. In addition to fixing that, this PR adds appropriate, standard colors for each of the additional admonition types in both light and dark mode.
2022-07-06 13:59:41 -05:00
Hugo van Kemenade
b4032e7e3d
Infra: Make colour theme cycler button accessible ( #2619 )
2022-06-18 20:07:06 +02:00
Adam Turner
f7c9e62c9f
Infra: Use Docutils' `list-table` syntax for PEP 0 ( #2616 )
2022-06-08 10:11:14 -07:00
Philipp A
ebff37d5e7
Enable resetting HTML colour scheme preferences
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-04-28 16:49:31 +01:00
Hugo van Kemenade
53d6d5987b
Infra: remove two of the five instances of title at top of pages ( #2532 )
...
* Infra: remove one of the four instances of title at top of pages
* Infra: remove another of the five instances of title at top of pages
* Infra: but keep PEP number in the breadcrumbs
2022-04-19 02:28:45 -05:00
CAM Gerlach
4a5751f0d3
Style: Reduce space consumed by headers and improve alignment ( #2533 )
2022-04-19 09:24:27 +03:00
Hugo van Kemenade
3f6aec0937
Infra: Restore PEPs RSS feed in <head> ( #2509 )
2022-04-15 00:18:57 +03:00
Hugo van Kemenade
642ad67260
Infra: don't wrap PEP numbers in PEP 0 tables ( #2524 )
...
Fixes #2520
2022-04-13 08:01:43 -07:00
Mark Amery
75cc6853e1
Infra: Remove pre-wrap CSS rule that breaks multi-line inline literals ( #2512 )
...
As written up in detail at https://github.com/python/peps/issues/2511 , this rule breaks the rendering of 199 inline literals across all the PEPs, and appears to have no reason to exist. I therefore propose to remove it.
2022-04-11 12:09:26 -07:00
wookie184
67fe49b322
Fix colour scheme toggling when switching from default dark mode ( #2494 )
...
* Fix colour scheme toggling when switching from default dark mode
* Add workaround for Chrome bug where disabling element doesn't cause rerender
2022-04-02 09:05:13 +03:00
CAM Gerlach
dae03bb7ec
Style: Fix unbounded max width causing very wide spans to overflow ( #2478 )
2022-03-30 23:42:33 -05:00
CAM Gerlach
55bed7dca5
Style: Scroll code blocks instead of wrapping them ( #2463 )
2022-03-24 15:03:39 -05:00
CAM Gerlach
f30bc4caa8
Style: Reduce size of code font and improve responsiveness at narrow screen widths ( #2439 )
2022-03-22 23:14:36 +02:00
CAM Gerlach
41086f5258
Style: Fix vertical margins of def lists w/o <p>s to match those with ( #2427 )
...
* Style: Fix vertical margins of def lists w/o <p>s to match those with
* Style: Specify line-height without rem
2022-03-16 20:06:15 -05:00
Hugo van Kemenade
9900fa894c
Accessibility: Add aria-label to clearly describe the dark mode button ( #2426 )
2022-03-15 16:03:35 +02:00
Adam Turner
13aa4b16fb
Make the table of contents collapsed by default ( #2364 )
2022-03-14 01:49:03 +00:00
Adam Turner
4c76e963f2
Styling: Remove field block highlights and restore definition list indent ( #2425 )
2022-03-14 01:46:48 +00:00
Hugo van Kemenade
5d0ebd014a
Dark mode: Invert some images ( #2409 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-03-11 20:41:57 +00:00
Hugo van Kemenade
08e37f7c23
PEP 0: Fix 'Page Source (GitHub)' ( #2401 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-03-09 23:15:24 +00:00
Adam Turner
563de32559
PRS: Add CNAME generation and `rel="canonical"`
2022-03-09 19:00:38 +00:00
Adam Turner
358854aac9
PRS: Remove country language tag in page template
2022-03-01 00:03:40 +00:00
Adam Turner
50e5de2d28
PEP 676: 'dark mode', documentation, spec update, implementation update ( #2239 )
...
Co-authored-by: C.A.M. Gerlach <cam.gerlach@gerlach.cam>
2022-01-16 14:33:05 -08:00
Adam Turner
3d60b84e35
PEP 676: Implementation updates ( #2208 )
2022-01-09 10:07:03 -08:00
Hugo van Kemenade
e47f9242f8
Rename master to main ( #2178 )
2021-12-03 06:59:24 -08:00
Dimitri Papadopoulos Orfanos
57d9baf04d
Typos found by codespell ( #2073 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-09-17 11:18:24 -07:00
Adam Turner
0d93abf9bf
Sphinx support: theming ( #1933 )
...
See #2 , #1385 for context. Superseeds #1568 .
This is the Sphinx-theming part, building on PR #1930 .
### Stylesheets:
- `style.css` - styles
- `mq.css` - media queries
### Jinja2 Templates:
- `page.html` - overarching template
### Javascript:
- `doctools.js` - fixes footnote brackets
### Theme miscellany
- `theme.conf` - sets pygments styles, theme internals
2021-06-30 20:19:44 +01:00