From 20e2f7806d261ad8124b58e5f37b29ad3f07e600 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Fri, 28 Mar 2025 07:35:33 +0100 Subject: [PATCH] Prefer the console lexer when commandline and output mixed --- docs/ref/dns.md | 4 ++-- docs/ref/tls.md | 2 +- docs/setup/install/container.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/ref/dns.md b/docs/ref/dns.md index 3777661a..01f48e0a 100644 --- a/docs/ref/dns.md +++ b/docs/ref/dns.md @@ -76,14 +76,14 @@ hostname and port combination "http://hostname-in-magic-dns.myvpn.example.com:30 === "Query with dig" - ```shell + ```console dig +short grafana.myvpn.example.com 100.64.0.3 ``` === "Query with drill" - ```shell + ```console drill -Q grafana.myvpn.example.com 100.64.0.3 ``` diff --git a/docs/ref/tls.md b/docs/ref/tls.md index d1e91016..d377457c 100644 --- a/docs/ref/tls.md +++ b/docs/ref/tls.md @@ -52,7 +52,7 @@ If you want to validate that certificate renewal completed successfully, this ca 1. Open the URL for your headscale server in your browser of choice, and manually inspecting the expiry date of the certificate you receive. 2. Or, check remotely from CLI using `openssl`: -```bash +```console $ openssl s_client -servername [hostname] -connect [hostname]:443 | openssl x509 -noout -dates (...) notBefore=Feb 8 09:48:26 2024 GMT diff --git a/docs/setup/install/container.md b/docs/setup/install/container.md index 3963597d..2527c3be 100644 --- a/docs/setup/install/container.md +++ b/docs/setup/install/container.md @@ -140,13 +140,13 @@ Additionally, the debug container includes a minimalist Busybox shell. To launch a shell in the container, use: -``` +```shell docker run -it headscale/headscale:x.x.x-debug sh ``` You can also execute commands directly, such as `ls /ko-app` in this example: -``` +```shell docker run headscale/headscale:x.x.x-debug ls /ko-app ```