-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strategy for Enabling/Disabling Plugins #658
Comments
As per last week's conference call:
We are currently testing this strategy live: |
The TravisCI ad-hoc script to enable the Hypothesis plugin is super simple: |
The Hypothesis plugin was deactivated in this commit: |
This is working correctly. ...and the Hypothesis plugin is activated at runtime in the cloud reader app, as expected: |
This issue is a Discussion
For quite a while Readium has supported a plugin framework centered on JavaScript. Although present, it has not been first-class citizen. One plugin, the Highlighter, was written early on, but there is no associated "bookmarking or annotation" plugin using it.
There is some usage (we think) of the highlight plugin and the framework out in the wild, but we have little solid evidence of how or how much it used.
Meanwhile, EvidentPoint worked with hypothes.is to enable their bookmarking/annotation support within the CloudReader. It is based on a wholly different framework for highlighting, which is not compatible with the existing framework.
So the question has arisen, how should Readium support Hypothes.is and/or the existing Highlighter plugin (which is disabled by default)?
At present, in the develop branch, in preparation for release 0.28 (which is intended to support Hypothes.is) the Hypothes.is plugin is enabled by default and the Readium Highlighter is disabled. At first, this seemed OK, we provide instructions on how to disable the Hypothes.is plugin so anyone deploying the CloudReader who has their own highlighter and/or doesn't want the Hypothes.is support can do so.
Unfortunately, it is a little more complex than that. As it stands the Hypothes.is support, as part of readium-shared-js, will be built and integrated into not only the CloudReader but also the Chrome app and the native SDK apps (the Launchers). It won’t work in the Chrome app or the Launchers but the code is there and even the UI.
This is clearly unacceptable, but how should it work? After some discussion, it seems that the requirements should be:
The intent of this issue (discussion) is to elucidate how the above requirements can be met for the 0.28 release.
Related issue(s) and/or pull request(s)
#657
Test file(s)
None
Product
All
Additional information
None?
The text was updated successfully, but these errors were encountered: