This is used to store and update just the build directory of annotate-client in order to deploy on the web server.
All Pull Requests should go to that other repo first, unless it's an update to this README. Any PRs on this repo should include a link back to that other repo's PR or commit, and also please describe what changes you made. Updates to this code should, in most cases, simply be a copy of the build
directory from annotate-client following the steps below.
You'll need to obtain an OAuth Client ID registered with the "h" service. Read the Hypothesis API document on Authorization to find out how to get one.
(Or if on the Wayback Team, ask @carlg)
-
Get the annotate-client source code. You should be on the iarchive branch.
git clone [email protected]:internetarchive/annotate-client.git
-
Check that these dependencies are installed:
node npm gulp yarn tox
-
Double check that you don't have
build
listed in your global.gitignore
file in your home directory. -
Run
npm install
-
Build by running
./scripts/build-app OATH_CLIENT_ID
-
Copy the
build
directory from annotate-client into the root of annotate-client-build repo, copying over what was there previously:cp -fRp build ../annotate-client-build/
-
git commit
thengit push
-
Test it at: https://archive.org/services/context/pdf/viewer/web/viewer.html?file=pdfs/report.pdf
-
Modify Source.
GOTO 5
To annotate the PDF using the Default Viewer, add annotate=yes
like so:
https://archive.org/services/context/pdf/viewer/web/viewer.html?annotate=yes&file=pdfs/report.pdf