Skip to content
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

--book with markdown source #20

Merged
merged 12 commits into from
Jul 11, 2023
Merged

--book with markdown source #20

merged 12 commits into from
Jul 11, 2023

Conversation

ultrasaurus
Copy link
Owner

@ultrasaurus ultrasaurus commented Jul 8, 2023

I think this is working now

  • added gen_html helper function to Document
  • refactored utils, get_ext() and mimetype() can now be called on Path
  • added note to README about stylesheet.css which is auto-generated by the library we're using
    (used for TOC style)

When I inflate the zip to see the contents...

  META-INF/container.xml  
  META-INF/com.apple.ibooks.display-options.xml  
  OEBPS/style/style.css  
  OEBPS/_title.xhtml  
  OEBPS/examples/book-md/source/_cover.svg  
  OEBPS/ch1.xhtml    
  OEBPS/ch2.xhtml    
  OEBPS/stylesheet.css  
  OEBPS/content.opf  
  OEBPS/toc.ncx      
  OEBPS/nav.xhtml    

in Apple Books, cover shows but when opened
just get spinner and no content
added gen_html helper function to Document
book is generated with markdown converted to html, yet fails to open
@ultrasaurus
Copy link
Owner Author

ultrasaurus commented Jul 8, 2023

@enw still working on getting markdown to work at all, just wanted to ask if you know if it will work for an ePUB to reference web content

in any case, I don't think we'll want to do that just to include audio playback JS: "https://kit.fontawesome.com/53eef1c336.js"

opened an issue for that: #21

also, reverting to title page as xhtml for now, till content pages are working
@ultrasaurus
Copy link
Owner Author

I think I actually need to understand what's required for EPUB html content before continuing. Love this error from Apple Books with my latest experimental commit:
image

@ultrasaurus
Copy link
Owner Author

using html5 (xhtml) fixed prior error, also simplified template and added code to include non-hbs files in template dir (only tested stylesheet, but other files should be ok)

@ultrasaurus
Copy link
Owner Author

fixes #3

@ultrasaurus ultrasaurus changed the title [WIP] --book with markdown source --book with markdown source Jul 10, 2023
@ultrasaurus ultrasaurus requested a review from enw July 10, 2023 20:31
@ultrasaurus ultrasaurus merged commit 8fd3615 into main Jul 11, 2023
@ultrasaurus ultrasaurus deleted the book-md branch July 11, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant