otherjoel / perfect-edition-pollen Goto Github PK
View Code? Open in Web Editor NEWA Pollen port of @robinsloan’s “Perfect Edition” ebook template
License: MIT License
A Pollen port of @robinsloan’s “Perfect Edition” ebook template
License: MIT License
I've downloaded the code, installed Racket and Pollen, and then did as the README.MD file says, i.e. raco pollen render book.html. Everything works fine, but the book cover doesn't appear. When I checked book.html there was no image quoted on this line: . When I check book.poly.pmd this line is present: ◊(define-meta cover-image "img/king-cover.jpg"). If I edit book.html and include the name of the image file, everything works fine. Any thoughts?
My other problem, is that when I try to create the ebook, I get the following error:
C:\Webmaster,pnfs.org.uk\web\projects\books\original>raco pollen render book.epub
pollen: rendering book.epub
pollen: rendering /book.poly.pmd as epub
The system cannot find the path specified.
Error building epub file!
context...:
body of 'g5781
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:411:0: render-markup-or-markdown-source
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:337:25: render
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\cache-utils.rkt:124:2: generate-dest-file
C:\Program Files\Racket\collects\file\cache.rkt:63:2: fetch-and-continue
C:\Program Files\Racket\collects\racket\contract\private\arrow-val-first.rkt:555:3
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\cache-utils.rkt:114:0: cache-ref!
C:\Program Files\Racket\collects\racket\private\more-scheme.rkt:377:2: hash-ref!
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:277:0: render-to-file-base
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:183:25: render-batch
C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\external\logging.rkt:46:0: with-intercepted-logging
body of (submod "C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\command.rkt" raco)
C:\Program Files\Racket\collects\raco\raco.rkt:41:0
body of "C:\Program Files\Racket\collects\raco\raco.rkt"
body of "C:\Program Files\Racket\collects\raco\main.rkt"
Again, any thoughts
I've got this example working more or less as I want. However, I'd like to include some images amongst the text. Can someone suggest how I can do that? Many thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.