Initial Release
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
|
||||
<rootfiles>
|
||||
<rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>
|
||||
</rootfiles>
|
||||
</container>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0">
|
||||
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
|
||||
<dc:title>{{ .ContentTitle }}</dc:title>
|
||||
<dc:language>en</dc:language>
|
||||
<dc:identifier id="BookID">urn:uuid:{{ .ContentUUID }}</dc:identifier>
|
||||
<dc:date>{{ .ContentDate }}</dc:date>
|
||||
<dc:creator>bakonpancakz</dc:creator>
|
||||
</metadata>
|
||||
<manifest>
|
||||
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
|
||||
{{ range .ContentImages }}
|
||||
<item id="{{ .ID }}" href="images/{{ .Base }}.jpeg" media-type="{{ .Type }}"/>
|
||||
{{ end }}
|
||||
{{ range .ContentImages }}
|
||||
<item id="page{{ .ID }}" href="pages/{{ .Base }}.xhtml" media-type="application/xhtml+xml"/>
|
||||
{{ end }}
|
||||
</manifest>
|
||||
<spine toc="ncx">
|
||||
{{ range .ContentImages }}
|
||||
<itemref idref="page{{ .ID }}"/>
|
||||
{{ end }}
|
||||
</spine>
|
||||
</package>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Page {{ .ID }}</title>
|
||||
<style type="text/css">
|
||||
img { max-width: 100%; max-height: 100%; }
|
||||
body { margin: 0; padding: 0; text-align: center; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<img src="../images/{{ .Base }}.jpeg" alt="Page {{ .ID }}" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
|
||||
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
|
||||
<head>
|
||||
<meta name="dtb:uid" content="urn:uuid:{{ .ContentUUID }}"/>
|
||||
<meta name="dtb:depth" content="1"/>
|
||||
<meta name="dtb:totalPageCount" content="0"/>
|
||||
<meta name="dtb:maxPageNumber" content="0"/>
|
||||
</head>
|
||||
<docTitle>
|
||||
<text>{{ .ContentTitle }}</text>
|
||||
</docTitle>
|
||||
<navMap>
|
||||
{{ range .ContentImages }}
|
||||
<navPoint id="navpoint-{{ .ID }}" playOrder="{{ .ID }}">
|
||||
<navLabel>
|
||||
<text>Page {{ .ID }}</text>
|
||||
</navLabel>
|
||||
<content src="pages/page{{ .ID }}.xhtml"/>
|
||||
</navPoint>
|
||||
{{ end }}
|
||||
</navMap>
|
||||
</ncx>
|
||||
Reference in New Issue
Block a user