Commit bd3ba995 authored by Alexandros Georgantas's avatar Alexandros Georgantas

Dynamic path of fonts

parent 8ec93d8f
......@@ -43,7 +43,7 @@ class HTMLEPUB {
if (fontsRoot !== '') {
fs.readdirSync(fontsRoot).forEach(file => {
const source = `${process.cwd()}/static/fonts/${file}`
const source = `${fontsRoot}/${file}`
const target = `styles/fonts/${file}`
const mimetype = 'application/vnd.ms-opentype'
const id = file
......@@ -271,7 +271,10 @@ class HTMLEPUB {
section: {
'@data-type': 'toc',
header: {
h1: 'Contents'
h1: {
'@class': 'ct',
'#text': 'Contents'
}
},
nav: {
'@epub:type': 'toc',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment