From b181b822f81664e4ba19c98f5c2b23c4807b8203 Mon Sep 17 00:00:00 2001 From: Nikita Pedorich Date: Sat, 30 Dec 2023 16:19:45 +0100 Subject: [PATCH] Use Compose Spec links in docs (#202) --- src/nix/lib.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nix/lib.nix b/src/nix/lib.nix index f4d597e..b7aab59 100644 --- a/src/nix/lib.nix +++ b/src/nix/lib.nix @@ -3,11 +3,13 @@ let link = url: text: ''[${text}](${url})''; + composeSpecRev = "55b450aee50799a2f33cc99e1d714518babe305e"; + serviceRef = fragment: - ''See ${link "https://docs.docker.com/compose/compose-file/05-services/#${fragment}" "Docker Compose Services #${fragment}"}''; + ''See ${link "https://github.com/compose-spec/compose-spec/blob/${composeSpecRev}/05-services.md#${fragment}" "Compose Spec Services #${fragment}"}''; networkRef = fragment: - ''See ${link "https://docs.docker.com/compose/compose-file/06-networks/#${fragment}" "Docker Compose Network #${fragment}"}''; + ''See ${link "https://github.com/compose-spec/compose-spec/blob/${composeSpecRev}/06-networks.md#${fragment}" "Compose Spec Networks #${fragment}"}''; in {