Skip to content
Dave Cramer edited this page May 8, 2018 · 7 revisions

As fodder for discussion, here's the code for a minimal WPUB. Serialization details TK.

Folder structure:

minimal
  index.html
  manifest.json

Content of index.html

<!DOCTYPE html>
<html>
  <head>
    <title>.</title>
    <link href="manifest.json" rel="publication"/>
  </head>
  <body>
    <p>Call me Ishmael.
</html>

Content of manifest.json

{
  "address": "www.example.com/minimal/",
  "reading-order": [
    "index.html"
  ],
  "reading-progression": "ltr",
  "resources": [
    "index.html"
  ]
}