Skip to content

Commit

Permalink
Fix masterserver README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Zhuravlev committed Nov 4, 2013
1 parent cf0786d commit 7be1865
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions util/master/README.md
Expand Up @@ -7,28 +7,43 @@ You will have to install node.js, doT.js and their dependencies to compile
the serverlist webpage template. the serverlist webpage template.


First install node.js, eg: First install node.js, eg:

# apt-get install nodejs # apt-get install nodejs
# pacman -S nodejs # pacman -S nodejs
# emerge nodejs # emerge nodejs


Then install doT.js and it's dependencies: Then install doT.js and its dependencies:

$ cd ~/code $ cd ~/code
$ git clone https://github.com/olado/doT.git $ git clone https://github.com/olado/doT.git
$ cd doT $ cd doT
$ npm install $ npm install


Or by npm: Or with npm:

$ npm install dot commander mkdirp $ npm install dot commander mkdirp


And finally compile the template: And finally compile the template:

$ cd ~/minetest/util/master $ cd ~/minetest/util/master
$ ~/code/doT/bin/dot-packer -s . -d . $ ~/code/doT/bin/dot-packer -s . -d .

or 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>
<script src="http://servers.minetest.net/list.js"></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>

0 comments on commit 7be1865

Please sign in to comment.