docs: Fix Debian installation instructions (#219)

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
Max Truxa 2022-05-17 17:05:56 +02:00 committed by GitHub
parent 64d67e510e
commit 23297691f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View file

@ -45,7 +45,7 @@ Installing this package automatically starts and runs Caddy as a [systemd servic
Stable releases:
<pre><code class="cmd"><span class="bash">sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https</span>
<span class="bash">curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-stable.asc</span>
<span class="bash">curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg</span>
<span class="bash">curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list</span>
<span class="bash">sudo apt update</span>
<span class="bash">sudo apt install caddy</span></code></pre>
@ -53,7 +53,7 @@ Stable releases:
Testing releases (includes betas and release candidates):
<pre><code class="cmd"><span class="bash">sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https</span>
<span class="bash">curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-testing.asc</span>
<span class="bash">curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-testing-archive-keyring.gpg</span>
<span class="bash">curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-testing.list</span>
<span class="bash">sudo apt update</span>
<span class="bash">sudo apt install caddy</span></code></pre>

View file

@ -386,13 +386,21 @@ pre > code.cmd {
}
code.cmd.bash,
code.cmd .bash {
code.cmd .bash,
code.cmd.bash-continuation,
code.cmd .bash-continuation {
font-weight: bold;
}
code.cmd.bash::before,
code.cmd .bash::before {
content: '$';
content: '$';
margin-right: .5rem;
}
code.cmd.bash-continuation::before,
code.cmd .bash-continuation::before {
content: '>';
margin-right: .5rem;
}