Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Update development docs
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 15, 2023
1 parent 2d4867a commit d21fd08
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/docs/development/_sources/contents/overlays.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ permissions, etc.

..
note::
There is now possibility to delete files with an overlay! [example needed]
There is no possibility to delete files with an overlay!
Build
-----
Expand Down
14 changes: 14 additions & 0 deletions static/docs/development/_sources/contents/templating.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,17 @@ A given string can be split into substrings.
{{ $x := "a:b:c" -}}
{{ $y := (split $x ":") -}}
{{ range $y }} {{.}} {{ end }}
Node specific files
-------------------

Sometimes there is the need to have specific files for every node
which can't be generated by a template. You can include these files
with following template:

.. code-block:: go
{{- $filename := print "/root/" .Id "-payload" }}
{{ Include $filename }}
11 changes: 11 additions & 0 deletions static/docs/development/contents/templating.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
<li class="toctree-l4"><a class="reference internal" href="#split">Split</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="#node-specific-files">Node specific files</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -316,6 +317,16 @@ <h4>Split<a class="headerlink" href="#split" title="Permalink to this heading">
</div>
</section>
</section>
<section id="node-specific-files">
<h3>Node specific files<a class="headerlink" href="#node-specific-files" title="Permalink to this heading"></a></h3>
<p>Sometimes there is the need to have specific files for every node
which can’t be generated by a template. You can include these files
with following template:</p>
<div class="highlight-go notranslate"><div class="highlight"><pre><span></span>{{- $filename := print &quot;/root/&quot; .Id &quot;-payload&quot; }}
{{ Include $filename }}
</pre></div>
</div>
</section>
</section>
</section>

Expand Down
Binary file modified static/docs/development/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion static/docs/development/searchindex.js

Large diffs are not rendered by default.

0 comments on commit d21fd08

Please sign in to comment.