minetest/util/master/README.md

50 lines
1005 B
Markdown
Raw Normal View History

Minetest server list
====================
Setting up the webpage
----------------------
You will have to install node.js, doT.js and their dependencies to compile
the serverlist webpage template.
First install node.js, eg:
2013-11-04 18:54:25 +01:00
# apt-get install nodejs
# pacman -S nodejs
# emerge nodejs
2013-11-04 18:54:25 +01:00
Then install doT.js and its dependencies:
$ cd ~/code
$ git clone https://github.com/olado/doT.git
$ cd doT
$ npm install
2013-11-04 18:54:25 +01:00
Or with npm:
$ npm install dot commander mkdirp
And finally compile the template:
2013-11-04 18:54:25 +01:00
$ cd ~/minetest/util/master
$ ~/code/doT/bin/dot-packer -s . -d .
2013-11-04 18:54:25 +01:00
or
2013-11-04 18:54:25 +01:00
$ ~/node_modules/dot/bin/dot-packer -s . -d .
2013-11-04 18:54:25 +01:00
Embedding to any page
----------------------
2013-11-04 18:54:25 +01:00
<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>