Skip to content

Commit

Permalink
Restructure source files, switch to Mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartlidge committed Mar 20, 2019
1 parent 00f4725 commit 24ce7e0
Show file tree
Hide file tree
Showing 25 changed files with 3,983 additions and 911 deletions.
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
root = true

[*]
indent_style = tab
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
13 changes: 8 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"env": {
"node": "true",
"jasmine": "true"
},
"extends": "eslint:recommended"
"env": {
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6
}
}
100 changes: 0 additions & 100 deletions constituents/markup.js

This file was deleted.

175 changes: 0 additions & 175 deletions constituents/structural.js

This file was deleted.

1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s1.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s1'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s2.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s2'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s3.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s3'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s4.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s4'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s5.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s5'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s6.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s6'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s7.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s7'></div>
Expand Down
1 change: 0 additions & 1 deletion example/example-EPUB-files/OEBPF/content/s8.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<link rel='schema.DCTYPE' href='http://purl.org/dc/dcmitype/' hreflang='en' />
<link rel='schema.DCAM' href='http://purl.org/dc/dcam/' hreflang='en' />
<link rel='stylesheet' type='text/css' href='../css/ebook.css' />
<base href='.' />
</head>
<body>
<div id='s8'></div>
Expand Down
4 changes: 2 additions & 2 deletions example/example-EPUB-files/OEBPF/ebook.opf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package xmlns='http://www.idpf.org/2007/opf' version='2.0' unique-identifier='BookId'>
<metadata xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:opf='http://www.idpf.org/2007/opf'>
<dc:title>Unnamed Document (My Series #1)</dc:title>
<dc:identifier id='BookId' opf:scheme='URI'>1451842502345</dc:identifier>
<dc:identifier id='BookId' opf:scheme='URI'>278-123456789</dc:identifier>
<dc:language>en</dc:language>
<dc:creator opf:role='aut' opf:file-as='Anonymous'>Anonymous</dc:creator>
<dc:publisher>My Fake Publisher</dc:publisher>
<dc:description>A test book.</dc:description>
<dc:coverage></dc:coverage>
<dc:source>http://www.kcartlidge.com</dc:source>
<dc:date opf:event='publication'>2000-12-31</dc:date>
<dc:date opf:event='modification'>2016-01-03</dc:date>
<dc:date opf:event='modification'>2019-03-20</dc:date>
<dc:rights>Anonymous, 1980</dc:rights>
<dc:subject>Non-Fiction</dc:subject>
<dc:subject>Sample</dc:subject>
Expand Down
2 changes: 1 addition & 1 deletion example/example-EPUB-files/OEBPF/navigation.ncx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!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/'>
<head>
<meta name='dtb:uid' content='1451842502345'/>
<meta name='dtb:uid' content='278-123456789'/>
<meta name='dtb:depth' content='1'/>
<meta name='dtb:totalPageCount' content='0'/>
<meta name='dtb:maxPageNumber' content='0'/>
Expand Down
Binary file modified example/example.epub
Binary file not shown.
Loading

0 comments on commit 24ce7e0

Please sign in to comment.