From dd006a9e7a8048df3873f2fce55f0b755ee66c60 Mon Sep 17 00:00:00 2001 From: artemave Date: Mon, 17 Jun 2019 17:04:07 +0200 Subject: [PATCH] Docs site tweaks --- docs/_sidebar.md | 4 ++++ docs/index.html | 8 ++++++-- docs/introduction.md | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 43bf1a5..a74180e 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -1,3 +1,7 @@ - [Introduction](introduction) - [Quick start](quickstart) - [API Reference](api) +- **Links** +- [![Code](https://icongr.am/feather/code.svg?size=16&color=808080)Demo Sandbox](https://codesandbox.io/s/2x8kv8voyn?from-embed) +- [![Github](https://icongram.jgog.in/simple/github.svg?color=808080&size=16)Github](https://github.com/featurist/browser-monkey) +- [![NPM](https://icongram.jgog.in/simple/npm.svg?colored&size=16)NPM](https://www.npmjs.com/package/browser-monkey) diff --git a/docs/index.html b/docs/index.html index 0b4ae1d..7aedba7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ - +
@@ -28,11 +28,15 @@ noData: 'No Results!', depth: 6, hideOtherSidebarContent: false, - } + }, + ga: window.location.hostname === 'localhost' ? '' : 'UA-34932868-7' } + + + diff --git a/docs/introduction.md b/docs/introduction.md index 4e8da77..f9b1d51 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -11,7 +11,9 @@ Browser Monkey is a DOM assertion library. It helps you write framework agnostic - can simulate text entry and clicks. - returns promises that resolve when the elements are found. -## Examples +## Example + +_Due to recent Codesandbox changes, this example currently does not work in the browser (details https://github.com/codesandbox/codesandbox-client/issues/2019). You can still download the project and run it locally._ ```js import createMonkey from "browser-monkey/create";