Skip to content

Commit 7be1865

Browse files
author
Ilya Zhuravlev
committedNov 4, 2013
Fix masterserver README.md
1 parent cf0786d commit 7be1865

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed
 

‎util/master/README.md

+21-6
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,43 @@ You will have to install node.js, doT.js and their dependencies to compile
77
the serverlist webpage template.
88

99
First install node.js, eg:
10+
1011
# apt-get install nodejs
1112
# pacman -S nodejs
1213
# emerge nodejs
1314

14-
Then install doT.js and it's dependencies:
15+
Then install doT.js and its dependencies:
16+
1517
$ cd ~/code
1618
$ git clone https://github.com/olado/doT.git
1719
$ cd doT
1820
$ npm install
1921

20-
Or by npm:
22+
Or with npm:
23+
2124
$ npm install dot commander mkdirp
2225

2326
And finally compile the template:
27+
2428
$ cd ~/minetest/util/master
2529
$ ~/code/doT/bin/dot-packer -s . -d .
30+
2631
or
27-
$ ./node_modules/dot/bin/dot-packer -s . -d .
32+
33+
$ ~/node_modules/dot/bin/dot-packer -s . -d .
2834

2935

30-
Embending to any page
36+
Embedding to any page
3137
----------------------
3238

33-
<script>var master = {root: 'http://servers.minetest.net/', limit:10, clients_min:1, no_flags:1, no_ping:1, no_uptime:1};</script>
34-
<script src="http://servers.minetest.net/list.js"></script>
39+
<script>
40+
var master = {
41+
root: 'http://servers.minetest.net/',
42+
limit: 10,
43+
clients_min: 1,
44+
no_flags: 1,
45+
no_ping: 1,
46+
no_uptime: 1
47+
};
48+
</script>
49+
<script src="http://servers.minetest.net/list.js"></script>

0 commit comments

Comments
 (0)
Please sign in to comment.