projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf0786d
)
Fix masterserver README.md
author
Ilya Zhuravlev
<zhuravlevilya@ya.ru>
Mon, 4 Nov 2013 17:54:25 +0000
(21:54 +0400)
committer
Ilya Zhuravlev
<zhuravlevilya@ya.ru>
Mon, 4 Nov 2013 17:54:25 +0000
(21:54 +0400)
util/master/README.md
patch
|
blob
|
history
diff --git
a/util/master/README.md
b/util/master/README.md
index 232986deb9a830f2d57f9608d43655eb1c89f2f2..411fff3e9ec5595e15dc49add2896358c6eb96e9 100644
(file)
--- 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:
the serverlist webpage template.
First install node.js, eg:
+
# apt-get install nodejs
# pacman -S nodejs
# emerge nodejs
# 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
$ 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:
$ npm install dot commander mkdirp
And finally compile the template:
+
$ cd ~/minetest/util/master
$ ~/code/doT/bin/dot-packer -s . -d .
$ cd ~/minetest/util/master
$ ~/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 .
-Embe
n
ding to any page
+Embe
d
ding 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>