diff --git a/README.md b/README.md index e30817e..92cabbb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ $ npm i shell.js ``` ## Documentation -Visit [shelljs.io](https://shelljs.io). +Read the [documentation](https://davidecaruso.github.io/shell.js). ## Author [Davide Caruso](https://about.me/davidecaruso) diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 127e30a..0000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -shelljs.io \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 3c03118..54b4b69 100644 --- a/docs/index.html +++ b/docs/index.html @@ -105,19 +105,21 @@ plugins: [ function(hook, vm) { hook.afterEach(function(html, next) { + var config = { + user: "guest", + host: "localhost", + typing: { ctor: Typed }, + engine: randomEngine(), + responsive: true, + shadow: true + }; + if (vm.route.path === "/") { next(html); function initCoverShell() { document.getElementById("cover-shell").className = ""; - let shell = Shell("#cover-shell", { - user: "guest", - host: "shelljs.io", - typing: { ctor: Typed }, - engine: randomEngine(), - responsive: true, - shadow: true - }); + var shell = Shell("#cover-shell", config); shell.type([ "sudo -i", @@ -138,14 +140,7 @@ next(html); if (document.getElementById("notfound-shell")) { setTimeout(function() { - Shell("#notfound-shell", { - user: "guest", - host: "shelljs.io", - typing: { ctor: Typed }, - engine: randomEngine(), - responsive: true, - shadow: true - }).type([ + Shell("#notfound-shell", config).type([ { input: "curl -I '" + window.location.href + "'", output: function() { return { @@ -171,7 +166,7 @@