Create example docs

This commit is contained in:
Amish Shah
2016-08-23 00:34:42 +01:00
parent 51a399d558
commit 50dcececfb
5 changed files with 44 additions and 2 deletions

10
docs/custom/ping_pong.js Normal file
View File

@@ -0,0 +1,10 @@
const fs = require('fs-extra');
module.exports = {
category: 'Examples',
name: 'Ping Pong',
data:
`\`\`\`js
${fs.readFileSync('./docs/custom/examples/ping_pong.js').toString('utf-8')}
\`\`\``,
};