Skip to content

Commit f114632

Browse files
committed
updates readme and description as well as docs page
1 parent a7d383f commit f114632

File tree

6 files changed

+19
-29
lines changed

6 files changed

+19
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-git-server
22

3-
> A configurable git server written in Node.js
3+
> 🎡 A configurable git server written in Node.js
44
55
[![Npm Version](https://img.shields.io/npm/v/node-git-server.svg)](https://www.npmjs.com/package/node-git-server)
66
[![Build Status](https://travis-ci.org/gabrielcsapo/node-git-server.svg?branch=master)](https://travis-ci.org/gabrielcsapo/node-git-server)

docs/code/git.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ <h1 class="page-title">git.js</h1>
325325
service: service,
326326
}, req, res);
327327
}
328-
}
328+
};
329329

330330
// check if the repo is authenticated
331331
if(this.authenticate) {
@@ -336,7 +336,7 @@ <h1 class="page-title">git.js</h1>
336336
if(promise instanceof Promise) {
337337
return promise
338338
.then(next)
339-
.catch(next)
339+
.catch(next);
340340
}
341341
});
342342
} else {

docs/code/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Git.html"
4747

4848
<section class="readme">
4949
<article><h1>node-git-server</h1><blockquote>
50-
<p>A configurable git server written in Node.js</p>
50+
<p>🎡 A configurable git server written in Node.js</p>
5151
</blockquote>
5252
<p><a href="https://www.npmjs.com/package/node-git-server"><img src="https://img.shields.io/npm/v/node-git-server.svg" alt="Npm Version"></a>
5353
<a href="https://travis-ci.org/gabrielcsapo/node-git-server"><img src="https://travis-ci.org/gabrielcsapo/node-git-server.svg?branch=master" alt="Build Status"></a>
54-
<a href="https://lcov-server.herokuapp.com/coverage/github%2Ecom/gabrielcsapo/node-git-server"><img src="https://lcov-server.herokuapp.com/badge/github%2Ecom/gabrielcsapo/node-git-server.svg" alt="Coverage Status"></a>
55-
<a href="https://david-dm.org/gabrielcsapo/node-git-server"><img src="https://david-dm.org/gabrielcsapo/node-git-server.svg" alt="Dependency Status"></a>
56-
<a href="https://david-dm.org/gabrielcsapo/node-git-server#info=devDependencies"><img src="https://david-dm.org/gabrielcsapo/node-git-server/dev-status.svg" alt="devDependency Status"></a>
54+
<a href="https://lcov-server.gabrielcsapo.com/coverage/github%2Ecom/gabrielcsapo/node-git-server"><img src="https://lcov-server.gabrielcsapo.com/badge/github%2Ecom/gabrielcsapo/node-git-server.svg" alt="Coverage Status"></a>
55+
<a href="https://starbuck.gabrielcsapo.com/github/gabrielcsapo/node-git-server"><img src="https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/node-git-server/status.svg" alt="Dependency Status"></a>
56+
<a href="https://starbuck.gabrielcsapo.com/github/gabrielcsapo/node-git-server#info=devDependencies"><img src="https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/node-git-server/dev-status.svg" alt="devDependency Status"></a>
5757
<a href=""><img src="https://img.shields.io/npm/dt/node-git-server.svg" alt="npm"></a>
5858
<a href=""><img src="https://img.shields.io/npm/dm/node-git-server.svg" alt="npm"></a></p>
5959
<h1>Install</h1><pre class="prettyprint source"><code>npm install node-git-server</code></pre><h1>Usage</h1><pre class="prettyprint source lang-javascript"><code>const Server = require('node-git-server');

docs/index.html

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "node-git-server",
33
"version": "0.3.1",
4-
"description": "A configurable git server written in Node.js",
4+
"description": "🎡 A configurable git server written in Node.js",
55
"author": "Gabriel J. Csapo <[email protected]>",
66
"license": "MIT",
77
"bugs": {
@@ -29,10 +29,10 @@
2929
"devDependencies": {
3030
"async": "^2.5.0",
3131
"docdash": "^0.4.0",
32-
"eslint": "^4.8.0",
32+
"eslint": "^4.10.0",
3333
"jsdoc": "^3.5.5",
3434
"tap": "^10.7.2",
3535
"tape": "^4.8.0",
36-
"tryitout": "^0.3.3"
36+
"tryitout": "^0.3.8"
3737
}
3838
}

tryitout.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
const { name, description } = require('./package.json');
2+
13
module.exports = {
2-
title: 'node-git-server',
4+
title: name,
35
nav: {
46
Source: 'https://github.com/gabrielcsapo/node-git-server',
57
Docs: './code/index.html'
68
},
79
body: `
8-
<div style="width:80%;position:absolute;top:50%;transform:translateY(-50%);">
9-
<h3 class="text-center" style="font-weight: 100"> A configurable git server written in Node.js </h3>
10-
<pre style="white-space: pre; width: 80%; margin: 0 auto;">
10+
<div style="width:80%;position: absolute;left: 50%;top: 50%;-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);">
11+
<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;">
1113
const Server = require('node-git-server');
1214
const repo = new Server(path.resolve(__dirname, 'tmp'), {
1315
autoCreate: true,
@@ -18,18 +20,6 @@ module.exports = {
1820
});
1921
const port = process.env.PORT || 7005;
2022
21-
repos.on('push', (push) =&gt; {
22-
console.log('push ' + push.repo + '/' + push.commit
23-
+ ' (' + push.branch + ')'
24-
);
25-
push.accept();
26-
});
27-
28-
repos.on('fetch', (fetch) =&gt; {
29-
console.log('fetch ' + fetch.commit);
30-
fetch.accept();
31-
});
32-
3323
repos.listen(port, () =&gt; {
3424
console.log(\`node-git-server running at http://localhost:{port}\`)
3525
});

0 commit comments

Comments
 (0)