From 51606d845549a6805354bd22716f9bd59b65ac21 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Fri, 24 May 2024 09:47:25 -0700 Subject: [PATCH 1/8] Update standalone.md If you just copy/paste into powershell this fails... could just be on a single line? --- docs/fundamentals/dashboard/standalone.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index e5a167b2e2..753cd01a81 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -19,8 +19,7 @@ The [.NET Aspire dashboard](overview.md) provides a great UI for viewing telemet The dashboard is started using the Docker command line. ```bash -docker run --rm -it -p 18888:18888 -p 4317:18889 -d --name aspire-dashboard \ - mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 +docker run --rm -it -p 18888:18888 -p 4317:18889 -d --name aspire-dashboard mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` The preceding Docker command: From 6d413a5f585be06d978883ab03c844ce07c20327 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Tue, 28 May 2024 11:42:50 -0700 Subject: [PATCH 2/8] add zones --- docs/fundamentals/dashboard/standalone.md | 19 ++++++++++++++++++- docs/zones/zone-pivot-groups.yml | 8 ++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index 753cd01a81..d4734d6ed4 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -3,6 +3,7 @@ title: Standalone .NET Aspire dashboard description: How to use the .NET Aspire dashboard standalone. ms.date: 05/18/2024 ms.topic: reference +zone_pivot_groups: command-line-prompts --- # Standalone .NET Aspire dashboard @@ -18,9 +19,25 @@ The [.NET Aspire dashboard](overview.md) provides a great UI for viewing telemet The dashboard is started using the Docker command line. +:::zone pivot="bash" ```bash -docker run --rm -it -p 18888:18888 -p 4317:18889 -d --name aspire-dashboard mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 +docker run --rm -it \ + -p 18888:18888 \ + -p 4317:18889 -d \ + --name aspire-dashboard \ + mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` +:::zone-end + +:::zone pivot="ps" +```powershell +docker run --rm -it ` + -p 18888:18888 ` + -p 4317:18889 -d ` + --name aspire-dashboard ` + mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 +``` +:::zone-end The preceding Docker command: diff --git a/docs/zones/zone-pivot-groups.yml b/docs/zones/zone-pivot-groups.yml index 6bc5cf7074..3b5d74bad2 100644 --- a/docs/zones/zone-pivot-groups.yml +++ b/docs/zones/zone-pivot-groups.yml @@ -43,4 +43,12 @@ groups: title: Visual Studio Code - id: dotnet-cli title: .NET CLI +- id: command-line-prompts + title: Command Line + prompt: Choose a command line + pivots: + - id: bash + title: Bash + - id: ps + title: Powershell From 0bbd18c4893ed2baf58e6af8bf73218f1637cd7e Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Tue, 28 May 2024 11:44:36 -0700 Subject: [PATCH 3/8] spacing --- docs/fundamentals/dashboard/standalone.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index d4734d6ed4..dbe7d97c9a 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -18,8 +18,8 @@ The [.NET Aspire dashboard](overview.md) provides a great UI for viewing telemet ## Start the dashboard The dashboard is started using the Docker command line. - :::zone pivot="bash" + ```bash docker run --rm -it \ -p 18888:18888 \ @@ -27,9 +27,10 @@ docker run --rm -it \ --name aspire-dashboard \ mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` -:::zone-end +:::zone-end :::zone pivot="ps" + ```powershell docker run --rm -it ` -p 18888:18888 ` @@ -37,6 +38,7 @@ docker run --rm -it ` --name aspire-dashboard ` mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` + :::zone-end The preceding Docker command: From f710d31c54b1ddfbbb4ea48fee572795dde78ed1 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 29 May 2024 16:48:58 -0700 Subject: [PATCH 4/8] try tabs --- docs/fundamentals/dashboard/standalone.md | 12 +++++++----- docs/zones/zone-pivot-groups.yml | 8 -------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index dbe7d97c9a..2bc1dec621 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -3,7 +3,6 @@ title: Standalone .NET Aspire dashboard description: How to use the .NET Aspire dashboard standalone. ms.date: 05/18/2024 ms.topic: reference -zone_pivot_groups: command-line-prompts --- # Standalone .NET Aspire dashboard @@ -18,7 +17,9 @@ The [.NET Aspire dashboard](overview.md) provides a great UI for viewing telemet ## Start the dashboard The dashboard is started using the Docker command line. -:::zone pivot="bash" + +# [Bash](#tab/bash) + ```bash docker run --rm -it \ @@ -28,8 +29,9 @@ docker run --rm -it \ mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` -:::zone-end -:::zone pivot="ps" + +# [Powershell](#tab/powershell) + ```powershell docker run --rm -it ` @@ -39,7 +41,7 @@ docker run --rm -it ` mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` -:::zone-end +--- The preceding Docker command: diff --git a/docs/zones/zone-pivot-groups.yml b/docs/zones/zone-pivot-groups.yml index 3b5d74bad2..6bc5cf7074 100644 --- a/docs/zones/zone-pivot-groups.yml +++ b/docs/zones/zone-pivot-groups.yml @@ -43,12 +43,4 @@ groups: title: Visual Studio Code - id: dotnet-cli title: .NET CLI -- id: command-line-prompts - title: Command Line - prompt: Choose a command line - pivots: - - id: bash - title: Bash - - id: ps - title: Powershell From 84d40d2cf89e4c4b9663522a27c34a5e1526663d Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 29 May 2024 16:50:04 -0700 Subject: [PATCH 5/8] fix typo --- docs/fundamentals/dashboard/standalone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index 2bc1dec621..e473818898 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -30,7 +30,7 @@ docker run --rm -it \ ``` -# [Powershell](#tab/powershell) +# [PowerShell](#tab/powershell) ```powershell From 4c23488f0b887d3684b610d4360a88577f50dc13 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 29 May 2024 16:53:35 -0700 Subject: [PATCH 6/8] try cli for type --- docs/fundamentals/dashboard/standalone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index e473818898..2d0fea871f 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -21,7 +21,7 @@ The dashboard is started using the Docker command line. # [Bash](#tab/bash) -```bash +```cli docker run --rm -it \ -p 18888:18888 \ -p 4317:18889 -d \ From e315efce7078d90a9947caf2eeda7f3178768f5b Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 29 May 2024 16:58:25 -0700 Subject: [PATCH 7/8] back to bash :) --- docs/fundamentals/dashboard/standalone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index 2d0fea871f..e473818898 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -21,7 +21,7 @@ The dashboard is started using the Docker command line. # [Bash](#tab/bash) -```cli +```bash docker run --rm -it \ -p 18888:18888 \ -p 4317:18889 -d \ From 08687a217cb9b8a0bb9084558238a2e0db2b5bfa Mon Sep 17 00:00:00 2001 From: David Pine Date: Thu, 30 May 2024 08:00:01 -0500 Subject: [PATCH 8/8] Apply suggestions from code review --- docs/fundamentals/dashboard/standalone.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/fundamentals/dashboard/standalone.md b/docs/fundamentals/dashboard/standalone.md index e473818898..a1bdc2ef09 100644 --- a/docs/fundamentals/dashboard/standalone.md +++ b/docs/fundamentals/dashboard/standalone.md @@ -17,9 +17,8 @@ The [.NET Aspire dashboard](overview.md) provides a great UI for viewing telemet ## Start the dashboard The dashboard is started using the Docker command line. - -# [Bash](#tab/bash) - + +## [Bash](#tab/bash) ```bash docker run --rm -it \ @@ -29,9 +28,7 @@ docker run --rm -it \ mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 ``` - -# [PowerShell](#tab/powershell) - +## [PowerShell](#tab/powershell) ```powershell docker run --rm -it `