-
Notifications
You must be signed in to change notification settings - Fork 34
Home
Aferdita edited this page Jan 28, 2020
·
11 revisions
Welcome to the R2D2BC wiki!
Configuring NPM for use with GitHub Package Registry
Installing a package from GitHub Package Registry
Install from the command line:
$ npm install @d-i-t-a/[email protected]
Install via package.json:
"@d-i-t-a/reader": "1.0.3"
- Initialize Reader
-
Injectables
- Readium CSS
- Footnotes
- Glossary
- Fonts
-
Reader API
- User Settings API
- Navigator API
- Bookmark API
- Callback API
-
Modules
- Bookmarks
Clone this repo, then
npm install
Examples demonstrate how this webpub-viewer can be used:
- with assets served by r2-streamer-js (in-memory model);
The examples/streamed
folder contains the webpub-viewer (readers/viewer
folder), the r2-streamer-js (ES6/ES2015 bundle in server
folder) and example files (epubs
folder).
In this example, assets are served by the r2-streamer-js (in-memory model).
This example runs on http
.
- Update the web reader files if needed (
npm run examples
) - Start the server with
npm run streamed
npm run build && npm run examples && npm run streamed
- Open http://localhost:4444 in the browser
- Pick a publication
- You can see its manifest (
json
) and open it in the webpub-viewer of your choice - To stop the server, type
ctrl + c
Icons used in the shared version are part of the official Material Design Icons collection (outline version).
- GitHub Package
- Initialize Reader
-
Injectables
- Readium CSS
- Footnotes
- Glossary
- Fonts
- Pagebreak
- Injectable Context Menu
-
Reader API
- User Settings API
- Navigator API
- Bookmark API
- Annotation API
- TTS API
- Search API
- Callback API
-
Modules
- Bookmarks
- Annotations
- Search
- TTS