Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 28, 2025
1 parent 0a3626c commit ad1a896
Show file tree
Hide file tree
Showing 106 changed files with 9,662 additions and 202 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Redirecting...</title>
<meta http-equiv="refresh" content="0; URL=./latest/userguides/quickstart.html">
<meta http-equiv="refresh" content="0; URL=./stable/userguides/quickstart.html">
Binary file modified latest/.doctrees/environment.pickle
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/exceptions.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/main.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/middlewares.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/runner.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/utils.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion stable/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: b46fa637138fb600b9e344a8377fd2af
config: 84c1292f3f8beea20f9805fc441f2231
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified stable/.doctrees/commands/cluster.doctree
Binary file not shown.
Binary file modified stable/.doctrees/commands/run.doctree
Binary file not shown.
Binary file modified stable/.doctrees/environment.pickle
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/exceptions.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/main.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/middlewares.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/runner.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/subscriptions.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/utils.doctree
Binary file not shown.
Binary file modified stable/.doctrees/userguides/deploying.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions stable/_sources/commands/cluster.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ CLI commands for interacting with the Silverback Platform.
:nested: full
:commands: new, list, info, update, remove

.. click:: silverback._cli:registry_auth
:prog: silverback cluster registry auth
.. click:: silverback._cli:registry
:prog: silverback cluster registry
:nested: full
:commands: new, list, info, update, remove

Expand Down
4 changes: 2 additions & 2 deletions stable/_sources/userguides/deploying.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Once you have created all the Variable Group(s) that you need to operate your Bo
## Private Container Registries

If you are using a private container registry to store your images, you will need to provide your bot with the necessary credentials to access it.
First you will need to add your credentials to the cluster with the [`silverback cluster registry auth new`][silverback-cluster-registry-auth-new] command.
First you will need to add your credentials to the cluster with the [`silverback cluster registry new`][silverback-cluster-registry-new] command.

Then you can provide the name of these credentials when creating your bot with the [`silverback cluster bots new`][silverback-cluster-bots-new] or [`silverback cluster bots update`][silverback-cluster-bots-update] commands.

Expand Down Expand Up @@ -198,7 +198,7 @@ TODO: Downloading metrics from your Bot
[silverback-cluster-bots-start]: ../commands/cluster.html#silverback-cluster-bots-start
[silverback-cluster-bots-stop]: ../commands/cluster.html#silverback-cluster-bots-stop
[silverback-cluster-bots-update]: ../commands/cluster.html#silverback-cluster-bots-update
[silverback-cluster-registry-auth-new]: ../commands/cluster.html#silverback-cluster-registry-auth-new
[silverback-cluster-registry-new]: ../commands/cluster.html#silverback-cluster-registry-new
[silverback-cluster-vars]: ../commands/cluster.html#silverback-cluster-vars
[silverback-cluster-vars-info]: ../commands/cluster.html#silverback-cluster-vars-info
[silverback-cluster-vars-list]: ../commands/cluster.html#silverback-cluster-vars-list
Expand Down
2 changes: 1 addition & 1 deletion stable/_static/shibuya.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions stable/_static/shibuya.js

Large diffs are not rendered by default.

124 changes: 65 additions & 59 deletions stable/commands/cluster.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions stable/commands/run.html

Large diffs are not rendered by default.

136 changes: 71 additions & 65 deletions stable/genindex.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions stable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
function setColorMode(t){let e=document.documentElement;e.setAttribute("data-color-mode",t);let a=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,s=t;"auto"===t&&(s=a?"dark":"light"),"light"===s?(e.classList.remove("dark"),e.classList.add("light")):(e.classList.remove("light"),e.classList.add("dark"))}
setColorMode(localStorage._theme||"auto");
</script><link rel="stylesheet" type="text/css" href="_static/pygments.css?v=397bb51e" />
<link rel="stylesheet" type="text/css" href="_static/shibuya.css?v=83eaa723" />
<link rel="stylesheet" type="text/css" href="_static/shibuya.css?v=10d1008b" />
<link media="print" rel="stylesheet" type="text/css" href="_static/print.css?v=20ff2c19" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down Expand Up @@ -184,5 +184,5 @@
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-domain="docs.apeworx.io" defer="defer" src="https://plausible.io/js/script.js"></script>
<script src="_static/shibuya.js?v=e2e99575"></script></body>
<script src="_static/shibuya.js?v=55e26b35"></script></body>
</html>
6 changes: 3 additions & 3 deletions stable/methoddocs/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
function setColorMode(t){let e=document.documentElement;e.setAttribute("data-color-mode",t);let a=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,s=t;"auto"===t&&(s=a?"dark":"light"),"light"===s?(e.classList.remove("dark"),e.classList.add("light")):(e.classList.remove("light"),e.classList.add("dark"))}
setColorMode(localStorage._theme||"auto");
</script><link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=397bb51e" />
<link rel="stylesheet" type="text/css" href="../_static/shibuya.css?v=83eaa723" />
<link rel="stylesheet" type="text/css" href="../_static/shibuya.css?v=10d1008b" />
<link media="print" rel="stylesheet" type="text/css" href="../_static/print.css?v=20ff2c19" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down Expand Up @@ -189,7 +189,7 @@

<dl class="py exception">
<dt class="sig sig-object py" id="silverback.exceptions.StartupFailure">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">silverback.exceptions.</span></span><span class="sig-name descname"><span class="pre">StartupFailure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">exceptions</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Exception</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#silverback.exceptions.StartupFailure" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">silverback.exceptions.</span></span><span class="sig-name descname"><span class="pre">StartupFailure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">exceptions</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">BaseException</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#silverback.exceptions.StartupFailure" title="Link to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#silverback.exceptions.SilverbackException" title="silverback.exceptions.SilverbackException"><code class="xref py py-class docutils literal notranslate"><span class="pre">SilverbackException</span></code></a></p>
</dd></dl>

Expand Down Expand Up @@ -241,5 +241,5 @@
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-domain="docs.apeworx.io" defer="defer" src="https://plausible.io/js/script.js"></script>
<script src="../_static/shibuya.js?v=e2e99575"></script></body>
<script src="../_static/shibuya.js?v=55e26b35"></script></body>
</html>
16 changes: 8 additions & 8 deletions stable/methoddocs/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
function setColorMode(t){let e=document.documentElement;e.setAttribute("data-color-mode",t);let a=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,s=t;"auto"===t&&(s=a?"dark":"light"),"light"===s?(e.classList.remove("dark"),e.classList.add("light")):(e.classList.remove("light"),e.classList.add("dark"))}
setColorMode(localStorage._theme||"auto");
</script><link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=397bb51e" />
<link rel="stylesheet" type="text/css" href="../_static/shibuya.css?v=83eaa723" />
<link rel="stylesheet" type="text/css" href="../_static/shibuya.css?v=10d1008b" />
<link media="print" rel="stylesheet" type="text/css" href="../_static/print.css?v=20ff2c19" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down Expand Up @@ -145,7 +145,7 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
<span class="pre">`</span></code></p>
<p>Usage example:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="nd">@bot</span><span class="o">.</span><span class="n">on_</span><span class="p">(</span><span class="o">...</span><span class="p">)</span>
</span><span data-line="2"><span class="k">def</span> <span class="nf">do_something_with_state</span><span class="p">(</span><span class="n">value</span><span class="p">):</span>
</span><span data-line="2"><span class="k">def</span><span class="w"> </span><span class="nf">do_something_with_state</span><span class="p">(</span><span class="n">value</span><span class="p">):</span>
</span><span data-line="3"> <span class="c1"># Read from state using `getattr`</span>
</span><span data-line="4"> <span class="o">...</span> <span class="o">=</span> <span class="n">bot</span><span class="o">.</span><span class="n">state</span><span class="o">.</span><span class="n">something</span>
</span><span data-line="5">
Expand All @@ -167,7 +167,7 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">ManagerAccessMixin</span></code></p>
<p>The bot singleton. Must be initialized prior to use.</p>
<p>Usage example:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="kn">from</span> <span class="nn">silverback</span> <span class="kn">import</span> <span class="n">SilverbackBot</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="kn">from</span><span class="w"> </span><span class="nn">silverback</span><span class="w"> </span><span class="kn">import</span> <span class="n">SilverbackBot</span>
</span><span data-line="2">
</span><span data-line="3"><span class="n">bot</span> <span class="o">=</span> <span class="n">SilverbackBot</span><span class="p">()</span>
</span><span data-line="4">
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
Runner has decided to put the bot into the “shutdown” state.</p>
<p>Usage example:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="nd">@bot</span><span class="o">.</span><span class="n">on_shutdown</span><span class="p">()</span>
</span><span data-line="2"><span class="k">def</span> <span class="nf">do_something_on_shutdown</span><span class="p">():</span>
</span><span data-line="2"><span class="k">def</span><span class="w"> </span><span class="nf">do_something_on_shutdown</span><span class="p">():</span>
</span><span data-line="3"> <span class="o">...</span> <span class="c1"># Record final state of bot</span>
</span></pre></div>
</div>
Expand All @@ -242,7 +242,7 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
bot is put into the “run” state by the Runner.</p>
<p>Usage example:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="nd">@bot</span><span class="o">.</span><span class="n">on_startup</span><span class="p">()</span>
</span><span data-line="2"><span class="k">def</span> <span class="nf">do_something_on_startup</span><span class="p">(</span><span class="n">startup_state</span><span class="p">:</span> <span class="n">StateSnapshot</span><span class="p">):</span>
</span><span data-line="2"><span class="k">def</span><span class="w"> </span><span class="nf">do_something_on_startup</span><span class="p">(</span><span class="n">startup_state</span><span class="p">:</span> <span class="n">StateSnapshot</span><span class="p">):</span>
</span><span data-line="3"> <span class="o">...</span> <span class="c1"># Reprocess missed events or blocks</span>
</span></pre></div>
</div>
Expand All @@ -258,7 +258,7 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
<span class="pre">`</span></code></p>
<p>Usage example:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="nd">@bot</span><span class="o">.</span><span class="n">on_worker_shutdown</span><span class="p">()</span>
</span><span data-line="2"><span class="k">def</span> <span class="nf">do_something_on_shutdown</span><span class="p">(</span><span class="n">state</span><span class="p">):</span>
</span><span data-line="2"><span class="k">def</span><span class="w"> </span><span class="nf">do_something_on_shutdown</span><span class="p">(</span><span class="n">state</span><span class="p">):</span>
</span><span data-line="3"> <span class="o">...</span> <span class="c1"># Update some external service, perhaps using information from `state`.</span>
</span></pre></div>
</div>
Expand All @@ -274,7 +274,7 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
<span class="pre">`</span></code></p>
<p>Usage example:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span data-line="1"><span class="nd">@bot</span><span class="o">.</span><span class="n">on_worker_startup</span><span class="p">()</span>
</span><span data-line="2"><span class="k">def</span> <span class="nf">do_something_on_startup</span><span class="p">(</span><span class="n">state</span><span class="p">):</span>
</span><span data-line="2"><span class="k">def</span><span class="w"> </span><span class="nf">do_something_on_startup</span><span class="p">(</span><span class="n">state</span><span class="p">):</span>
</span><span data-line="3"> <span class="o">...</span> <span class="c1"># Can provision resources, or add things to `state`.</span>
</span></pre></div>
</div>
Expand Down Expand Up @@ -342,5 +342,5 @@ <h1>silverback.main<a class="headerlink" href="#silverback-main" title="Link to
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-domain="docs.apeworx.io" defer="defer" src="https://plausible.io/js/script.js"></script>
<script src="../_static/shibuya.js?v=e2e99575"></script></body>
<script src="../_static/shibuya.js?v=55e26b35"></script></body>
</html>
4 changes: 2 additions & 2 deletions stable/methoddocs/middlewares.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
function setColorMode(t){let e=document.documentElement;e.setAttribute("data-color-mode",t);let a=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,s=t;"auto"===t&&(s=a?"dark":"light"),"light"===s?(e.classList.remove("dark"),e.classList.add("light")):(e.classList.remove("light"),e.classList.add("dark"))}
setColorMode(localStorage._theme||"auto");
</script><link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=397bb51e" />
<link rel="stylesheet" type="text/css" href="../_static/shibuya.css?v=83eaa723" />
<link rel="stylesheet" type="text/css" href="../_static/shibuya.css?v=10d1008b" />
<link media="print" rel="stylesheet" type="text/css" href="../_static/print.css?v=20ff2c19" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down Expand Up @@ -230,5 +230,5 @@ <h1>silverback.middlewares<a class="headerlink" href="#silverback-middlewares" t
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-domain="docs.apeworx.io" defer="defer" src="https://plausible.io/js/script.js"></script>
<script src="../_static/shibuya.js?v=e2e99575"></script></body>
<script src="../_static/shibuya.js?v=55e26b35"></script></body>
</html>
Loading

0 comments on commit ad1a896

Please sign in to comment.