Skip to content

Commit

Permalink
deploy: 46740eb
Browse files Browse the repository at this point in the history
  • Loading branch information
dwursteisen committed Jan 31, 2024
1 parent b0481fd commit 670c0cc
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 12 deletions.
47 changes: 46 additions & 1 deletion dependencies/tiny-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -3870,14 +3870,59 @@ <h3 id="_ws">ws</h3>
<div class="paragraph">
<p>Workspace manipulation library. It allows you to save/load/download files</p>
</div>
<div class="sect3">
<h4 id="_ws_save">ws.save()</h4>
<div class="paragraph">
<p>Save the content into a local file, on desktop or in the local storage on the web platform.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-lua" data-lang="lua">ws.save(name, content) -- Save the content into the file name.</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_ws_load">ws.load()</h4>
<div class="paragraph">
<p>Load and get the content of the file name</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-lua" data-lang="lua">ws.load(name) -- Load and get the content of the file name</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_ws_create">ws.create()</h4>
<div class="paragraph">
<p>Create a local file. The name is generated so the name is unique.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-lua" data-lang="lua">ws.create(prefix, extension) -- Create a local file with the prefix and the extension. The name of the file created.</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_ws_list">ws.list()</h4>
<div class="paragraph">
<p>List all files available in the workspace.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-lua" data-lang="lua">ws.list() -- List all files available in the workspace.
ws.list(extension) -- List all files available in the workspace and filter by the file extension.</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:58:50 UTC
Last updated 2024-01-31 23:13:56 UTC
</div>
</div>
</body>
Expand Down
56 changes: 54 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,14 @@ <h1>Tiny 🧸</h1>
<li><a href="#_vec2_scl">vec2.scl()</a></li>
</ul>
</li>
<li><a href="#_ws">ws</a></li>
<li><a href="#_ws">ws</a>
<ul class="sectlevel3">
<li><a href="#_ws_save">ws.save()</a></li>
<li><a href="#_ws_load">ws.load()</a></li>
<li><a href="#_ws_create">ws.create()</a></li>
<li><a href="#_ws_list">ws.list()</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#_links">Links</a></li>
Expand Down Expand Up @@ -5134,6 +5141,51 @@ <h3 id="_ws">ws</h3>
<div class="paragraph">
<p>Workspace manipulation library. It allows you to save/load/download files</p>
</div>
<div class="sect3">
<h4 id="_ws_save">ws.save()</h4>
<div class="paragraph">
<p>Save the content into a local file, on desktop or in the local storage on the web platform.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="rouge highlight"><code data-lang="lua"><span class="n">ws</span><span class="p">.</span><span class="n">save</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="n">content</span><span class="p">)</span> <span class="c1">-- Save the content into the file name.</span></code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_ws_load">ws.load()</h4>
<div class="paragraph">
<p>Load and get the content of the file name</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="rouge highlight"><code data-lang="lua"><span class="n">ws</span><span class="p">.</span><span class="n">load</span><span class="p">(</span><span class="n">name</span><span class="p">)</span> <span class="c1">-- Load and get the content of the file name</span></code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_ws_create">ws.create()</h4>
<div class="paragraph">
<p>Create a local file. The name is generated so the name is unique.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="rouge highlight"><code data-lang="lua"><span class="n">ws</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="n">prefix</span><span class="p">,</span> <span class="n">extension</span><span class="p">)</span> <span class="c1">-- Create a local file with the prefix and the extension. The name of the file created.</span></code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_ws_list">ws.list()</h4>
<div class="paragraph">
<p>List all files available in the workspace.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="rouge highlight"><code data-lang="lua"><span class="n">ws</span><span class="p">.</span><span class="n">list</span><span class="p">()</span> <span class="c1">-- List all files available in the workspace.</span>
<span class="n">ws</span><span class="p">.</span><span class="n">list</span><span class="p">(</span><span class="n">extension</span><span class="p">)</span> <span class="c1">-- List all files available in the workspace and filter by the file extension.</span></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -5191,7 +5243,7 @@ <h2 id="_licences">Licences</h2>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
<style>
Expand Down
2 changes: 1 addition & 1 deletion licences.html
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ <h2 id="_licences">Licences</h2>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion sample/tiny-engine.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ <h2 id="_examples">Examples</h2>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
<script src="tiny-web-editor.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion tiny-cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ <h4 id="_examples">Examples</h4>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion tiny-install.html
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ <h2 id="_tiny_install">Tiny Install</h2>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion tiny-showcase.html
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ <h2 id="_tiny_showcase">Tiny Showcase</h2>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion tiny-tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ <h3 id="_step_3_draw_the_game">Step 3: Draw the Game</h3>
<div id="footer">
<div id="footer-text">
Version custom-sound<br>
Last updated 2024-01-30 20:56:33 UTC
Last updated 2024-01-31 23:11:26 UTC
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion tiny-web-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tiny-web-editor.js.map

Large diffs are not rendered by default.

0 comments on commit 670c0cc

Please sign in to comment.