Skip to content

Instantly share code, notes, and snippets.

@xyzz
Created November 4, 2013 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyzz/e635c228e131b2afcbe4 to your computer and use it in GitHub Desktop.
Save xyzz/e635c228e131b2afcbe4 to your computer and use it in GitHub Desktop.
diff --git a/util/master/README.md b/util/master/README.md
index 232986d..832a200 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
+
+ apt-get install nodejs
+ pacman -S nodejs
+ emerge nodejs
Then install doT.js and it's 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:
- $ npm install dot commander mkdirp
+
+ 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
- $ ./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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment