Skip to content

Commit

Permalink
Set up a redirect to list of devices (#1204)
Browse files Browse the repository at this point in the history
This set's up a netlify redirect
for a readable link to list of devices.

Signed-off-by: Zabil Cheriya Maliackal <zabilcm@gmail.com>
  • Loading branch information
zabil committed Apr 20, 2020
1 parent 6c0bf46 commit a45f903
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/taiko.js
Expand Up @@ -118,7 +118,7 @@ if (isTaikoRunner(processArgv[1])) {
.option('-w, --wait-time <time in ms>', 'runs script with provided delay\n', parseInt)
.option(
'--emulate-device <device>',
'Allows to simulate device viewport. Visit https://github.com/getgauge/taiko/blob/master/lib/devices.js for all the available devices\n',
'Allows to simulate device viewport. Visit https://docs.taiko.dev/devices for all the available devices\n',
setupEmulateDevice,
)
.option(
Expand Down
2 changes: 1 addition & 1 deletion lib/taiko.js
Expand Up @@ -574,7 +574,7 @@ module.exports.emulateNetwork = async (networkType) => {
* @example
* await emulateDevice('iPhone 6')
*
* @param {string} deviceModel - See [device model](https://github.com/getgauge/taiko/blob/master/lib/data/devices.js) for a list of all device models.
* @param {string} deviceModel - See [device model](https://docs.taiko.dev/devices) for a list of all device models.
*
* @returns {Promise}
*/
Expand Down
7 changes: 7 additions & 0 deletions netlify.toml
@@ -0,0 +1,7 @@
[build]
command = "npm run doc"
publish = "docs/site"

[[redirects]]
from = "/devices"
to = "https://github.com/getgauge/taiko/blob/master/lib/data/devices.js"

0 comments on commit a45f903

Please sign in to comment.