summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-18 20:38:56 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-18 20:38:56 -0600
commit37c9e1ce3851dc4cf8269a462df8850848e69edf (patch)
tree141528cc6a4ffea9615504962854c99c726a62a4
parent381b363a78c9b0d737ee22b130d619d6ddbbf5f5 (diff)
downloadwebsite-37c9e1ce3851dc4cf8269a462df8850848e69edf.tar.gz
website-37c9e1ce3851dc4cf8269a462df8850848e69edf.tar.bz2
website-37c9e1ce3851dc4cf8269a462df8850848e69edf.zip
Edits
-rw-r--r--html/index.html30
1 files changed, 16 insertions, 14 deletions
diff --git a/html/index.html b/html/index.html
index 22e9b6a..b65c90e 100644
--- a/html/index.html
+++ b/html/index.html
@@ -27,9 +27,9 @@
27 </section> 27 </section>
28 <section class="container" id="rational"> 28 <section class="container" id="rational">
29 <h3 class="title">Rational</h3> 29 <h3 class="title">Rational</h3>
30 <p>Unlike alternative distributions, Lua4Win comes with the Luarocks package manager and is a "batteries-not-included" distribution of Lua. Binary packages are built in the cloud and can be downloaded as-needed. The Lua4Win installer contains a copy of <a href="https://luajit.org">LuaJIT</a>, <a href="https://luarocks.org">Luarocks</a>, <a href="https://www.busybox.net">Busybox</a>, and <a href="https://7zip.org">7zip</a>; which allows it to come in at a slim 2MB. Updates and bugfixes can be done piecemeal instead of requireing new copies of the whole distribution every time a bug gets fixed.</p> 30 <p>Lua4Win is a distribution of the Lua programming language for Windows. Lua4Win comes with the Luarocks package manager and is a "batteries-not-included" distribution of Lua. Binary packages are built remotely and are downloaded as-needed. The Lua4Win installer contains a copy of <a href="https://luajit.org">LuaJIT</a>, <a href="https://luarocks.org">Luarocks</a>, <a href="https://www.busybox.net">Busybox</a>, and <a href="https://7zip.org">7zip</a>; which allows it to come in at a slim 2MB. Updates and bugfixes to libraries can be done piecemeal instead of requiring new copies of the whole distribution every time a bug gets fixed.</p>
31 </section> 31 </section>
32 <section class="container"> 32 <section class="container" id="usage">
33 <h3 class="title">Usage</h3> 33 <h3 class="title">Usage</h3>
34 <p>After installing, you can launch <code>cmd.exe</code> and run <code>$ lua</code> to get started.</p> 34 <p>After installing, you can launch <code>cmd.exe</code> and run <code>$ lua</code> to get started.</p>
35 <pre><code class="language-none">$ lua 35 <pre><code class="language-none">$ lua
@@ -69,23 +69,25 @@ os.execute("notepad.exe " .. note_filename)</code></pre>
69 <h3 class="title">Installing Superpowers</h3> 69 <h3 class="title">Installing Superpowers</h3>
70 <p>You can use modules that implement more than the standard lua libraries by running the <code>$ luarocks install &gt;module name&lt; </code> command to download and install modules.</p> 70 <p>You can use modules that implement more than the standard lua libraries by running the <code>$ luarocks install &gt;module name&lt; </code> command to download and install modules.</p>
71 <div class="row"> 71 <div class="row">
72 <div class="column"> 72 <div class="column column-offset-33">
73 color.lua 73 color.lua
74 </div> 74 </div>
75 </div> 75 </div>
76 <div class="row"> 76 <div class="row">
77 <div class="column"> 77 <div class="column">
78 <pre><code class="language-lua">local eansi = require("eansi") 78 <pre><code class="language-bash">$ luarocks install easni</code></pre>
79eansi.enable = true
80print(eansi.toansi("green") .. "> implying you need modules" .. eansi(""))</code></pre>
81 </div> 79 </div>
82 <div class="column"> 80 <div class="column">
83 <pre><code class="language-bash">$ luarocks install eansi 81 <pre><code class="language-lua">local ansi = require("eansi")
84 82ansi.enable = true
85$ lua color.lua</code></pre> 83local green = ansi.toansi("green")
84print(green .. "> implying you need modules")</code></pre>
85 </div>
86 <div class="column">
87 <pre><code class="language-bash">$ lua color.lua</code></pre>
86 </div> 88 </div>
87 </div> 89 </div>
88 <p> Run <code>luarocks --help</code> for more options on the command line tool, and the <a href="https://github.com/luarocks/luarocks/wiki/Using-LuaRocks">Luarocks wiki</a> for more extensive documentation.</p> 90 <p> Run <code class="language-bash">$ luarocks --help</code> for more options on the command line tool, and see the <a href="https://github.com/luarocks/luarocks/wiki/Using-LuaRocks">Luarocks wiki</a> for more extensive documentation.</p>
89 </section> 91 </section>
90 <section class="container" id="languages"> 92 <section class="container" id="languages">
91 <h3 class="title">Sister languages</h3> 93 <h3 class="title">Sister languages</h3>
@@ -144,10 +146,10 @@ ab</code></pre>
144 </section> 146 </section>
145 <section class="container" id="advanced"> 147 <section class="container" id="advanced">
146 <h3 class="title">Advanced Usage</h3> 148 <h3 class="title">Advanced Usage</h3>
147 <p>Lua4Win allows you to install system-wide packages with the <pre><code class="language-none">--tree system</code></pre> flag, these packages will be located at <pre><code>[INSTALLDIR]/luarocks</code></pre>. You may need to be running as an administratior to install to this location.</p> 149 <p>By default, Lua4Win will install packages in a user-local location, at <code>%APPDATA%/luarocks</code>. You can instead choose to install system-wide packages for all users with the <code class="language-none">--tree system</code> flag, these packages will be located at <code>[INSTALLDIR]/luarocks</code>. You may need to be running as an administrator to install to this location.</p>
148 <p>Lua4Win's luarocks config lives at <pre><code class="language-none">[INSTALLDIR]/config/config-5.1.lua</code></pre></p> 150 <p>Lua4Win's luarocks configuration lives at <code class="language-none">[INSTALLDIR]/config/config-5.1.lua</code>, and is a regular Lua file you can modify.</p>
149 <p>All of Lua4Win's binary packages are built using mingw64, if you intend to build your own modules, they must be built with mingw64 if you want them to operate with Lua4Win-distributed Lua.</p> 151 <p>All of Lua4Win's binary packages are built using mingw64. If you intend to build your own modules they must be built with mingw64 if you want them to interoperate with Lua4Win-distributed Lua.</p>
150 <p>Some of Lua4Win's packages needed patching or modification, source code is generally mirrored at <a href="https://git.lua4.win">git.lua4.win</a>, and packaging code is kept seperate, usually in a repo <pre><code>*-packaging</code></pre></p> 152 <p>Some of Lua4Win's packages needed patching or modification, source code is generally mirrored at <a href="https://git.lua4.win">git.lua4.win</a>, and packaging code is kept separate- usually in a <pre><code>*-packaging</code></pre> repo.</p>
151 153
152 </body> 154 </body>
153</html> 155</html>