-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E-Book design - initial design #356
Comments
- the aim of this node is to create an epub version of the Raku Documentation suite - An epub can be described as a web site encapsulated into a file. - See issue #356 for initial design goals.
This seems like a great first pass! I especially agree about skipping the class hierarchy images and the majority of the generated pages. We might want to have some generated pages just for the epub- maybe an intro page only to start? I can provide some content for that page. |
- the aim of this node is to create an epub version of the Raku Documentation suite - An epub can be described as a web site encapsulated into a file. - See issue #356 for initial design goals.
@coke It seems that there is a significant difference between epub v2 and epub v3 in so far as Table of Contents are created and read (toc.ncx vs toc.xhtml). See SO thread I am going to target v3 initially. This might reduce the ability of some ebook readers. If users report a problem, we can add a separate toc.ncx to the ebook data. |
* Start creating EBook mode - the aim of this node is to create an epub version of the Raku Documentation suite - An epub can be described as a web site encapsulated into a file. - See issue #356 for initial design goals. * resolves issue #316 adds commit id & date to files - uses new Collection functionality to gather information about each file rendered - information added at bottom and in 'edit button' on right * bump versions for Collection and Raku-Pod-Render * fix template for doc-website commit
@dontlaugh I merged part of the docs-dev branch into main. The patch related to putting commit id information into the edit button. The changes to EBook will NOT affect the website! Running |
PRs are not automatically created.
…On Fri, Apr 26, 2024 at 6:13 PM Richard Hainsworth ***@***.***> wrote:
@dontlaugh <https://github.com/dontlaugh> I merged part of the docs-dev
branch into main. The patch related to putting commit id information into
the edit button.
I thought I had deleted the branch.
Then I uploaded a large number of files into the EBook directory as part
of a "new" 'docs-dev' branch.
But there is no new PR.
I am confused as to what has happened.
The changes to EBook will NOT affect the website!
In order for Collection to build the EBook, the command bin_files/build-site
EBook would need to be executed.
Note that the flag --without-completion should not be added (which is
needed to build the website).
Running build-site EBook will generate a directory unzipped-ebook and
RakuDocumentation.epub in the repo's root.
—
Reply to this email directly, view it on GitHub
<#356 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMIUOXVBR445BAIHLPRZ3Y7LGQZAVCNFSM6AAAAABFGWVHF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBQGE4DCNRWHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Also you committed directly to main with a commit message of "docs-dev",
not to a branch.
98f36e7
…On Fri, Apr 26, 2024 at 6:14 PM Will Coleda ***@***.***> wrote:
PRs are not automatically created.
On Fri, Apr 26, 2024 at 6:13 PM Richard Hainsworth <
***@***.***> wrote:
> @dontlaugh <https://github.com/dontlaugh> I merged part of the docs-dev
> branch into main. The patch related to putting commit id information into
> the edit button.
> I thought I had deleted the branch.
> Then I uploaded a large number of files into the EBook directory as part
> of a "new" 'docs-dev' branch.
> But there is no new PR.
> I am confused as to what has happened.
>
> The changes to EBook will NOT affect the website!
> In order for Collection to build the EBook, the command bin_files/build-site
> EBook would need to be executed.
> Note that the flag --without-completion should not be added (which is
> needed to build the website).
>
> Running build-site EBook will generate a directory unzipped-ebook and
> RakuDocumentation.epub in the repo's root.
>
> —
> Reply to this email directly, view it on GitHub
> <#356 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAMIUOXVBR445BAIHLPRZ3Y7LGQZAVCNFSM6AAAAABFGWVHF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBQGE4DCNRWHE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
@coke @dontlaugh (please read question below)
Some questions: - label: "Build Ebook"
key: ebook
if: build.branch == 'docs-dev'
depends_on:
- build
commands:
- "./bin_files/build-site --no-status EBook" I have not done this because I do not know the consequences for the build-kite process The effect of the last command would create 'RakuDocumentation.epub' in the root directory. question-2. @dontlaugh how do we make the epub available on line? Does it need to be added to the container served by Caddy? |
@coke You said
I have adapted the About page from the website, but it's not really good. So, please change it. The source is
|
@coke I have modified my new-raku deployment to download the ebook. It can be accessed by clicking on 'More' in the top-page navigation bar. Clicking on Download Ebook pops up a modal with the download link. The EBook - I am sure - needs some TLC. It needs a cover. The CSS needs changing, particularly for the code snippets, which mess up my Calibre reader if the page width is not wide enough. |
The download fails to import into Apple Books app on a mac laptop. No errors are given. |
I was able to read it with |
@coke I dont have access to a Mac. I searched Apple Books & epub, and there is a way to import epub. But the description does not mention whether Apple Book App will read the Epub v3 spec or only v2. I've done as much as I can at present, and I need to return to the RakuAST Rakudoc v2 renderer. For others to help on the CSS, all it takes (I hope), is to tweak the SCSS files in ebook-embed. |
If you can update the popup window to mention the epub v3 restriction, I have no problem with this getting merged to main |
FYI:
|
|
Ebook is now available on https://docs.raku.org (click the "More" navigation link) |
closing design thread. Failure issues in #374 |
@coke @lizmat I'm creating an issue here and tagging you both, but maybe I should tag a group?
This is in issue form for feed back. I don't think discussions generate much feedback.
Abstract
The E-Book format being targetted is 'epub' as it seems the most widely support and is open-source. An epub can be characterised as a web in a file container that a ebook reader can display. The epub website will be simpler than the internet live website.
Detail
The following simplifications are my initial thoughts as I implement the epub. If anyone has other suggestions based on epub creation experience, please let me know. Otherwise, I expect the first epub creation (draft?) will generate lots of suggestions when we can test it on real users and varied e-book readers.
The simplifications:
The text was updated successfully, but these errors were encountered: