summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-23 00:38:27 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-23 00:38:27 -0600
commit381b363a78c9b0d737ee22b130d619d6ddbbf5f5 (patch)
tree1f21c5e9274f06c89ed317d1b48a6a099832cce9
parent5c1bd731af75320ffe9f1a9d95741599b5883f29 (diff)
downloadwebsite-381b363a78c9b0d737ee22b130d619d6ddbbf5f5.tar.gz
website-381b363a78c9b0d737ee22b130d619d6ddbbf5f5.tar.bz2
website-381b363a78c9b0d737ee22b130d619d6ddbbf5f5.zip
Add table of contents
-rw-r--r--html/index.html33
1 files changed, 22 insertions, 11 deletions
diff --git a/html/index.html b/html/index.html
index 3e1576c..22e9b6a 100644
--- a/html/index.html
+++ b/html/index.html
@@ -6,15 +6,26 @@
6 <script>hljs.highlightAll();</script> 6 <script>hljs.highlightAll();</script>
7 </head> 7 </head>
8 <body><main class="wrapper"> 8 <body><main class="wrapper">
9 <nav class="navigation">TODO</nav>
10 <header class="header"><section class="container"> 9 <header class="header"><section class="container">
11 <h1 class="title">Lua4Win</h1> 10 <h1 class="title">Lua4Win</h1>
11 <p>Lua4Win is a distribution the Lua programming language for Windows.</p>
12 <nav class="navigation">
13 <ul>
14 <li><a href="#install">Install</a></li>
15 <li><a href="#rational">Rational</a></li>
16 <li><a href="#usage">Usage</a></li>
17 <li><a href="#luarocks">Luarocks</a></li>
18 <li><a href="#languages">Sister Languages</a></li>
19 <li><a href="#advanced">Advanced Usage</a></li>
20 </ul>
21 </nav>
12 </section></header> 22 </section></header>
13 <section class="container"> 23 <section class="container" id="install">
14 <p>Lua4Win is a distribution the Lua programming language for Windows.</p> 24 <h3 class="title">Install</h3>
25 <p>You can install it by using the .msi file here.</p>
15 <a class="button" href="https://cicd.lua4.win/archive/lua4win-dist-lua/latest/lua4win.msi">Download</a> 26 <a class="button" href="https://cicd.lua4.win/archive/lua4win-dist-lua/latest/lua4win.msi">Download</a>
16 </section> 27 </section>
17 <section class="container"> 28 <section class="container" id="rational">
18 <h3 class="title">Rational</h3> 29 <h3 class="title">Rational</h3>
19 <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>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>
20 </section> 31 </section>
@@ -54,7 +65,7 @@ os.execute("notepad.exe " .. note_filename)</code></pre>
54 </div> 65 </div>
55 <p>Run <code>lua --help</code> for more options for the command line tool, and the <a href="https://www.lua.org/manual/5.1/manual.html">Lua Manual</a> for extensive documentation of the Lua programming language. Also note <a href="https://luajit.org/extensions.html">LuaJIT's extensions</a></p> 66 <p>Run <code>lua --help</code> for more options for the command line tool, and the <a href="https://www.lua.org/manual/5.1/manual.html">Lua Manual</a> for extensive documentation of the Lua programming language. Also note <a href="https://luajit.org/extensions.html">LuaJIT's extensions</a></p>
56 </section> 67 </section>
57 <section class="container"> 68 <section class="container" id="luarocks">
58 <h3 class="title">Installing Superpowers</h3> 69 <h3 class="title">Installing Superpowers</h3>
59 <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>
60 <div class="row"> 71 <div class="row">
@@ -76,7 +87,7 @@ $ lua color.lua</code></pre>
76 </div> 87 </div>
77 <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> 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>
78 </section> 89 </section>
79 <section class="container"> 90 <section class="container" id="languages">
80 <h3 class="title">Sister languages</h3> 91 <h3 class="title">Sister languages</h3>
81 <p>Lua4Win makes it easy to download other programming languages that are distributed through the <code>luarocks</code> package manager. Simply <code>luarocks install</code> them like you would any other package.</p> 92 <p>Lua4Win makes it easy to download other programming languages that are distributed through the <code>luarocks</code> package manager. Simply <code>luarocks install</code> them like you would any other package.</p>
82 <h4 class="title">Moonscript</h4> 93 <h4 class="title">Moonscript</h4>
@@ -97,7 +108,7 @@ with World!
97 \greet!</code></pre> 108 \greet!</code></pre>
98 </div> 109 </div>
99 <div class="column"> 110 <div class="column">
100<pre><code class="language-bash">$ moonscript example.moon 111<pre><code class="language-bash">$ moon example.moon
101Hello, world!</code></pre> 112Hello, world!</code></pre>
102 </div> 113 </div>
103 </div> 114 </div>
@@ -126,15 +137,15 @@ print(table.concat(s))
126</code></pre> 137</code></pre>
127 </div> 138 </div>
128 <div class="column"> 139 <div class="column">
129 <pre><code class="language-bash">$ tl keys.tl 140 <pre><code class="language-bash">$ tl run keys.tl
130ab</code></pre> 141ab</code></pre>
131 </div> 142 </div>
132 </div> 143 </div>
133 </section> 144 </section>
134 <section class="container"> 145 <section class="container" id="advanced">
135 <h3 class="title">Advanced Usage</h3> 146 <h3 class="title">Advanced Usage</h3>
136 <p>Lua4Win allows you to install system-wide packages with the <pre><code>--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> 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>
137 <p>Lua4Win's luarocks config lives at <pre><code>[INSTALLDIR]/config/config-5.1.lua</code></pre></p> 148 <p>Lua4Win's luarocks config lives at <pre><code class="language-none">[INSTALLDIR]/config/config-5.1.lua</code></pre></p>
138 <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> 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>
139 <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> 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>
140 151