Skip to content
BigBlueHat edited this page Aug 28, 2018 · 7 revisions
  • Updated to reflect 2018-06-11 term agreements for readingOrder and resources
  • Updated as of the 2018-05-31 infoset/manifest conversations...
  • Updated to reflect 2018-08-28 WPUB draft
<!DOCTYPE html>
<html>
<head>
<title>Entry Page title element MUST not be empty because HTML</title>
<link rel="publication" href="#wpub-manifest">
<script type="application/ld+json" id="wpub-manifest">
{
  "@context": ["https://schema.org", "https://www.w3.org/ns/wp-context"],
  "@type": "CreativeWork",
  "@id": "http://example.com/minimal/",
  "name": "Minimal-ish Web Publication with Reading Order",
  "readingOrder": [
    "a.html",
    {
      "@type": "PublicationLink",
      "url": "b.csv",
      "encodingFormat": "text/csv"
    }
  ],
  "resources": ["font.woff"]
}
</script>
</html>

Earlier work by @dauwhe

As fodder for discussion, here's the code for a minimal WPUB. We haven't said anything about serialization other than it will be JSON, so that's just a guess. Note the HTML file is valid except for rel=publication.

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", "manifest.json"
  ]
}