Sphinx - theming #1933
Sphinx - theming #1933
Conversation
12a1a20
to
3b19ba8
58141f6
to
d321101
dab95a4
to
a1d49b7
|
@pablogsal This one is now ready to review -- I do still have a way of producing visual parity styling with the current hosting, but it will take a couple hours to update if wanted. Test: Note that in this PR (unlike all previous ones) I have edited 3 PEP files (310, 439, 3143). This was to correct styling errors I noticed that exist in current python.org. A |
|
Rendered site: https://aa-turner.github.io/peps/ Additional open questions: Do we expand the list of explicitly whitelisted / unmasked emails? Last updated when it was added in 2002 with just peps@python, python-list@python, and python-dev@python. A fair few SIG type emails crop up in discussions-to etc, but for spam may want to keep masked? Emails that came up more than once:python-announce {at} py.org Dealing with titles with code (e.g. PEP 604) - render as code, or strip out and just render as normal text? |
|
@pablogsal - rebased on Do you know who best to contact to get GH pages enabled on this repo, incidentally? A |
|
Just wanted to mention that I took a quick look at https://aa-turner.github.io/peps/ and it looks pretty cool. I know that we can generate ePub using Sphinx. Is that something we can get if we're going with GitHub pages? I know that it is something we can get easily if hosting it in readthedocs. cc @froi who was wondering about ePub version of the PEPs. |
|
Hi Mariatta, Thanks for the feedback :) Will have a look at ePubs, although I don't have a kindle so I don't think I can preview? (after writing this I'll probably find an epub app for my phone within 30 seconds!) Could I suggest though that it's tackled in a separate PR? Currently I'm focussed on trying to replicate what we currently have - but appreciate moving to Sphinx opens more avenues, which is partly the point I guess! I will open an issue to track ePub generation. (edit: see #1994) A |
|
@AA-Turner is anything missing in this PR or can it be reviewed already? |
|
There's only one thing - code in headings renders as grave accents not code (e.g. https://aa-turner.github.io/peps/pep-0604/) But getting it working was proving a little challenging, so perhaps this PR can be reviewed as is, and I add the code headings in a followup? Technically I guess I should have solved it in #1931, but only noticed recently. If you'd prefer otherwise let me know and I will prioritise getting the code-headings stuff working A |
|
This looks good in general, but I am a bit confused why this is mixing changes to the sphinx files (the python code) with the theme files (css, html...etc). It will be easier to review if this were separated somehow. Maybe i am missing something, though :) |
Blame poor planning, sorry - there were a few minor things that came up that I needed to fix as part of the theme work (e.g. the contents bit you reviewed just now, I realised I needed to change it to a proper header, the pep_url changes were needed to do the dynamic builder updates bit, I realised that the PEPTranslator needed to be added for each individual builder) |
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
@pablogsal fixed the literal markup issue so added that to this PR |
|
Looks good to me. Let's merge this and we can iterate in future PRs if we detect some problems. Well done @AA-Turner ! |
|
Thanks Pablo :) |
See #2, #1385 for context. Superseeds #1568.
This is the Sphinx theming part, building on PR #1930.
Stylesheets:
style.css- stylesmq.css- media queriesJinja2 Templates:
page.html- overarching templateJavascript:
doctools.js- fixes footnote bracketsTheme miscellany
theme.conf- sets pygments styles, theme internals