diff --git a/README.md b/README.md index b1d1d88..f99b989 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ Replace spaces with underscores ( _ ) --- title: Player Physics layout: default - root: ../ + root: .. --- Introduction diff --git a/_en/basics/folders.md b/_en/basics/folders.md index 19eac7d..8a3f3f0 100644 --- a/_en/basics/folders.md +++ b/_en/basics/folders.md @@ -1,7 +1,7 @@ --- title: Folder Structure layout: default -root: ../../ +root: ../.. idx: 1.1 description: Learn how to make a mod folder, including init.lua, depends.txt and more. redirect_from: /en/chapters/folders.html @@ -23,7 +23,7 @@ Each mod has its own folder where all its Lua code, textures, models, and sounds are placed. These folders need to be placed in a mod location such as minetest/mods. -![Find the mod's folder]({{ page.root }}/static/folder_modfolder.jpg) +![Find the mod's folder]({{ page.root }}//static/folder_modfolder.jpg) A "mod name" is used to refer to a mod. Each mod should have a unique mod name. Mod names can include letters, numbers, and underscores. A good mod name should diff --git a/_en/basics/lua.md b/_en/basics/lua.md index 7d33dcd..948cdf1 100644 --- a/_en/basics/lua.md +++ b/_en/basics/lua.md @@ -1,7 +1,7 @@ --- title: Lua Scripts layout: default -root: ../../ +root: ../.. idx: 1.2 description: A basic introduction to Lua, including a guide on global/local scope. redirect_from: /en/chapters/lua.html diff --git a/_en/index.md b/_en/index.md index d5a7fe8..7597e0b 100644 --- a/_en/index.md +++ b/_en/index.md @@ -3,7 +3,7 @@ title: Introduction layout: default homepage: true no_header: true -root: ../ +root: .. idx: 0.1 --- diff --git a/_en/inventories/inventories.md b/_en/inventories/inventories.md index 2c1afff..03ab2a9 100644 --- a/_en/inventories/inventories.md +++ b/_en/inventories/inventories.md @@ -1,7 +1,7 @@ --- title: Inventories layout: default -root: ../../ +root: ../.. idx: 5.2 redirect_from: /en/chapters/inventories.html --- @@ -49,7 +49,7 @@ There are three types of inventory: * **Detached Inventories**: An inventory which is not attached to a node or player.
- The player inventory formspec, with annotated list names. + The player inventory formspec, with annotated list names.
This image shows the two inventories visible when you press i. The gray boxes are inventory lists.
@@ -104,7 +104,7 @@ minetest.create_detached_inventory("inventory_name", callbacks) {% endhighlight %} This creates a detached inventory or, if the inventory already exists, it is cleared. -You can also supply a [table of callbacks]({{ page.root }}lua_api.html#detached-inventory-callbacks). +You can also supply a [table of callbacks]({{ page.root }}/lua_api.html#detached-inventory-callbacks). ## InvRef and Lists diff --git a/_en/inventories/itemstacks.md b/_en/inventories/itemstacks.md index ec7f270..baede44 100644 --- a/_en/inventories/itemstacks.md +++ b/_en/inventories/itemstacks.md @@ -1,7 +1,7 @@ --- title: ItemStacks layout: default -root: ../../ +root: ../.. idx: 5.1 redirect_from: /en/chapters/itemstacks.html --- @@ -135,5 +135,5 @@ print(dump(meta:get_string("foo"))) ## More Methods Have a look at the -[list of methods for an ItemStack]({{ page.root }}lua_api.html#methods_5). +[list of methods for an ItemStack]({{ page.root }}/lua_api.html#methods_5). There are a lot more available than talked about here. diff --git a/_en/items/creating_textures.md b/_en/items/creating_textures.md index 1bed113..f46029f 100644 --- a/_en/items/creating_textures.md +++ b/_en/items/creating_textures.md @@ -1,7 +1,7 @@ --- title: Creating Textures layout: default -root: ../../ +root: ../.. idx: 2.2 description: An introduction to making textures in your editor of choice, an a guide on GIMP. redirect_from: /en/chapters/creating_textures.html @@ -73,11 +73,11 @@ obvious. When using GIMP, the pencil tool can be selected from the Toolbox:
- Pencil in GIMP + Pencil in GIMP
It's also advisable to select the Hard edge checkbox for the eraser tool:
- Eraser in GIMP + Eraser in GIMP
diff --git a/_en/items/node_drawtypes.md b/_en/items/node_drawtypes.md index 81c589c..d094fc0 100644 --- a/_en/items/node_drawtypes.md +++ b/_en/items/node_drawtypes.md @@ -1,7 +1,7 @@ --- title: Node Drawtypes layout: default -root: ../../ +root: ../.. idx: 2.3 description: Guide to all drawtypes, including node boxes/nodeboxes and mesh nodes. redirect_from: /en/chapters/node_drawtypes.html @@ -43,7 +43,7 @@ This article is not complete yet. The following drawtypes are missing: ## Normal
- Normal Drawtype + Normal Drawtype
Normal Drawtype
@@ -102,7 +102,7 @@ minetest.register_node("myair:air", { ## Liquid
- Liquid Drawtype + Liquid Drawtype
Liquid Drawtype
@@ -185,7 +185,7 @@ the same as the above example. ## Glasslike
- Glasslike Drawtype + Glasslike Drawtype
Glasslike Drawtype
@@ -195,7 +195,7 @@ When you place multiple glasslike nodes together, you'll notice that the interna edges are hidden, like this:
- Glasslike's Edges + Glasslike's Edges
Glasslike's Edges
@@ -220,7 +220,7 @@ This makes the node's edge go around the whole thing with a 3D effect, rather than individual nodes, like the following:
- Glasslike_framed's Edges + Glasslike_framed's Edges
Glasslike_Framed's Edges
@@ -250,7 +250,7 @@ minetest.register_node("default:glass", { ## Allfaces
- Allfaces drawtype + Allfaces drawtype
Allfaces drawtype
@@ -311,7 +311,7 @@ minetest.register_node("foobar:torch", { ## Nodebox
- Nodebox drawtype + Nodebox drawtype
Nodebox drawtype
@@ -438,7 +438,7 @@ minetest.register_node("default:ladder_wood", { ## Plantlike
- Plantlike Drawtype + Plantlike Drawtype
Plantlike Drawtype
@@ -466,7 +466,7 @@ Firelike is similar to plantlike, except that it is designed to "cling" to walls and ceilings.
- Firelike nodes + Firelike nodes
Firelike nodes
diff --git a/_en/items/nodes_items_crafting.md b/_en/items/nodes_items_crafting.md index fff8e8d..b14cb5f 100644 --- a/_en/items/nodes_items_crafting.md +++ b/_en/items/nodes_items_crafting.md @@ -1,7 +1,7 @@ --- title: Nodes, Items, and Crafting layout: default -root: ../../ +root: ../.. idx: 2.1 description: Learn how to register node, items, and craft recipes using register_node, register_item, and register_craft. redirect_from: /en/chapters/nodes_items_crafting.html diff --git a/_en/map/abms.md b/_en/map/abms.md index 852822a..6cd50d2 100644 --- a/_en/map/abms.md +++ b/_en/map/abms.md @@ -1,7 +1,7 @@ --- title: Active Block Modifiers layout: default -root: ../../ +root: ../.. idx: 3.2 description: Learn how to make ABMs to change blocks. redirect_from: /en/chapters/abms.html diff --git a/_en/map/environment.md b/_en/map/environment.md index e7bdac1..0718909 100644 --- a/_en/map/environment.md +++ b/_en/map/environment.md @@ -1,7 +1,7 @@ --- title: Basic Map Operations layout: default -root: ../../ +root: ../.. idx: 3.1 description: Basic operations like set_node and get_node redirect_from: /en/chapters/environment.html diff --git a/_en/map/lvm.md b/_en/map/lvm.md index 48e4993..a41dc81 100644 --- a/_en/map/lvm.md +++ b/_en/map/lvm.md @@ -1,7 +1,7 @@ --- title: Lua Voxel Manipulators layout: default -root: ../../ +root: ../.. idx: 3.4 description: Learn how to use LVMs to speed up map operations. redirect_from: /en/chapters/lvm.html diff --git a/_en/map/node_metadata.md b/_en/map/node_metadata.md index 9a4a59d..f697c19 100644 --- a/_en/map/node_metadata.md +++ b/_en/map/node_metadata.md @@ -1,7 +1,7 @@ --- title: Node Metadata layout: default -root: ../../ +root: ../.. idx: 3.3 description: Using get_meta to obtain a NodeMetaRef. redirect_from: /en/chapters/node_metadata.html diff --git a/_en/players/chat.md b/_en/players/chat.md index c58dc25..375ae11 100644 --- a/_en/players/chat.md +++ b/_en/players/chat.md @@ -1,7 +1,7 @@ --- title: Chat and Commands layout: default -root: ../../ +root: ../.. idx: 4.2 description: Registering a chatcommand and handling chat messages with register_on_chat_message redirect_from: /en/chapters/chat.html diff --git a/_en/players/chat_complex.md b/_en/players/chat_complex.md index e05cc7f..35cba26 100644 --- a/_en/players/chat_complex.md +++ b/_en/players/chat_complex.md @@ -1,7 +1,7 @@ --- title: Chat Command Builder layout: default -root: ../../ +root: ../.. idx: 4.3 description: Use ChatCmdBuilder to make a complex chat command redirect_from: /en/chapters/chat_complex.html diff --git a/_en/players/formspecs.md b/_en/players/formspecs.md index 93cb517..3c376d9 100644 --- a/_en/players/formspecs.md +++ b/_en/players/formspecs.md @@ -1,7 +1,7 @@ --- title: Formspecs layout: default -root: ../../ +root: ../.. idx: 4.5 redirect_from: /en/chapters/formspecs.html --- @@ -9,7 +9,7 @@ redirect_from: /en/chapters/formspecs.html ## Introduction
- Furnace Inventory + Furnace Inventory
Screenshot of furnace formspec, labelled.
@@ -96,7 +96,7 @@ and to see if the callback is relevant. This example shows a formspec to a player when they use the /formspec command.
- Name Formspec + Name Formspec
The formspec generated by
the example's code diff --git a/_en/players/hud.md b/_en/players/hud.md index 0379bde..7cc2acf 100644 --- a/_en/players/hud.md +++ b/_en/players/hud.md @@ -1,7 +1,7 @@ --- title: HUD layout: default -root: ../../ +root: ../.. idx: 4.6 redirect_from: /en/chapters/hud.html --- @@ -33,7 +33,7 @@ The HUD doesn't accept user input. For that, you should use a [Formspec](formspe
Diagram showing a centered text element
@@ -60,7 +60,7 @@ make a text element left, center, or right justified.
Diagram showing alignment
@@ -75,7 +75,7 @@ score panel like so:
screenshot of the HUD we're aiming for
@@ -159,7 +159,7 @@ This results in the following:
screenshot of the HUD we're aiming for
@@ -183,7 +183,7 @@ You will now have this:
screenshot of the HUD so far
@@ -292,4 +292,4 @@ end) ## Other Elements -Read [lua_api.txt]({{ page.root }}lua_api.html#hud-element-types) for a complete list of HUD elements. +Read [lua_api.txt]({{ page.root }}/lua_api.html#hud-element-types) for a complete list of HUD elements. diff --git a/_en/players/player_physics.md b/_en/players/player_physics.md index 0880f97..4d122ad 100644 --- a/_en/players/player_physics.md +++ b/_en/players/player_physics.md @@ -1,7 +1,7 @@ --- title: Player Physics layout: default -root: ../../ +root: ../.. idx: 4.4 redirect_from: /en/chapters/player_physics.html --- @@ -38,7 +38,7 @@ minetest.register_chatcommand("antigravity", { ## Available Overrides player:set_physics_override() is given a table of overrides.\\ -According to [lua_api.txt]({{ page.root }}lua_api.html#player-only-no-op-for-other-objects), +According to [lua_api.txt]({{ page.root }}/lua_api.html#player-only-no-op-for-other-objects), these can be: * speed: multiplier to default walking speed value (default: 1) diff --git a/_en/players/privileges.md b/_en/players/privileges.md index 44e3c38..0197684 100644 --- a/_en/players/privileges.md +++ b/_en/players/privileges.md @@ -1,7 +1,7 @@ --- title: Privileges layout: default -root: ../../ +root: ../.. idx: 4.1 description: Registering privs. redirect_from: /en/chapters/privileges.html diff --git a/_en/players/sfinv.md b/_en/players/sfinv.md index f8111ef..de18d5e 100644 --- a/_en/players/sfinv.md +++ b/_en/players/sfinv.md @@ -1,7 +1,7 @@ --- title: "SFINV: Inventory Formspec" layout: default -root: ../../ +root: ../.. idx: 4.7 redirect_from: /en/chapters/sfinv.html --- @@ -57,7 +57,7 @@ The fourth parameter, currently set as `true`, determines whether or not the player's inventory is shown.
- Furnace Inventory + Furnace Inventory
Your first sfinv page! Not exactly very exciting, though.
@@ -109,7 +109,7 @@ There's nothing new about the above code, all the concepts are covered above and in previous chapters.
- Player Admin Page + Player Admin Page
The player admin page created above.
diff --git a/_en/quality/clean_arch.md b/_en/quality/clean_arch.md index d2431c9..af7a052 100644 --- a/_en/quality/clean_arch.md +++ b/_en/quality/clean_arch.md @@ -1,7 +1,7 @@ --- title: Intro to Clean Architectures layout: default -root: ../../ +root: ../.. idx: 6.3 --- @@ -159,7 +159,7 @@ to the Minetest API at all.
Diagram showing a centered text element
diff --git a/_en/quality/common_mistakes.md b/_en/quality/common_mistakes.md index 3d659c4..a026583 100644 --- a/_en/quality/common_mistakes.md +++ b/_en/quality/common_mistakes.md @@ -1,7 +1,7 @@ --- title: Common Mistakes layout: default -root: ../../ +root: ../.. idx: 6.1 redirect_from: /en/chapters/common_mistakes.html --- diff --git a/_en/quality/luacheck.md b/_en/quality/luacheck.md index a514861..1f9cc09 100644 --- a/_en/quality/luacheck.md +++ b/_en/quality/luacheck.md @@ -1,7 +1,7 @@ --- title: Automatic Error Checking layout: default -root: ../../ +root: ../.. idx: 6.2 description: Use LuaCheck to find errors redirect_from: /en/chapters/luacheck.html diff --git a/_en/quality/readmore.md b/_en/quality/readmore.md index e736e63..3acb9f3 100644 --- a/_en/quality/readmore.md +++ b/_en/quality/readmore.md @@ -1,7 +1,7 @@ --- title: Read More layout: default -root: ../../ +root: ../.. idx: 6.6 redirect_from: /en/chapters/readmore.html --- @@ -12,7 +12,7 @@ After you've read this book, take a look at the following ### Minetest Modding -* Minetest's Lua API Reference - [HTML version]({{ page.root }}lua_api.html) | +* Minetest's Lua API Reference - [HTML version]({{ page.root }}/lua_api.html) | [Text version](https://github.com/minetest/minetest/blob/master/doc/lua_api.txt). * Explore the [Developer Wiki](http://dev.minetest.net/Main_Page). * Look at [existing mods](https://forum.minetest.net/viewforum.php?f=11). diff --git a/_en/quality/releasing.md b/_en/quality/releasing.md index d523810..33f9ab1 100644 --- a/_en/quality/releasing.md +++ b/_en/quality/releasing.md @@ -1,7 +1,7 @@ --- title: Releasing a Mod layout: default -root: ../../ +root: ../.. idx: 6.5 redirect_from: /en/chapters/releasing.html --- @@ -194,7 +194,7 @@ Click browse and select the zipped file. It is recommended that you enter the version of your mod in the comment field.
- Upload Attachment + Upload Attachment
Upload Attachment tab.
@@ -267,7 +267,7 @@ The subject of topic must be in one of these formats: ### Profit
- Profit + Profit
Profit
diff --git a/_en/quality/unit_testing.md b/_en/quality/unit_testing.md index b8006eb..416ff99 100644 --- a/_en/quality/unit_testing.md +++ b/_en/quality/unit_testing.md @@ -1,7 +1,7 @@ --- title: Automatic Unit Testing layout: default -root: ../../ +root: ../.. idx: 6.4 --- diff --git a/_layouts/default.html b/_layouts/default.html index e666763..e7d8340 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -18,11 +18,10 @@ layout: compress {% assign language = pathsplit[1] %} {% if language == "en" %} - {% assign links = site.en | sort: "idx" %} - + {% assign links = site.en | sort: "idx" %} {% else %} - {% assign language = "en" %} - {% assign links = site.en | sort: "idx" %} + {% assign language = "en" %} + {% assign links = site.en | sort: "idx" %} {% endif %} {% assign num = 0 %} @@ -30,19 +29,23 @@ layout: compress
+
  • Lua Modding API Reference
  • +
  • Download Examples
  • +
    - + - +