Skip to content

Commit

Permalink
deploy: 051e1ef
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Aug 7, 2024
1 parent b9d886f commit 9194095
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
6 changes: 4 additions & 2 deletions guide/advanced/startup_event.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,12 @@ <h1 class="menu-title">The Trunk Guide</h1>
<main>
<h1 id="startup-event"><a class="header" href="#startup-event">Startup event</a></h1>
<p>The initializer code snippet of Trunk will emit an event when the WebAssembly application has been loaded and started.</p>
<div id="admonition-note" class="admonition admonish-note">
<div id="admonition-note" class="admonition admonish-note" role="note" aria-labelledby="admonition-note-title">
<div class="admonition-title">
<div id="admonition-note-title">
<p>Note</p>
<p><a class="admonition-anchor-link" href="#admonition-note"></a></p>
</div>
<a class="admonition-anchor-link" href="#admonition-note"></a>
</div>
<div>
<p>This event is independent of the initializer functionality.</p>
Expand Down
6 changes: 4 additions & 2 deletions guide/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,12 @@ <h3 id="js-snippets"><a class="header" href="#js-snippets">JS Snippets</a></h3>
<h2 id="images--other-resources"><a class="header" href="#images--other-resources">Images &amp; Other Resources</a></h2>
<p>Images and other resource types can be copied into the <code>dist</code> dir by adding a link like this to your source HTML: <code>&lt;link data-trunk rel="copy-file" href="path/to/image"/&gt;</code>. Any normal file type is supported. This will cause Trunk to find the target resource, and copy it to the <code>dist</code> dir unmodified. No hashing will be applied. The link itself will be removed from the HTML. To copy an entire directory of assets/images, you can use the following HTML: <code>&lt;link data-trunk rel="copy-dir" href="path/to/images-dir"/&gt;</code>.</p>
<p>This will allow your WASM application to reference images directly from the <code>dist</code> dir, and Trunk will ensure that the images are available in the <code>dist</code> dir to be served.</p>
<div id="admonition-note" class="admonition admonish-note">
<div id="admonition-note" class="admonition admonish-note" role="note" aria-labelledby="admonition-note-title">
<div class="admonition-title">
<div id="admonition-note-title">
<p>Note</p>
<p><a class="admonition-anchor-link" href="#admonition-note"></a></p>
</div>
<a class="admonition-anchor-link" href="#admonition-note"></a>
</div>
<div>
<p>As Trunk continues to mature, we will find better ways to include images and other resources. Hashing content for cache control is great, we just need to find a nice pattern to work with images referenced in Rust components. Please contribute to the discussion over in <a href="https://github.com/trunk-rs/trunk/issues/9">trunk#9</a>! See you there.</p>
Expand Down
6 changes: 4 additions & 2 deletions guide/configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,12 @@ <h2 id="required-version"><a class="header" href="#required-version">Required ve
<p>The version format is a "version requirement", the same format you might know from Cargo's version field on
dependencies.</p>
<p>This also supports pre-release requirements, which allows adopting upcoming features early.</p>
<div id="admonition-note" class="admonition admonish-note">
<div id="admonition-note" class="admonition admonish-note" role="note" aria-labelledby="admonition-note-title">
<div class="admonition-title">
<div id="admonition-note-title">
<p>Note</p>
<p><a class="admonition-anchor-link" href="#admonition-note"></a></p>
</div>
<a class="admonition-anchor-link" href="#admonition-note"></a>
</div>
<div>
<p>Versions prior do <code>0.19.0-alpha.2</code> currently do not support this check, and so they will silently ignore
Expand Down
18 changes: 12 additions & 6 deletions guide/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,12 @@ <h2 id="required-version"><a class="header" href="#required-version">Required ve
<p>The version format is a "version requirement", the same format you might know from Cargo's version field on
dependencies.</p>
<p>This also supports pre-release requirements, which allows adopting upcoming features early.</p>
<div id="admonition-note" class="admonition admonish-note">
<div id="admonition-note" class="admonition admonish-note" role="note" aria-labelledby="admonition-note-title">
<div class="admonition-title">
<div id="admonition-note-title">
<p>Note</p>
<p><a class="admonition-anchor-link" href="configuration/index.html#admonition-note"></a></p>
</div>
<a class="admonition-anchor-link" href="configuration/index.html#admonition-note"></a>
</div>
<div>
<p>Versions prior do <code>0.19.0-alpha.2</code> currently do not support this check, and so they will silently ignore
Expand Down Expand Up @@ -547,10 +549,12 @@ <h3 id="js-snippets"><a class="header" href="#js-snippets">JS Snippets</a></h3>
<h2 id="images--other-resources"><a class="header" href="#images--other-resources">Images &amp; Other Resources</a></h2>
<p>Images and other resource types can be copied into the <code>dist</code> dir by adding a link like this to your source HTML: <code>&lt;link data-trunk rel="copy-file" href="path/to/image"/&gt;</code>. Any normal file type is supported. This will cause Trunk to find the target resource, and copy it to the <code>dist</code> dir unmodified. No hashing will be applied. The link itself will be removed from the HTML. To copy an entire directory of assets/images, you can use the following HTML: <code>&lt;link data-trunk rel="copy-dir" href="path/to/images-dir"/&gt;</code>.</p>
<p>This will allow your WASM application to reference images directly from the <code>dist</code> dir, and Trunk will ensure that the images are available in the <code>dist</code> dir to be served.</p>
<div id="admonition-note" class="admonition admonish-note">
<div id="admonition-note" class="admonition admonish-note" role="note" aria-labelledby="admonition-note-title">
<div class="admonition-title">
<div id="admonition-note-title">
<p>Note</p>
<p><a class="admonition-anchor-link" href="assets/index.html#admonition-note"></a></p>
</div>
<a class="admonition-anchor-link" href="assets/index.html#admonition-note"></a>
</div>
<div>
<p>As Trunk continues to mature, we will find better ways to include images and other resources. Hashing content for cache control is great, we just need to find a nice pattern to work with images referenced in Rust components. Please contribute to the discussion over in <a href="https://github.com/trunk-rs/trunk/issues/9">trunk#9</a>! See you there.</p>
Expand Down Expand Up @@ -600,10 +604,12 @@ <h2 id="order-of-initialization"><a class="header" href="#order-of-initializatio
<a href="advanced/startup_event.html">Startup Event</a>.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="startup-event"><a class="header" href="#startup-event">Startup event</a></h1>
<p>The initializer code snippet of Trunk will emit an event when the WebAssembly application has been loaded and started.</p>
<div id="admonition-note" class="admonition admonish-note">
<div id="admonition-note" class="admonition admonish-note" role="note" aria-labelledby="admonition-note-title">
<div class="admonition-title">
<div id="admonition-note-title">
<p>Note</p>
<p><a class="admonition-anchor-link" href="advanced/startup_event.html#admonition-note"></a></p>
</div>
<a class="admonition-anchor-link" href="advanced/startup_event.html#admonition-note"></a>
</div>
<div>
<p>This event is independent of the initializer functionality.</p>
Expand Down

0 comments on commit 9194095

Please sign in to comment.