OPDS generator updated with Statically.io instead of GitHack.com (bad CORS allow-origin config)
MODIFY
readium-build-tools/genOPDS.js
readium-build-tools/genOPDS.js
+// node genOPDS.js idpf_samples.opds IDPF epub3-samples master 30
+// node genOPDS.js epub_testsuite.opds IDPF epub-testsuite master content/30
+// node genOPDS.js epub_tests_a11y.opds daisy epub-accessibility-tests master content
+
var fs = require('fs');
var path = require('path');
@@ -381,7 +385,7 @@ var processListItem = function(list, i) {
opdsXml += '</author>';
opdsXml += '\n';
- var fullUrl = 'https://raw.githack.com/'+args[1]+'/'+args[2]+'/'+args[3]+'/'+listItem.path;
+ var fullUrl = 'https://cdn.statically.io/gh/'+args[1]+'/'+args[2]+'/'+args[3]+'/'+listItem.path;
var escapedURL = encodeURI(escapeMarkupEntitiesInUrl(fullUrl));
opdsXml += '<link type="application/epub" href="'+escapedURL+'" rel="http://opds-spec.org/acquisition"/>';
opdsXml += '\n';

MODIFY
readium-build-tools/package.json
readium-build-tools/package.json
],
"dependencies": {
"concurrently": "^3.5.0",
+ "http-server": "github:danielweck/http-server#master",
"npm-run-all": "^4.1.2",
- "opener": "^1.4.3",
- "http-server": "github:danielweck/http-server#master"
+ "opener": "^1.4.3"
},
"devDependencies": {
"requirejs": "^2.3.5",
"watch": "^1.0.2",
"jshint": "^2.9.5",
"glob": "^7.1.2",
+ "xml2js": "^0.4.22",
"yuidocjs": "^0.10.2"
},
"scripts": {

OPDS generator updated with Statically.io instead of GitHack.com (bad CORS allow-origin config)