- 15 Mar, 2017 13 commits
-
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
As part of an effort to make it clearer how the client uses Angular, register UI components with `component()` instead of `directive()`. Components in Angular 1.x [1] are essentially directives with "best practices" defaults set (restricted to elements, isolated scope, bound to controller) and deprecated/discouraged features of $compile disallowed. These defaults/restrictions match how we are already using Angular for most UI components. [1] See https://docs.angularjs.org/guide/component
-
- 14 Mar, 2017 3 commits
-
-
Sean Hammond authored
Correct the title of the documentation
-
Sean Hammond authored
-
Robert Knight authored
Flesh out the docs for building the docs
-
- 13 Mar, 2017 8 commits
-
-
Sean Hammond authored
Fix client failing to load on pages that define `self`
-
Sean Hammond authored
Make these more user friendly and helpful, less knowledge assumed, but still very terse.
-
Robert Knight authored
Update README
-
Sean Hammond authored
-
Sean Hammond authored
Add embedding label
-
Sean Hammond authored
This is so the h docs can cross-ref to this page using intersphinx.
-
Sean Hammond authored
Now that this git repo has Sphinx docs published at http://h.readthedocs.io/projects/client/, the README should link to those. I also reworded a bit to make it more similar to the intro in the Sphinx docs.
-
Robert Knight authored
Reorganise docs
-
- 10 Mar, 2017 11 commits
-
-
Sean Hammond authored
-
Sean Hammond authored
Change the docs directory (which was just a directory of markdown files) to a reStructuredText / Sphinx project. Docs are reorganized by audience. Some docs (for example embedding.rst) are copied over from the h repo's docs. These will be removed from the h repo after this commit is merged.
-
Sean Hammond authored
These are documentation files intended for publishers who're embedding h in their sites, they're being removed from the h repo into this client repo. There may be some reStructuredText syntax in these files that doesn't work on GitHub (only in Sphinx or only on readthedocs) but these client docs are about to be moved over to Sphinx/readthedocs anyway.
-
Sean Hammond authored
Keep all the docs for publishers (i.e. people who run websites that publish content, and want to embed the h client into their site) together in one docs/publishers folder.
-
Sean Hammond authored
Edit assetRoot and sidebarAppUrl docs
-
Robert Knight authored
Fix client failing to load on pages that define `self` to be something other than `window`. When AnnotatorJS is bundled by browserify, it is first processed by browserify-shim* which adds references to a variable called 'global', which exists in Node but not the browser. Browserify then processes the result and assigns `global` to the value of the first variable from ['global', 'self', 'window'] which is already defined. https://github.com/hypothesis/h/pull/3385 fixed the problem when the page defines a variable called 'global' that is not an alias for 'window' by reducing this list to ['self', 'window']. This still leaves pages that define 'self'. This commit fixes the problem by always making `global` (within CommonJS modules) always be assigned the value of `window`. * browserify-shim deals with the fact that AnnotatorJS 1.2.x is not a CommonJS module and exports its entry point as `window.Annotator`.
-
Robert Knight authored
-
Robert Knight authored
-
Sean Hammond authored
- Clarify that if any service is specified it's used _instead of_, not in addition to, the default hypothes.is service - Add note that services settings are still experimental - Edit the text for clarity I still don't think the `authority` setting is very well described here, but I think that setting may be going away in the future, so I'm not going to try and document it better right now. The `grantToken` setting could still do with much better docs as well.
-
Sean Hammond authored
Move the docs for these two config settings into their own section in the docs, and note that they're experimental.
-
Robert Knight authored
Rename the onLogin callback to onLoginRequest
-
- 09 Mar, 2017 4 commits
-
-
Nick Stenning authored
Remove sourcemap link from boot script
-
Robert Knight authored
The previous regex would have matched any line that happened to contain the text 'sourceMappingURL'.
-
Nick Stenning authored
The trigger for invoking this callback function is the user requesting that a login flow be started. In other words, at the point this callback is invoked, a login has not occurred, and indeed may never occur if the user does not complete the login flow. As such, it seems clearer to have this callback called "onLoginRequest" rather than "onLogin." Fixes #274.
-
Robert Knight authored
Add docs for on login
-
- 08 Mar, 2017 1 commit
-
-
Sean Hammond authored
"Keys" here is programmer jargon, and hopefully the client configuration documented on this page should be usable by people who aren't programmers.
-