From fd85c8a8c5d4720271c486243c27791ce81cbace Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Fri, 30 May 2025 16:34:38 +0200 Subject: [PATCH 1/7] fix markup --- content/get-started/introduction/get-docker-desktop.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/get-started/introduction/get-docker-desktop.md b/content/get-started/introduction/get-docker-desktop.md index 7bb25be36e60..5b6ff9d5e088 100644 --- a/content/get-started/introduction/get-docker-desktop.md +++ b/content/get-started/introduction/get-docker-desktop.md @@ -26,6 +26,7 @@ This guide will walk you through the installation process, enabling you to exper > Commercial use of Docker Desktop in larger enterprises (more than 250 > employees OR more than $10 million USD in annual revenue) requires a [paid subscription](https://www.docker.com/pricing/?_gl=1*1nyypal*_ga*MTYxMTUxMzkzOS4xNjgzNTM0MTcw*_ga_XJWPQMJYHQ*MTcxNjk4MzU4Mi4xMjE2LjEuMTcxNjk4MzkzNS4xNy4wLjA.). +
{{< card title="Docker Desktop for Mac" description="[Download (Apple Silicon)](https://desktop.docker.com/mac/main/arm64/Docker.dmg?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-mac-arm64) | [Download (Intel)](https://desktop.docker.com/mac/main/amd64/Docker.dmg?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-mac-amd64) | [Install instructions](/desktop/setup/install/mac-install)" @@ -40,7 +41,7 @@ This guide will walk you through the installation process, enabling you to exper title="Docker Desktop for Linux" description="[Install instructions](/desktop/setup/install/linux/)" icon="/icons/Linux.svg" >}} - +
Once it's installed, complete the setup process and you're all set to run a Docker container. From 1b131923e5c0eb830036f0c4412068117d8ef0bf Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Fri, 30 May 2025 16:34:53 +0200 Subject: [PATCH 2/7] extract button style --- assets/css/components.css | 3 +++ layouts/shortcodes/button.html | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/assets/css/components.css b/assets/css/components.css index c77f6ec01a45..bfb1ef702cdb 100644 --- a/assets/css/components.css +++ b/assets/css/components.css @@ -94,6 +94,9 @@ @apply h-12 w-12 overflow-hidden; } } +.button { + @apply mt-1 inline-block rounded-sm bg-blue-500 p-1 px-3 text-blue-50 text-white hover:bg-blue-600 dark:bg-blue-500 hover:dark:bg-blue-400; +} .summary-bar { @apply my-1 mt-4 flex flex-col rounded-sm border-1 border-gray-100 bg-gray-50 p-4 dark:border-gray-800 dark:bg-gray-900; diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html index d59fe0b78a72..7335903e348a 100644 --- a/layouts/shortcodes/button.html +++ b/layouts/shortcodes/button.html @@ -7,10 +7,6 @@ {{- else -}} {{ $url = ref .Page $url }} {{- end -}} -
- {{ $text }} + From b49df55a9d9161c22982a63834cbd980d44c5676 Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Fri, 30 May 2025 16:35:07 +0200 Subject: [PATCH 3/7] extract chip --- assets/css/utilities.css | 3 +++ layouts/guides/landing.html | 4 +--- layouts/partials/components/guide-summary.html | 2 +- layouts/partials/languages.html | 4 +--- layouts/partials/tags.html | 5 +---- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/assets/css/utilities.css b/assets/css/utilities.css index 9141f145f05a..99471943da6d 100644 --- a/assets/css/utilities.css +++ b/assets/css/utilities.css @@ -251,3 +251,6 @@ } } } +@utility chip { + @apply border-divider-light dark:border-divider-dark inline-flex items-center gap-1 rounded-full border bg-gray-100 px-2 text-sm text-gray-800 select-none dark:bg-gray-700 dark:text-gray-200; +} diff --git a/layouts/guides/landing.html b/layouts/guides/landing.html index 4705c5863973..acc9989ea61d 100644 --- a/layouts/guides/landing.html +++ b/layouts/guides/landing.html @@ -261,9 +261,7 @@

{{- end }} {{- define "termchip" }} - + {{ partialCached "icon" "tag" "tag" }} diff --git a/layouts/partials/components/guide-summary.html b/layouts/partials/components/guide-summary.html index 01fa0b9a077d..458bf9645b4b 100644 --- a/layouts/partials/components/guide-summary.html +++ b/layouts/partials/components/guide-summary.html @@ -1,6 +1,6 @@
Skill level diff --git a/layouts/partials/languages.html b/layouts/partials/languages.html index b32ab192fe2e..f2447cae4331 100644 --- a/layouts/partials/languages.html +++ b/layouts/partials/languages.html @@ -10,9 +10,7 @@ {{- if not .Page.Params.icon }} {{- errorf "[languages] language is missing an icon: '%s' in %s" (urlize (strings.ToLower .Title)) page.File.Filename }} {{- end }} - + + {{ partialCached "icon" "tag" "tag" }} From 114a157a949b29336da9990fd70508ed3ed08c10 Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Fri, 30 May 2025 16:36:06 +0200 Subject: [PATCH 4/7] fix contrast --- layouts/guides/landing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/guides/landing.html b/layouts/guides/landing.html index acc9989ea61d..55733753e1e6 100644 --- a/layouts/guides/landing.html +++ b/layouts/guides/landing.html @@ -239,7 +239,7 @@

{{- define "guide-metadata" }}
{{- $langs := .GetTerms "languages" }} From 70c93904f384117a906cb22e0ab727da829e7aa1 Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Fri, 30 May 2025 16:54:31 +0200 Subject: [PATCH 5/7] expand toc --- layouts/_default/baseof.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 76280bcd9da3..7b06c790c819 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -29,7 +29,7 @@ } } })" - class="bg-background-toc dark:bg-background-toc fixed top-0 z-40 hidden h-screen w-full flex-none overflow-x-hidden overflow-y-auto md:sticky md:top-16 md:z-auto md:block md:h-[calc(100vh-64px)] md:w-[300px]" + class="bg-background-toc dark:bg-background-toc fixed top-0 z-40 hidden h-screen w-full flex-none overflow-x-hidden overflow-y-auto md:sticky md:top-16 md:z-auto md:block md:h-[calc(100vh-64px)] md:w-[320px]" :class="{ 'hidden': ! $store.showSidebar }" > @@ -40,7 +40,7 @@ x-transition.opacity >