Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cli/lucli/tests/_fixtures/deploy/sshd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SSH test fixture

Two openssh-server containers on host ports 22022 and 22023, user `deploy`
with sudo and password auth disabled. Used by SshClientSpec (Task 6+) and
SshPoolSpec (Task 9).

## Start / Stop

```bash
bash tools/deploy-sshd-up.sh
bash tools/deploy-sshd-down.sh
```

`test_key` is a deterministic ed25519 keypair committed to the repo — it
has NO production value and exists only for test reproducibility.
1 change: 1 addition & 0 deletions cli/lucli/tests/_fixtures/deploy/sshd/authorized_keys
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIED8dz5J/2zX6dKwp5Oqlp5wguhfg4lY0Pg91Z/tIa/h wheels-deploy-test
24 changes: 24 additions & 0 deletions cli/lucli/tests/_fixtures/deploy/sshd/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
sshd1:
image: linuxserver/openssh-server:latest
environment:
PUBLIC_KEY_FILE: /keys/authorized_keys
USER_NAME: deploy
SUDO_ACCESS: "true"
PASSWORD_ACCESS: "false"
volumes:
- ./authorized_keys:/keys/authorized_keys:ro
ports:
- "22022:2222"

sshd2:
image: linuxserver/openssh-server:latest
environment:
PUBLIC_KEY_FILE: /keys/authorized_keys
USER_NAME: deploy
SUDO_ACCESS: "true"
PASSWORD_ACCESS: "false"
volumes:
- ./authorized_keys:/keys/authorized_keys:ro
ports:
- "22023:2222"
7 changes: 7 additions & 0 deletions cli/lucli/tests/_fixtures/deploy/sshd/test_key
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACBA/Hc+Sf9s1+nSsKeTqpaecILoX4OJWND4PdWf7SGv4QAAAJim5WLOpuVi
zgAAAAtzc2gtZWQyNTUxOQAAACBA/Hc+Sf9s1+nSsKeTqpaecILoX4OJWND4PdWf7SGv4Q
AAAEA7Lvr2A4p8d/fupWxM/MobsLDDSUaaOpzvnX83Wb5ukED8dz5J/2zX6dKwp5Oqlp5w
guhfg4lY0Pg91Z/tIa/hAAAAEndoZWVscy1kZXBsb3ktdGVzdAECAw==
-----END OPENSSH PRIVATE KEY-----
1 change: 1 addition & 0 deletions cli/lucli/tests/_fixtures/deploy/sshd/test_key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIED8dz5J/2zX6dKwp5Oqlp5wguhfg4lY0Pg91Z/tIa/h wheels-deploy-test
4 changes: 4 additions & 0 deletions tools/deploy-sshd-down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
FIX_DIR="$(cd "$(dirname "$0")/.." && pwd)/cli/lucli/tests/_fixtures/deploy/sshd"
docker compose -f "$FIX_DIR/docker-compose.yml" down
5 changes: 5 additions & 0 deletions tools/deploy-sshd-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
FIX_DIR="$(cd "$(dirname "$0")/.." && pwd)/cli/lucli/tests/_fixtures/deploy/sshd"
docker compose -f "$FIX_DIR/docker-compose.yml" up -d
sleep 5
18 changes: 13 additions & 5 deletions web/sites/guides/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,19 @@ function buildSidebarForVersion(version) {
return {
label: version.label,
collapsed: version.collapsed,
items: groups.map((g) => ({
label: g.label,
collapsed: version.collapsed,
items: (g.items || []).map(normalizeItem).filter(Boolean),
})),
items: groups.map((g) => {
// Top-level entry with a link and no children → render as a leaf link,
// not a collapsible group. Without this, Starlight would wrap it as an
// empty group and drop the link entirely (Glossary hit this bug).
if (g.link && (!g.items || g.items.length === 0)) {
return { label: g.label, link: g.link };
}
return {
label: g.label,
collapsed: version.collapsed,
items: (g.items || []).map(normalizeItem).filter(Boolean),
};
}),
};
}

Expand Down
Loading