Comments (4)
That is actually a very cool idea. I will check it out, and see if we can automatically generate EPUB and PDFs.
from restcookbook.
I've checked the extension and it seems to generate an EPUB. However, it seems that the epub is invalid. I figured that the content.opf file that is added to the epub is actually empty.
It's probably me doing something not right, but I'll check https://github.com/lmullen/jekyll-ebook, to see if that will work.
from restcookbook.
jekyll-ebook doesn't seem to be really working. However, I got the jekyll-epub working with some modifcations to the epub.rb in the library:
157c157,159
< File.open( File.join( self.dest, tmpl ), "w+" ).puts template_content
f = File.open( File.join( self.dest, tmpl ), "w+" ); f.puts template_content f.close()
Since the generated files weren't closed, they weren't flushed to disk yet, resulting in empty files on disk. These empty files were zipped later on, and it's not until later that the system flushed the data to disk. In result the files looks correctly on disk, but were empty in the epub-zip file. This is fixed by actually closing the files, which results in a flush so they are properly zipped. I don't know if this is an jekyll-epub issue, but if so, it's a simple patch I guess.
from restcookbook.
So, in order to get this working:
- gem install jekyll-epub
- patch the epub.rb file
- run jekyll-epub so both the site and epub gets generated
- add a link to the site with the epub?
Initial work can be found at https://github.com/jaytaph/restcookbook/tree/wip/epub
from restcookbook.
Related Issues (19)
- twitter bootstrap HOT 3
- PATCH requires a diff media type HOT 7
- Site Link HOT 1
- Change examples to full details
- URIs in HATEAOS post HOT 4
- Code-on-demand HOT 4
- Will u a add a license to the book? HOT 2
- Isn't PATCH idempotent? HOT 1
- no links HATEOAS on Richardson Maturity Model page
- "fork me on github" is not accessible HOT 1
- Incorrect capitalization of Content-Type header HOT 1
- the use of the Location header with HTTP 202 is not actually supported
- Please clarify the license of restcookbook
- Possible mistake in put-vs-post
- HTTPS cert on your website HOT 3
- Links on the home page not working correctly. HOT 5
- PATCH is said to be and not be idempotent HOT 3
- OAuth2 is not draft anymore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restcookbook.