Merge pull request #7 from benrob0329/include-config

meta - Add configuration document to include
This commit is contained in:
benrob0329 2022-01-01 17:21:27 -05:00 committed by GitHub
commit 3e3ce657da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

@ -1,10 +1,7 @@
= Lua Environment
include::../include/config.adoc[]
:description: Documentation of the global environment Minetest mods run in
:keywords: lua, luajit, environment, mod, security, portability, platform, library
:toc:
:toclevels: 5
:url-reference-manual: https://www.lua.org/manual/5.1/manual.html
Minetest uses Lua 5.1. The environment in which Minetest executes mods depends on four factors:
@ -28,7 +25,7 @@ See the {url-reference-manual}[Lua 5.1 Reference Manual] for platform- and OS-en
==== `math.hypot(x, y)`
Finds the length of the hypotenuse `z` according to the Pythagorean Theorem: `z^2 = x^2 + y^2`. Shorthand for `math.sqrt(x*x + y*y)`.
Finds the length of the hypotenuse `z` according to the Pythagorean Theorem: stem:[z^2 = x^2 + y^2]. Shorthand for `math.sqrt(x*x + y*y)`.
==== `math.sign(x, [tolerance])`

11
include/config.adoc Normal file

@ -0,0 +1,11 @@
Minetest-Docs and contributors
:experimental: true
:stem:
:toc:
:toclevels: 5
:imagesdir: ../assets
:url-docs-repo: https://github.com/minetest/minetest_docs
:url-lua-api: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt
:url-reference-manual: https://www.lua.org/manual/5.1/manual.html

@ -1,15 +1,7 @@
= Pomegranates
Author Minetest-Docs and Contributors
v1.0, 2022-01-01
include::../include/config.adoc[]
:description: A sample template for using AsciiDoc.
:keywords: sample
:toc:
// Using an image directory is a good idea, for relative paths!
:imagesdir: ../assets
// URL references:
:url-source: https://github.com/minetest/minetest_docs
This is a sample template of how a good AsciiDoc can be structured.
This pragraph describes the purpose of the document.
@ -53,4 +45,4 @@ Grows the tree at `pos` if the node at `pos` is a valid pomegranate tree.
Sprays tree at `pos` with `pesticide` if it is a registered chemical.
== Source
You can contribute to the documentation at {url-source}[our GitHub repository]!
You can contribute to the documentation at {url-docs-repo}[our GitHub repository]!