-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from hypothesis/remove-firstrun-config-option
Replace "firstRun" config option with "openSidebar" and "openLoginForm"
- Loading branch information
Showing
6 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Configuring the sidebar | ||
======================= | ||
|
||
The Hypothesis sidebar can be configured by providing a settings object in the | ||
body of the hosting page: | ||
|
||
```html | ||
<script type="application/json" class="js-hypothesis-config"> | ||
{ | ||
"openSidebar": true | ||
} | ||
</script> | ||
<script async src="https://hypothes.is/embed.js"></script> | ||
``` | ||
|
||
**N.B.** The body of the `.js-hypothesis-config` tag must be [valid | ||
JSON](http://jsonlint.com/) -- invalid JSON will cause the entire config object | ||
to be ignored. | ||
|
||
Config keys | ||
----------- | ||
|
||
### `openLoginForm` | ||
|
||
_Boolean_. Controls whether the login panel is automatically opened on startup, | ||
as if the user had clicked "Log in" themselves. | ||
|
||
### `openSidebar` | ||
|
||
_Boolean_. Controls whether the sidebar opens automatically on startup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters