Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
34a02e45
Unverified
Commit
34a02e45
authored
Mar 03, 2017
by
Sean Hammond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify browser extension vs web service
parent
da9a526f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
developing.md
docs/developing.md
+20
-7
No files found.
docs/developing.md
View file @
34a02e45
...
@@ -13,9 +13,6 @@ extension](https://github.com/hypothesis/browser-extension) or setup [a local
...
@@ -13,9 +13,6 @@ extension](https://github.com/hypothesis/browser-extension) or setup [a local
install of the Hypothesis
install of the Hypothesis
service](http://h.readthedocs.io/en/latest/developing/) to host the client.
service](http://h.readthedocs.io/en/latest/developing/) to host the client.
If you are only interested in making changes to the client, developing using
the browser extension is the easiest method.
## Prerequisites
## Prerequisites
You will need:
You will need:
...
@@ -32,7 +29,21 @@ sudo npm install -g gulp-cli
...
@@ -32,7 +29,21 @@ sudo npm install -g gulp-cli
make
make
```
```
## Developing using the browser extension
You now have a development client installed. To run your development client in
a browser you'll need a local copy of either the Hypothesis Chrome extension or
the Hypothesis web service. Follow either the instructions for
[
Running the client from the browser extension
](
#running-the-client-from-the-browser-extension
)
or for
[
Running the client from the web service
](
#running-the-client-from-the-web-service
)
below.
If you're only interested in making changes to the client (and not to the web
service) then running the client from the browser extension is easiest.
## Running the client from the browser extension
This is the currently easiest way to get your development client running in a
browser. It sets you up to make changes to the client and to the Chrome
extension itself, but not to the web service.
1.
Check out the
[
browser
1.
Check out the
[
browser
extension](https://github.com/hypothesis/browser-extension) and follow the
extension](https://github.com/hypothesis/browser-extension) and follow the
...
@@ -54,10 +65,12 @@ make
...
@@ -54,10 +65,12 @@ make
Reloader](https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid?hl=en)
Reloader](https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid?hl=en)
to make this easier.
to make this easier.
If you want to use the browser extension together with a local Hypothesis
## Running the client from the web service
service for storing annotations, you should also follow the steps below.
## Developing using a local Hypothesis web service
This takes longer to setup than
[
Running the client from the browser extension
](
#running-the-client-from-the-browser-extension
)
.
You should follow these steps if you want to make changes to the Hypothesis
web service as well as to the client.
Once you have a local install of the Hypothesis service set up, you can
Once you have a local install of the Hypothesis service set up, you can
configure it to use a local build of the client. In the client repository, run:
configure it to use a local build of the client. In the client repository, run:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment