Skip to content

Commit 415e23d

Browse files
committed
updates tryitout and docs
1 parent 2d9d4c8 commit 415e23d

File tree

6 files changed

+4273
-7
lines changed

6 files changed

+4273
-7
lines changed

tryitout.js renamed to .tryitout

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
body: `
1010
<div style="width:80%;position: absolute;left: 50%;top: 50%;-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);">
1111
<h3 class="text-center" style="font-weight: 100"> ${description} </h3>
12-
<pre style="background-color:rgb(7, 7, 7);color:rgb(228, 228, 228);white-space: pre;text-align:left;width: auto;display:inline-block;">
12+
<pre id="code" style="white-space: pre;text-align:left;width: auto;display:inline-block;">
1313
const Server = require('node-git-server');
1414
const repo = new Server(path.resolve(__dirname, 'tmp'), {
1515
autoCreate: true,
@@ -33,5 +33,10 @@ module.exports = {
3333
<div class="text-black">Made with ☕️ by <a href="http://www.gabrielcsapo.com">@gabrielcsapo</a></div>
3434
`,
3535
template: 'landing',
36-
output: './docs'
36+
output: './docs',
37+
externals: [
38+
"./docs/krayon.css",
39+
"./docs/krayon.min.js",
40+
"./docs/main.js"
41+
]
3742
};

docs/index.html

Lines changed: 4239 additions & 2 deletions
Large diffs are not rendered by default.

docs/krayon.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.string {
2+
color: #032f62
3+
}
4+
.keyword {
5+
color: #d73a49
6+
}
7+
.operator {
8+
color: #d73a49
9+
}
10+
.function {
11+
color: #005cc5
12+
}
13+
.class {
14+
color: #6f42c1
15+
}
16+
.comment {
17+
color: #6a737d
18+
}

docs/krayon.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
window.onload = function() {
2+
var Krayon = require('krayon');
3+
4+
document.querySelector('#code').innerHTML = Krayon(document.querySelector('#code').innerHTML);
5+
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"devDependencies": {
3535
"async": "^2.6.0",
3636
"docdash": "^0.4.0",
37-
"eslint": "^4.11.0",
37+
"eslint": "^4.15.0",
3838
"jsdoc": "^3.5.5",
39-
"tap": "^10.7.3",
39+
"tap": "^11.0.1",
4040
"tape": "^4.8.0",
41-
"tryitout": "^1.2.0"
41+
"tryitout": "^2.0.6"
4242
}
4343
}

0 commit comments

Comments
 (0)