Skip to content

Build PEPs using Sphinx #2

Closed

Description

@brettcannon

Might make things easier to manage, style, etc.

Activity

  1. Carreau commented on Jun 16, 2016

    @Carreau
    Contributor

    Does that have any impacts on https://www.python.org/dev/peps/* ?(which already renders the peps well)

  2. birkenfeld commented on Jun 16, 2016

    @birkenfeld
    Member

    Indeed, since the main purpose is to be rendered on www.python.org I don't think this would change much. The added markup also isn't really used for PEPs.

  3. brettcannon commented on Jun 16, 2016

    @brettcannon
    MemberAuthor

    So I envision this tying into #3 so that we can host things on Read the Docs and have a sub-domain for the PEPs.

  4. birkenfeld commented on Jun 16, 2016

    @birkenfeld
    Member

    Making that match the design and style currently used on python.org would be tedious, though.

  5. Carreau commented on Jun 16, 2016

    @Carreau
    Contributor

    So I envision this tying into #3 so that we can host things on Read the Docs and have a sub-domain for the PEPs.

    So would that mean pepe would no longer be displayed on Python.org ?

    Also from other project i'm contributing too, multiple domains for different section of a website are painful, (especially on readthedocs) because the navigation does not work well across site.

    It would though most likely be feasible to build this on travis and cross-push on the python/pythondotorg repository to trigger a rebuild of the main website. Or of you don't like that, push a separate branch and auto submit a PR.

  6. brettcannon commented on Jun 16, 2016

    @brettcannon
    MemberAuthor

    I don't care if the style changes. I just think having the PEPs buried in www.python.org and having such a separate build process is odd, especially when the contents have no direct connection to what's on www.python.org (who directly links to the PEPs from www.python.org anyway beyond navigation links?)

    As for setting up some way to have pythondotorg automatically re-build the PEPs when a commit occurs, I'm quite happy to see that happen.

  7. Carreau commented on Jun 17, 2016

    @Carreau
    Contributor

    I don't care if the style changes. I just think having the PEPs buried in www.python.org and having such a separate build process is odd, especially when the contents have no direct connection to what's on www.python.org (who directly links to the PEPs from www.python.org anyway beyond navigation links?)

    As for setting up some way to have pythondotorg automatically re-build the PEPs when a commit occurs, I'm quite happy to see that happen.

    Thanks, that's a much simpler problem if we have less backward compatibility.

  8. changed the title [-]Make the peps build process use Sphinx[/-] [+]Build PEPs using Sphinx, create peps.python.org[/+] on Jun 21, 2016
  9. brettcannon commented on Jun 21, 2016

    @brettcannon
    MemberAuthor

    I'm combining #3 with this issue as there's no point in making the PEPs build with Sphinx if we don't create a subdomain of peps.python.org that is hosted on Read the Docs.

  10. added a commit that references this issue on Aug 29, 2016
  11. foonsun commented on Nov 30, 2016

    @foonsun

    thanks for your effort

  12. changed the title [-]Build PEPs using Sphinx, create peps.python.org[/-] [+]Build PEPs using Sphinx[/+] on Dec 10, 2016
  13. flying-sheep commented on Dec 10, 2016

    @flying-sheep
    Contributor

    for fun i have created a PEP server that can be used to iterate on PEPs while seeing them in their final style.

    it could be useful to get something close to the way PEPs look on python.org (since i already did the work to create a HTML template managing that does that):

    https://gist.github.com/flying-sheep/c296482b785662d505f06c8bfe32f16e

    it includes a server that serves HTML renders of PEPs without writing files. the pages contain live.js for auto-reloading and link the python.org stylesheet, so you can just edit away.

    should i do a PR with it?

    if yes, i’m interested in the scope for the provided scripts: are they all just for development? why the RSS stuff then?

  14. brettcannon commented on Dec 10, 2016

    @brettcannon
    MemberAuthor

    The scripts in the project are actually used to generate the final files served at python.org/dev/peps.

    As for a PR, feel free to propose it but I don't know what to think about it. I personally have never been bothered by the lack of styling when viewing generated PEPs (but then again I don't even bother with that anymore since we moved to GitHub when making edits to an existing PEP). If you want to discover this further, please open a new issue since this doesn't directly tie into using Sphinx for building.

  15. 63 remaining items

  16. warsaw commented on Jun 29, 2021

    @warsaw
    Member

    See this ticket about Python 3.9.

    Since GHP doesn't support Sphinx out of the box (only Jekyll for Markdown AFAIK), are you planning on using Actions to call out to Sphinx if you go that route?

  17. AA-Turner commented on Jun 29, 2021

    @AA-Turner
    Member

    are you planning on using Actions to call out to Sphinx

    The build script is already committed! https://github.com/python/peps/blob/master/.github/workflows/deploy-gh-pages.yaml

    (GHA calls make which calls build.py which orchastrates the process)

    A

  18. AA-Turner commented on Jun 29, 2021

    @AA-Turner
    Member

    My recommendation to get us moving forward is to deploy to both RTD and using GH-pages initially.

    Sounds good, thanks Carol!

  19. ericholscher commented on Jun 29, 2021

    @ericholscher

    We can definitely get 3.9 running on RTD. I will ping @astrojuanlu to look into this soon. We're also happy to remove ads for the PEPs repo, if that's an issue.

    Another benefit of using RTD is that we're working on a number of additional features that will be useful for this. In particular, content embedding -- as well as generally having a more powerful search experience than vanilla Sphinx. The RTD team is also committed to helping work to make this a success, which is probably another Pro :)

  20. AA-Turner commented on Jun 29, 2021

    @AA-Turner
    Member

    Thanks Eric - I'm going to have a go on the testing image which supports 3.9, but part of me is pretty nervous deploying something explicitly labelled as testing!

    Will look through the rest in the morning

    A

  21. ericholscher commented on Jun 29, 2021

    @ericholscher

    @AA-Turner Ha, no worries on testing. It's basically just a way for us to provide it while we work on a better plan for upgrading our docker images. It should be as stable as any other build.

  22. astrojuanlu commented on Jun 30, 2021

    @astrojuanlu

    Thanks for the ping @ericholscher, I am now up to date with the whole conversation. Sent a small PR to save @AA-Turner some minutes of searching through our docs :) happy to help with anything else AA-Turner#3

  23. added a commit that references this issue on Jun 30, 2021
  24. willingc commented on Jul 1, 2021

    @willingc
    Contributor

    This is coming along nicely: https://python.github.io/peps/

    Thanks to all for working on this 🍰

  25. AA-Turner commented on Jul 4, 2021

    @AA-Turner
    Member

    #2023 looks to add support for read the docs (or any other external documentation builder that supports Sphinx). Rendered preview at https://peps-aaturner.readthedocs.io/

    A

  26. astrojuanlu commented on Dec 8, 2021

    @astrojuanlu
  27. AA-Turner commented on Jan 10, 2022

    @AA-Turner
    Member
  28. self-assigned this
    on Jan 20, 2022
  29. AA-Turner commented on Mar 7, 2022

    @AA-Turner
    Member

    Update: PEP 676 has been accepted!

    I'll leave this issue open until the implementation work is fully finished.

    A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions