aboutsummaryrefslogtreecommitdiff
path: root/util/master
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2013-11-04 21:54:25 +0400
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-11-04 21:54:25 +0400
commit7be18657b11f6995adac92648be6e6bcb922d7ee (patch)
tree3c338b81ee6683191d002e269880069df3b48c00 /util/master
parentcf0786dc9d3e900692b54d2654fc8f298600f3bd (diff)
downloadminetest-7be18657b11f6995adac92648be6e6bcb922d7ee.tar.gz
minetest-7be18657b11f6995adac92648be6e6bcb922d7ee.tar.bz2
minetest-7be18657b11f6995adac92648be6e6bcb922d7ee.zip
Fix masterserver README.md
Diffstat (limited to 'util/master')
-rw-r--r--util/master/README.md27
1 files changed, 21 insertions, 6 deletions
diff --git a/util/master/README.md b/util/master/README.md
index 232986deb..411fff3e9 100644
--- a/util/master/README.md
+++ b/util/master/README.md
@@ -7,28 +7,43 @@ You will have to install node.js, doT.js and their dependencies to compile
the serverlist webpage template.
First install node.js, eg:
+
# apt-get install nodejs
# pacman -S nodejs
# emerge nodejs
-Then install doT.js and it's dependencies:
+Then install doT.js and its dependencies:
+
$ cd ~/code
$ git clone https://github.com/olado/doT.git
$ cd doT
$ npm install
-Or by npm:
+Or with npm:
+
$ npm install dot commander mkdirp
And finally compile the template:
+
$ cd ~/minetest/util/master
$ ~/code/doT/bin/dot-packer -s . -d .
+
or
- $ ./node_modules/dot/bin/dot-packer -s . -d .
+
+ $ ~/node_modules/dot/bin/dot-packer -s . -d .
-Embending to any page
+Embedding to any page
----------------------
-<script>var master = {root: 'http://servers.minetest.net/', limit:10, clients_min:1, no_flags:1, no_ping:1, no_uptime:1};</script>
-<script src="http://servers.minetest.net/list.js"></script>
+ <script>
+ var master = {
+ root: 'http://servers.minetest.net/',
+ limit: 10,
+ clients_min: 1,
+ no_flags: 1,
+ no_ping: 1,
+ no_uptime: 1
+ };
+ </script>
+ <script src="http://servers.minetest.net/list.js"></script>