Skip to content

Create ePub versions of PEPs #1994

Closed
Closed

Description

@AA-Turner

cc: @Mariatta @froi

I know that we can generate ePub using Sphinx. Is that something we can get if we're going with GitHub pages?

Originally posted by @Mariatta in #1933 (comment)

Note that ePubs is somewhat dependent on the Sphinx work (#2)

Activity

  1. Mariatta commented on Jun 18, 2021

    @Mariatta
    Member

    Thanks. ReadTheDocs can also handle the ePub generation. It is a built-in feature on their side:
    https://docs.readthedocs.io/en/stable/downloadable-documentation.html

  2. AA-Turner commented on Jun 18, 2021

    @AA-Turner
    MemberAuthor

    As a design decision, would 1 massive epub file (~5,500 pages), or individual files per PEP be preferred?

    @froi would be interested in your views as an epub user?

    A

  3. AA-Turner commented on Jun 19, 2021

    @AA-Turner
    MemberAuthor

    Gotten an initial implementation working, although unstyled (I don't know if ePubs are expected to be styled to parity with HTML?) and with one error (literal/code blocks overlapping with body text). xref #1995

    I am not sure if read the docs would be able to handle this out of the box, as I've customised Sphinx significantly for PEP purposes, disabling the native index, search, javascript, permalinking, etc. As of this, a lot of the stuff Sphinx expects for just changing the builder name to work doesn't exist (e.g. I had to turn off the custom templates I've done for the HTML variant as they fail with epub).

    Just my two pennies' worth, but it may turn out that ePub support is as complicated as the custom HTML - adding a lot of potential maintenence burden for a historically low change infrastructure piece? I will continue to work on it but wanted to (constructively!) raise the challenge now as I think about it.

    A

  4. AA-Turner commented on Jun 20, 2021

    @AA-Turner
    MemberAuthor

    Easier than anticpated, have now got the PEP ePub styled to (near) parity with the HTML, and sorted out the code literals issue.

  5. AA-Turner commented on Jan 21, 2022

    @AA-Turner
    MemberAuthor

    See closure message at #1995

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions