Highlighter
Functionality for OpenStax note taking features including:
- serializing highlights
- deserializing highlights
- versioned serialization strategies
- extracting highlighted content
- loading wrappers for styling highligted content
- managing focus/scrolling to highlights
Setup
install nvm
nvm install
npm install -g yarn
yarn
To run in development
run these in separate terminals as you develop
yarn watch:ts
yarn watch:test
reference changes from another project
do yarn link
yarn watch
to deploy
yarn build:clean
yarn publish [--minor|--major|--patch]
git push origin v$(yarn -s current)
open https://github.com/openstax/highlighter/compare/master...v$(yarn -s current)?expand=1
Running the examples with docker
docker-compose run build
docker-compose up serve
Deploy examples to gh-pages
yarn build:clean && yarn deploy:examples