From f891a26fe93593e85e12f75f607ae4b5eb5f0e58 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 5 Jul 2024 12:21:58 +0200 Subject: [PATCH] docs(sidebar): restructure segment layout resolves #5171 --- website/blog/2022-05-19-whats-new-3.mdx | 20 +- website/docs/configuration/colors.mdx | 6 +- website/docs/configuration/segment.mdx | 2 +- website/docs/configuration/templates.mdx | 4 +- website/docs/segments/{ => cli}/angular.mdx | 0 website/docs/segments/{ => cli}/argocd.mdx | 0 website/docs/segments/{ => cli}/bazel.mdx | 0 website/docs/segments/{ => cli}/buf.mdx | 0 website/docs/segments/{ => cli}/bun.mdx | 0 website/docs/segments/{ => cli}/cmake.mdx | 0 website/docs/segments/{ => cli}/deno.mdx | 0 website/docs/segments/{ => cli}/docker.mdx | 0 website/docs/segments/{ => cli}/firebase.mdx | 0 website/docs/segments/{ => cli}/flutter.mdx | 3 +- .../docs/segments/{ => cli}/gitversion.mdx | 0 website/docs/segments/{ => cli}/helm.mdx | 0 website/docs/segments/{ => cli}/kubectl.mdx | 0 website/docs/segments/{ => cli}/nbgv.mdx | 0 website/docs/segments/{ => cli}/npm.mdx | 0 website/docs/segments/{ => cli}/nx.mdx | 0 website/docs/segments/{ => cli}/pnpm.mdx | 0 website/docs/segments/{ => cli}/quasar.mdx | 0 website/docs/segments/{ => cli}/react.mdx | 0 website/docs/segments/{ => cli}/talosctl.mdx | 0 website/docs/segments/{ => cli}/terraform.mdx | 4 - .../docs/segments/{ => cli}/ui5tooling.mdx | 0 website/docs/segments/{ => cli}/umbraco.mdx | 6 +- website/docs/segments/{ => cli}/unity.mdx | 0 website/docs/segments/{ => cli}/xmake.mdx | 3 +- website/docs/segments/{ => cli}/yarn.mdx | 0 website/docs/segments/{ => cloud}/aws.mdx | 0 website/docs/segments/{ => cloud}/az.mdx | 0 website/docs/segments/{ => cloud}/azd.mdx | 2 +- website/docs/segments/{ => cloud}/azfunc.mdx | 0 website/docs/segments/{ => cloud}/cds.mdx | 0 website/docs/segments/{ => cloud}/cf.mdx | 0 .../docs/segments/{ => cloud}/cftarget.mdx | 0 website/docs/segments/{ => cloud}/gcp.mdx | 0 website/docs/segments/{ => cloud}/pulumi.mdx | 0 .../docs/segments/{ => cloud}/sitecore.mdx | 6 +- .../docs/segments/{ => health}/nightscout.mdx | 0 website/docs/segments/{ => health}/strava.mdx | 0 .../docs/segments/{ => health}/withings.mdx | 0 .../docs/segments/{ => languages}/crystal.mdx | 3 +- .../docs/segments/{ => languages}/dart.mdx | 0 .../docs/segments/{ => languages}/dotnet.mdx | 0 .../docs/segments/{ => languages}/elixir.mdx | 3 +- .../docs/segments/{ => languages}/golang.mdx | 0 .../docs/segments/{ => languages}/haskell.mdx | 0 .../docs/segments/{ => languages}/java.mdx | 0 .../docs/segments/{ => languages}/julia.mdx | 0 .../docs/segments/{ => languages}/kotlin.mdx | 0 website/docs/segments/{ => languages}/lua.mdx | 0 .../docs/segments/{ => languages}/node.mdx | 0 .../docs/segments/{ => languages}/ocaml.mdx | 3 +- .../docs/segments/{ => languages}/perl.mdx | 0 website/docs/segments/{ => languages}/php.mdx | 0 .../docs/segments/{ => languages}/python.mdx | 0 website/docs/segments/{ => languages}/r.mdx | 0 .../docs/segments/{ => languages}/ruby.mdx | 0 .../docs/segments/{ => languages}/rust.mdx | 0 .../docs/segments/{ => languages}/swift.mdx | 0 .../docs/segments/{ => languages}/vala.mdx | 3 +- website/docs/segments/{ => music}/lastfm.mdx | 0 website/docs/segments/{ => music}/spotify.mdx | 0 website/docs/segments/{ => music}/ytm.mdx | 0 website/docs/segments/{ => scm}/fossil.mdx | 0 website/docs/segments/{ => scm}/git.mdx | 0 website/docs/segments/{ => scm}/mercurial.mdx | 0 website/docs/segments/{ => scm}/plastic.mdx | 0 website/docs/segments/{ => scm}/sapling.mdx | 0 website/docs/segments/{ => scm}/svn.mdx | 0 .../docs/segments/{ => system}/battery.mdx | 0 .../docs/segments/{ => system}/command.mdx | 0 .../docs/segments/{ => system}/connection.mdx | 0 .../segments/{ => system}/executiontime.mdx | 0 website/docs/segments/{ => system}/os.mdx | 0 website/docs/segments/{ => system}/path.mdx | 0 .../docs/segments/{ => system}/project.mdx | 0 website/docs/segments/{ => system}/root.mdx | 0 .../docs/segments/{ => system}/session.mdx | 0 website/docs/segments/{ => system}/shell.mdx | 0 website/docs/segments/{ => system}/status.mdx | 0 .../docs/segments/{ => system}/sysinfo.mdx | 0 website/docs/segments/{ => system}/text.mdx | 0 website/docs/segments/{ => system}/time.mdx | 0 .../docs/segments/{ => system}/upgrade.mdx | 0 website/docs/segments/{ => system}/winreg.mdx | 0 .../docs/segments/{ => web}/brewfather.mdx | 0 .../segments/{ => web}/carbonintensity.mdx | 0 website/docs/segments/{ => web}/ipify.mdx | 0 website/docs/segments/{ => web}/nba.mdx | 0 website/docs/segments/{ => web}/owm.mdx | 0 website/docs/segments/{ => web}/wakatime.mdx | 0 website/sidebars.js | 235 +++++++++++------- 95 files changed, 185 insertions(+), 118 deletions(-) rename website/docs/segments/{ => cli}/angular.mdx (100%) rename website/docs/segments/{ => cli}/argocd.mdx (100%) rename website/docs/segments/{ => cli}/bazel.mdx (100%) rename website/docs/segments/{ => cli}/buf.mdx (100%) rename website/docs/segments/{ => cli}/bun.mdx (100%) rename website/docs/segments/{ => cli}/cmake.mdx (100%) rename website/docs/segments/{ => cli}/deno.mdx (100%) rename website/docs/segments/{ => cli}/docker.mdx (100%) rename website/docs/segments/{ => cli}/firebase.mdx (100%) rename website/docs/segments/{ => cli}/flutter.mdx (98%) rename website/docs/segments/{ => cli}/gitversion.mdx (100%) rename website/docs/segments/{ => cli}/helm.mdx (100%) rename website/docs/segments/{ => cli}/kubectl.mdx (100%) rename website/docs/segments/{ => cli}/nbgv.mdx (100%) rename website/docs/segments/{ => cli}/npm.mdx (100%) rename website/docs/segments/{ => cli}/nx.mdx (100%) rename website/docs/segments/{ => cli}/pnpm.mdx (100%) rename website/docs/segments/{ => cli}/quasar.mdx (100%) rename website/docs/segments/{ => cli}/react.mdx (100%) rename website/docs/segments/{ => cli}/talosctl.mdx (100%) rename website/docs/segments/{ => cli}/terraform.mdx (90%) rename website/docs/segments/{ => cli}/ui5tooling.mdx (100%) rename website/docs/segments/{ => cli}/umbraco.mdx (89%) rename website/docs/segments/{ => cli}/unity.mdx (100%) rename website/docs/segments/{ => cli}/xmake.mdx (98%) rename website/docs/segments/{ => cli}/yarn.mdx (100%) rename website/docs/segments/{ => cloud}/aws.mdx (100%) rename website/docs/segments/{ => cloud}/az.mdx (100%) rename website/docs/segments/{ => cloud}/azd.mdx (96%) rename website/docs/segments/{ => cloud}/azfunc.mdx (100%) rename website/docs/segments/{ => cloud}/cds.mdx (100%) rename website/docs/segments/{ => cloud}/cf.mdx (100%) rename website/docs/segments/{ => cloud}/cftarget.mdx (100%) rename website/docs/segments/{ => cloud}/gcp.mdx (100%) rename website/docs/segments/{ => cloud}/pulumi.mdx (100%) rename website/docs/segments/{ => cloud}/sitecore.mdx (82%) rename website/docs/segments/{ => health}/nightscout.mdx (100%) rename website/docs/segments/{ => health}/strava.mdx (100%) rename website/docs/segments/{ => health}/withings.mdx (100%) rename website/docs/segments/{ => languages}/crystal.mdx (97%) rename website/docs/segments/{ => languages}/dart.mdx (100%) rename website/docs/segments/{ => languages}/dotnet.mdx (100%) rename website/docs/segments/{ => languages}/elixir.mdx (98%) rename website/docs/segments/{ => languages}/golang.mdx (100%) rename website/docs/segments/{ => languages}/haskell.mdx (100%) rename website/docs/segments/{ => languages}/java.mdx (100%) rename website/docs/segments/{ => languages}/julia.mdx (100%) rename website/docs/segments/{ => languages}/kotlin.mdx (100%) rename website/docs/segments/{ => languages}/lua.mdx (100%) rename website/docs/segments/{ => languages}/node.mdx (100%) rename website/docs/segments/{ => languages}/ocaml.mdx (98%) rename website/docs/segments/{ => languages}/perl.mdx (100%) rename website/docs/segments/{ => languages}/php.mdx (100%) rename website/docs/segments/{ => languages}/python.mdx (100%) rename website/docs/segments/{ => languages}/r.mdx (100%) rename website/docs/segments/{ => languages}/ruby.mdx (100%) rename website/docs/segments/{ => languages}/rust.mdx (100%) rename website/docs/segments/{ => languages}/swift.mdx (100%) rename website/docs/segments/{ => languages}/vala.mdx (98%) rename website/docs/segments/{ => music}/lastfm.mdx (100%) rename website/docs/segments/{ => music}/spotify.mdx (100%) rename website/docs/segments/{ => music}/ytm.mdx (100%) rename website/docs/segments/{ => scm}/fossil.mdx (100%) rename website/docs/segments/{ => scm}/git.mdx (100%) rename website/docs/segments/{ => scm}/mercurial.mdx (100%) rename website/docs/segments/{ => scm}/plastic.mdx (100%) rename website/docs/segments/{ => scm}/sapling.mdx (100%) rename website/docs/segments/{ => scm}/svn.mdx (100%) rename website/docs/segments/{ => system}/battery.mdx (100%) rename website/docs/segments/{ => system}/command.mdx (100%) rename website/docs/segments/{ => system}/connection.mdx (100%) rename website/docs/segments/{ => system}/executiontime.mdx (100%) rename website/docs/segments/{ => system}/os.mdx (100%) rename website/docs/segments/{ => system}/path.mdx (100%) rename website/docs/segments/{ => system}/project.mdx (100%) rename website/docs/segments/{ => system}/root.mdx (100%) rename website/docs/segments/{ => system}/session.mdx (100%) rename website/docs/segments/{ => system}/shell.mdx (100%) rename website/docs/segments/{ => system}/status.mdx (100%) rename website/docs/segments/{ => system}/sysinfo.mdx (100%) rename website/docs/segments/{ => system}/text.mdx (100%) rename website/docs/segments/{ => system}/time.mdx (100%) rename website/docs/segments/{ => system}/upgrade.mdx (100%) rename website/docs/segments/{ => system}/winreg.mdx (100%) rename website/docs/segments/{ => web}/brewfather.mdx (100%) rename website/docs/segments/{ => web}/carbonintensity.mdx (100%) rename website/docs/segments/{ => web}/ipify.mdx (100%) rename website/docs/segments/{ => web}/nba.mdx (100%) rename website/docs/segments/{ => web}/owm.mdx (100%) rename website/docs/segments/{ => web}/wakatime.mdx (100%) diff --git a/website/blog/2022-05-19-whats-new-3.mdx b/website/blog/2022-05-19-whats-new-3.mdx index dc5ca37e..9db6d798 100644 --- a/website/blog/2022-05-19-whats-new-3.mdx +++ b/website/blog/2022-05-19-whats-new-3.mdx @@ -154,20 +154,20 @@ Keep that prompt posh everyone! [migration]: /docs/migrating [giveaway]: https://twitter.com/jandedobbeleer/status/1511031115569639428?s=20&t=5aZbBZxGXbCBmc-R4WAdIQ [samerde]: https://twitter.com/samerde -[project]: /docs/segments/project -[git]: /docs/segments/git -[python]: /docs/segments/python -[shell]: /docs/segments/shell +[project]: /docs/segments/system/project +[git]: /docs/segments/scm/git +[python]: /docs/segments/languages/python +[shell]: /docs/segments/system/shell [nu]: https://www.nushell.sh [git-status]: https://git-scm.com/docs/git-status#Documentation/git-status.txt--ultmodegt [cargo]: https://crates.io [poetry]: https://python-poetry.org [php]: https://getcomposer.org [nuspec]: https://docs.microsoft.com/en-us/nuget/reference/nuspec -[battery]: /docs/segments/battery +[battery]: /docs/segments/system/battery [winget]: https://docs.microsoft.com/en-us/windows/package-manager/winget/ -[dotnet]: /docs/segments/dotnet -[iterm]: /docs/segments/iterm -[memory]: /docs/segments/memory -[exit]: /docs/segments/exit -[path]: /docs/segments/path +[dotnet]: /docs/segments/languages/dotnet +[iterm]: /docs/segments/system/iterm +[memory]: /docs/segments/system/memory +[exit]: /docs/segments/system/status +[path]: /docs/segments/system/path diff --git a/website/docs/configuration/colors.mdx b/website/docs/configuration/colors.mdx index 257df6e7..20a5f514 100644 --- a/website/docs/configuration/colors.mdx +++ b/website/docs/configuration/colors.mdx @@ -263,10 +263,10 @@ cycle always gets precedence over everything else. [hexcolors]: https://htmlcolorcodes.com/color-chart/material-design-color-chart/ [ansicolors]: https://htmlcolorcodes.com/color-chart/material-design-color-chart/ -[git]: /docs/segments/git -[battery]: /docs/segments/battery +[git]: /docs/segments/scm//git +[battery]: /docs/segments/system/battery [template-properties]: /docs/configuration/templates#global-properties -[aws]: /docs/segments/aws +[aws]: /docs/segments/cloud/aws [go-text-template]: https://golang.org/pkg/text/template/ [sprig]: https://masterminds.github.io/sprig/ [templates]: templates.mdx diff --git a/website/docs/configuration/segment.mdx b/website/docs/configuration/segment.mdx index 9b61d5a0..89111fca 100644 --- a/website/docs/configuration/segment.mdx +++ b/website/docs/configuration/segment.mdx @@ -184,7 +184,7 @@ of a shell, it will not disable in the others. To list the currently toggled segments, use `oh-my-posh get toggles`. -[segments]: /docs/segments/angular +[segments]: /docs/segments/cli/angular [properties]: #properties [style]: #style [colors]: /docs/configuration/colors diff --git a/website/docs/configuration/templates.mdx b/website/docs/configuration/templates.mdx index a3f8de03..ead9efbf 100644 --- a/website/docs/configuration/templates.mdx +++ b/website/docs/configuration/templates.mdx @@ -266,8 +266,8 @@ This can be used in templates and icons/text inside your config. [go-text-template]: https://pkg.go.dev/text/template [sprig]: https://masterminds.github.io/sprig/ [glob]: https://pkg.go.dev/path/filepath#Glob -[git]: /docs/segments/git -[status]: /docs/segments/status +[git]: /docs/segments/scm/git +[status]: /docs/segments/system/status [templates]: /docs/configuration/segment [regexpms]: https://pkg.go.dev/regexp#Regexp.MatchString [regexpra]: https://pkg.go.dev/regexp#Regexp.ReplaceAllString diff --git a/website/docs/segments/angular.mdx b/website/docs/segments/cli/angular.mdx similarity index 100% rename from website/docs/segments/angular.mdx rename to website/docs/segments/cli/angular.mdx diff --git a/website/docs/segments/argocd.mdx b/website/docs/segments/cli/argocd.mdx similarity index 100% rename from website/docs/segments/argocd.mdx rename to website/docs/segments/cli/argocd.mdx diff --git a/website/docs/segments/bazel.mdx b/website/docs/segments/cli/bazel.mdx similarity index 100% rename from website/docs/segments/bazel.mdx rename to website/docs/segments/cli/bazel.mdx diff --git a/website/docs/segments/buf.mdx b/website/docs/segments/cli/buf.mdx similarity index 100% rename from website/docs/segments/buf.mdx rename to website/docs/segments/cli/buf.mdx diff --git a/website/docs/segments/bun.mdx b/website/docs/segments/cli/bun.mdx similarity index 100% rename from website/docs/segments/bun.mdx rename to website/docs/segments/cli/bun.mdx diff --git a/website/docs/segments/cmake.mdx b/website/docs/segments/cli/cmake.mdx similarity index 100% rename from website/docs/segments/cmake.mdx rename to website/docs/segments/cli/cmake.mdx diff --git a/website/docs/segments/deno.mdx b/website/docs/segments/cli/deno.mdx similarity index 100% rename from website/docs/segments/deno.mdx rename to website/docs/segments/cli/deno.mdx diff --git a/website/docs/segments/docker.mdx b/website/docs/segments/cli/docker.mdx similarity index 100% rename from website/docs/segments/docker.mdx rename to website/docs/segments/cli/docker.mdx diff --git a/website/docs/segments/firebase.mdx b/website/docs/segments/cli/firebase.mdx similarity index 100% rename from website/docs/segments/firebase.mdx rename to website/docs/segments/cli/firebase.mdx diff --git a/website/docs/segments/flutter.mdx b/website/docs/segments/cli/flutter.mdx similarity index 98% rename from website/docs/segments/flutter.mdx rename to website/docs/segments/cli/flutter.mdx index 2b7d2bd2..482114f1 100644 --- a/website/docs/segments/flutter.mdx +++ b/website/docs/segments/cli/flutter.mdx @@ -6,7 +6,7 @@ sidebar_label: Flutter ## What -Display the currently active flutter version. +Display the currently active [flutter] version. ## Sample Configuration @@ -59,3 +59,4 @@ import Config from "@site/src/components/Config.js"; [go-text-template]: https://golang.org/pkg/text/template/ [templates]: /docs/configuration/templates +[flutter]: https://flutter.dev/ diff --git a/website/docs/segments/gitversion.mdx b/website/docs/segments/cli/gitversion.mdx similarity index 100% rename from website/docs/segments/gitversion.mdx rename to website/docs/segments/cli/gitversion.mdx diff --git a/website/docs/segments/helm.mdx b/website/docs/segments/cli/helm.mdx similarity index 100% rename from website/docs/segments/helm.mdx rename to website/docs/segments/cli/helm.mdx diff --git a/website/docs/segments/kubectl.mdx b/website/docs/segments/cli/kubectl.mdx similarity index 100% rename from website/docs/segments/kubectl.mdx rename to website/docs/segments/cli/kubectl.mdx diff --git a/website/docs/segments/nbgv.mdx b/website/docs/segments/cli/nbgv.mdx similarity index 100% rename from website/docs/segments/nbgv.mdx rename to website/docs/segments/cli/nbgv.mdx diff --git a/website/docs/segments/npm.mdx b/website/docs/segments/cli/npm.mdx similarity index 100% rename from website/docs/segments/npm.mdx rename to website/docs/segments/cli/npm.mdx diff --git a/website/docs/segments/nx.mdx b/website/docs/segments/cli/nx.mdx similarity index 100% rename from website/docs/segments/nx.mdx rename to website/docs/segments/cli/nx.mdx diff --git a/website/docs/segments/pnpm.mdx b/website/docs/segments/cli/pnpm.mdx similarity index 100% rename from website/docs/segments/pnpm.mdx rename to website/docs/segments/cli/pnpm.mdx diff --git a/website/docs/segments/quasar.mdx b/website/docs/segments/cli/quasar.mdx similarity index 100% rename from website/docs/segments/quasar.mdx rename to website/docs/segments/cli/quasar.mdx diff --git a/website/docs/segments/react.mdx b/website/docs/segments/cli/react.mdx similarity index 100% rename from website/docs/segments/react.mdx rename to website/docs/segments/cli/react.mdx diff --git a/website/docs/segments/talosctl.mdx b/website/docs/segments/cli/talosctl.mdx similarity index 100% rename from website/docs/segments/talosctl.mdx rename to website/docs/segments/cli/talosctl.mdx diff --git a/website/docs/segments/terraform.mdx b/website/docs/segments/cli/terraform.mdx similarity index 90% rename from website/docs/segments/terraform.mdx rename to website/docs/segments/cli/terraform.mdx index d3cfeebc..1db6a3bd 100644 --- a/website/docs/segments/terraform.mdx +++ b/website/docs/segments/cli/terraform.mdx @@ -8,10 +8,6 @@ sidebar_label: Terraform Display the currently active Terraform Workspace name. -:::caution -This requires a terraform binary in your PATH and will only show in directories that contain a `.terraform` subdirectory. -::: - ## Sample Configuration import Config from '@site/src/components/Config.js'; diff --git a/website/docs/segments/ui5tooling.mdx b/website/docs/segments/cli/ui5tooling.mdx similarity index 100% rename from website/docs/segments/ui5tooling.mdx rename to website/docs/segments/cli/ui5tooling.mdx diff --git a/website/docs/segments/umbraco.mdx b/website/docs/segments/cli/umbraco.mdx similarity index 89% rename from website/docs/segments/umbraco.mdx rename to website/docs/segments/cli/umbraco.mdx index 070bbaa5..8477f79a 100644 --- a/website/docs/segments/umbraco.mdx +++ b/website/docs/segments/cli/umbraco.mdx @@ -6,7 +6,7 @@ sidebar_label: Umbraco ## What -Display current Umbraco Version if found inside the current working directory. +Display current [Umbraco] Version if found inside the current working directory. The segment will only show based on the following logic * The current folder contains the folder named umbraco @@ -54,3 +54,7 @@ import Config from '@site/src/components/Config.js'; | -------------- | --------- | ------------------------------------------------------------------------------------------------------------------- | | `.Modern` | `boolean` | a boolean to detemine if this is modern Umbraco V9+ using modern .NET or if its legacy Umbraco using .NET Framework | | `.Version` | `string` | the version of umbraco found | + +[go-text-template]: https://golang.org/pkg/text/template/ +[templates]: /docs/configuration/templates +[Umbraco]: https://umbraco.com/ diff --git a/website/docs/segments/unity.mdx b/website/docs/segments/cli/unity.mdx similarity index 100% rename from website/docs/segments/unity.mdx rename to website/docs/segments/cli/unity.mdx diff --git a/website/docs/segments/xmake.mdx b/website/docs/segments/cli/xmake.mdx similarity index 98% rename from website/docs/segments/xmake.mdx rename to website/docs/segments/cli/xmake.mdx index deba166f..57d170c4 100644 --- a/website/docs/segments/xmake.mdx +++ b/website/docs/segments/cli/xmake.mdx @@ -6,7 +6,7 @@ sidebar_label: XMake ## What -Display the currently active xmake version. +Display the currently active [xmake] version. ## Sample Configuration @@ -58,3 +58,4 @@ import Config from "@site/src/components/Config.js"; [go-text-template]: https://golang.org/pkg/text/template/ [templates]: configuration/templates.mdx +[xmake]: https://xmake.io/ diff --git a/website/docs/segments/yarn.mdx b/website/docs/segments/cli/yarn.mdx similarity index 100% rename from website/docs/segments/yarn.mdx rename to website/docs/segments/cli/yarn.mdx diff --git a/website/docs/segments/aws.mdx b/website/docs/segments/cloud/aws.mdx similarity index 100% rename from website/docs/segments/aws.mdx rename to website/docs/segments/cloud/aws.mdx diff --git a/website/docs/segments/az.mdx b/website/docs/segments/cloud/az.mdx similarity index 100% rename from website/docs/segments/az.mdx rename to website/docs/segments/cloud/az.mdx diff --git a/website/docs/segments/azd.mdx b/website/docs/segments/cloud/azd.mdx similarity index 96% rename from website/docs/segments/azd.mdx rename to website/docs/segments/cloud/azd.mdx index 9ea666a9..b36e796c 100644 --- a/website/docs/segments/azd.mdx +++ b/website/docs/segments/cloud/azd.mdx @@ -1,7 +1,7 @@ --- id: azd title: Azure Developer CLI -sidebar_label: azd +sidebar_label: Azure Dev CLI --- ## What diff --git a/website/docs/segments/azfunc.mdx b/website/docs/segments/cloud/azfunc.mdx similarity index 100% rename from website/docs/segments/azfunc.mdx rename to website/docs/segments/cloud/azfunc.mdx diff --git a/website/docs/segments/cds.mdx b/website/docs/segments/cloud/cds.mdx similarity index 100% rename from website/docs/segments/cds.mdx rename to website/docs/segments/cloud/cds.mdx diff --git a/website/docs/segments/cf.mdx b/website/docs/segments/cloud/cf.mdx similarity index 100% rename from website/docs/segments/cf.mdx rename to website/docs/segments/cloud/cf.mdx diff --git a/website/docs/segments/cftarget.mdx b/website/docs/segments/cloud/cftarget.mdx similarity index 100% rename from website/docs/segments/cftarget.mdx rename to website/docs/segments/cloud/cftarget.mdx diff --git a/website/docs/segments/gcp.mdx b/website/docs/segments/cloud/gcp.mdx similarity index 100% rename from website/docs/segments/gcp.mdx rename to website/docs/segments/cloud/gcp.mdx diff --git a/website/docs/segments/pulumi.mdx b/website/docs/segments/cloud/pulumi.mdx similarity index 100% rename from website/docs/segments/pulumi.mdx rename to website/docs/segments/cloud/pulumi.mdx diff --git a/website/docs/segments/sitecore.mdx b/website/docs/segments/cloud/sitecore.mdx similarity index 82% rename from website/docs/segments/sitecore.mdx rename to website/docs/segments/cloud/sitecore.mdx index 5e57edc2..091d69ae 100644 --- a/website/docs/segments/sitecore.mdx +++ b/website/docs/segments/cloud/sitecore.mdx @@ -6,7 +6,7 @@ sidebar_label: Sitecore ## What -Display current Sitecore environment. Will not be active when sitecore.json and user.json don't exist. +Display current [Sitecore] environment. Will not be active when sitecore.json and user.json don't exist. ## Sample Configuration @@ -42,3 +42,7 @@ Display current Sitecore environment. Will not be active when sitecore.json and | -------------- | -------- | ---------------------------------------- | | `EndpointName` | `string` | name of the current Sitecore environment | | `CmHost` | `string` | host of the current Sitecore environment | + +[go-text-template]: https://golang.org/pkg/text/template/ +[templates]: /docs/configuration/templates +[Sitecore]: https://www.sitecore.com/ diff --git a/website/docs/segments/nightscout.mdx b/website/docs/segments/health/nightscout.mdx similarity index 100% rename from website/docs/segments/nightscout.mdx rename to website/docs/segments/health/nightscout.mdx diff --git a/website/docs/segments/strava.mdx b/website/docs/segments/health/strava.mdx similarity index 100% rename from website/docs/segments/strava.mdx rename to website/docs/segments/health/strava.mdx diff --git a/website/docs/segments/withings.mdx b/website/docs/segments/health/withings.mdx similarity index 100% rename from website/docs/segments/withings.mdx rename to website/docs/segments/health/withings.mdx diff --git a/website/docs/segments/crystal.mdx b/website/docs/segments/languages/crystal.mdx similarity index 97% rename from website/docs/segments/crystal.mdx rename to website/docs/segments/languages/crystal.mdx index a552c2f8..a021432e 100644 --- a/website/docs/segments/crystal.mdx +++ b/website/docs/segments/languages/crystal.mdx @@ -6,7 +6,7 @@ sidebar_label: Crystal ## What -Display the currently active crystal version. +Display the currently active [crystal] version. ## Sample Configuration @@ -59,3 +59,4 @@ import Config from "@site/src/components/Config.js"; [go-text-template]: https://golang.org/pkg/text/template/ [templates]: /docs/configuration/templates +[crystal]: https://crystal-lang.org/ diff --git a/website/docs/segments/dart.mdx b/website/docs/segments/languages/dart.mdx similarity index 100% rename from website/docs/segments/dart.mdx rename to website/docs/segments/languages/dart.mdx diff --git a/website/docs/segments/dotnet.mdx b/website/docs/segments/languages/dotnet.mdx similarity index 100% rename from website/docs/segments/dotnet.mdx rename to website/docs/segments/languages/dotnet.mdx diff --git a/website/docs/segments/elixir.mdx b/website/docs/segments/languages/elixir.mdx similarity index 98% rename from website/docs/segments/elixir.mdx rename to website/docs/segments/languages/elixir.mdx index b5c844e5..46d7b498 100644 --- a/website/docs/segments/elixir.mdx +++ b/website/docs/segments/languages/elixir.mdx @@ -6,7 +6,7 @@ sidebar_label: Elixir ## What -Display the currently active elixir version. +Display the currently active [elixir] version. ## Sample Configuration @@ -58,3 +58,4 @@ import Config from "@site/src/components/Config.js"; [go-text-template]: https://golang.org/pkg/text/template/ [templates]: /docs/configuration/templates +[elixir]: https://elixir-lang.org/ diff --git a/website/docs/segments/golang.mdx b/website/docs/segments/languages/golang.mdx similarity index 100% rename from website/docs/segments/golang.mdx rename to website/docs/segments/languages/golang.mdx diff --git a/website/docs/segments/haskell.mdx b/website/docs/segments/languages/haskell.mdx similarity index 100% rename from website/docs/segments/haskell.mdx rename to website/docs/segments/languages/haskell.mdx diff --git a/website/docs/segments/java.mdx b/website/docs/segments/languages/java.mdx similarity index 100% rename from website/docs/segments/java.mdx rename to website/docs/segments/languages/java.mdx diff --git a/website/docs/segments/julia.mdx b/website/docs/segments/languages/julia.mdx similarity index 100% rename from website/docs/segments/julia.mdx rename to website/docs/segments/languages/julia.mdx diff --git a/website/docs/segments/kotlin.mdx b/website/docs/segments/languages/kotlin.mdx similarity index 100% rename from website/docs/segments/kotlin.mdx rename to website/docs/segments/languages/kotlin.mdx diff --git a/website/docs/segments/lua.mdx b/website/docs/segments/languages/lua.mdx similarity index 100% rename from website/docs/segments/lua.mdx rename to website/docs/segments/languages/lua.mdx diff --git a/website/docs/segments/node.mdx b/website/docs/segments/languages/node.mdx similarity index 100% rename from website/docs/segments/node.mdx rename to website/docs/segments/languages/node.mdx diff --git a/website/docs/segments/ocaml.mdx b/website/docs/segments/languages/ocaml.mdx similarity index 98% rename from website/docs/segments/ocaml.mdx rename to website/docs/segments/languages/ocaml.mdx index 2ec1581a..2ab52482 100644 --- a/website/docs/segments/ocaml.mdx +++ b/website/docs/segments/languages/ocaml.mdx @@ -6,7 +6,7 @@ sidebar_label: Ocaml ## What -Display the currently active OCaml version. +Display the currently active [OCaml] version. ## Sample Configuration @@ -58,3 +58,4 @@ import Config from "@site/src/components/Config.js"; [go-text-template]: https://golang.org/pkg/text/template/ [templates]: /docs/configuration/templates +[OCaml]: https://ocaml.org/ diff --git a/website/docs/segments/perl.mdx b/website/docs/segments/languages/perl.mdx similarity index 100% rename from website/docs/segments/perl.mdx rename to website/docs/segments/languages/perl.mdx diff --git a/website/docs/segments/php.mdx b/website/docs/segments/languages/php.mdx similarity index 100% rename from website/docs/segments/php.mdx rename to website/docs/segments/languages/php.mdx diff --git a/website/docs/segments/python.mdx b/website/docs/segments/languages/python.mdx similarity index 100% rename from website/docs/segments/python.mdx rename to website/docs/segments/languages/python.mdx diff --git a/website/docs/segments/r.mdx b/website/docs/segments/languages/r.mdx similarity index 100% rename from website/docs/segments/r.mdx rename to website/docs/segments/languages/r.mdx diff --git a/website/docs/segments/ruby.mdx b/website/docs/segments/languages/ruby.mdx similarity index 100% rename from website/docs/segments/ruby.mdx rename to website/docs/segments/languages/ruby.mdx diff --git a/website/docs/segments/rust.mdx b/website/docs/segments/languages/rust.mdx similarity index 100% rename from website/docs/segments/rust.mdx rename to website/docs/segments/languages/rust.mdx diff --git a/website/docs/segments/swift.mdx b/website/docs/segments/languages/swift.mdx similarity index 100% rename from website/docs/segments/swift.mdx rename to website/docs/segments/languages/swift.mdx diff --git a/website/docs/segments/vala.mdx b/website/docs/segments/languages/vala.mdx similarity index 98% rename from website/docs/segments/vala.mdx rename to website/docs/segments/languages/vala.mdx index c8812c6b..ac6884e1 100644 --- a/website/docs/segments/vala.mdx +++ b/website/docs/segments/languages/vala.mdx @@ -6,7 +6,7 @@ sidebar_label: Vala ## What -Display the currently active vala version. +Display the currently active [vala] version. ## Sample Configuration @@ -58,3 +58,4 @@ import Config from "@site/src/components/Config.js"; [go-text-template]: https://golang.org/pkg/text/template/ [templates]: /docs/configuration/templates +[vala]: https://vala.dev/ diff --git a/website/docs/segments/lastfm.mdx b/website/docs/segments/music/lastfm.mdx similarity index 100% rename from website/docs/segments/lastfm.mdx rename to website/docs/segments/music/lastfm.mdx diff --git a/website/docs/segments/spotify.mdx b/website/docs/segments/music/spotify.mdx similarity index 100% rename from website/docs/segments/spotify.mdx rename to website/docs/segments/music/spotify.mdx diff --git a/website/docs/segments/ytm.mdx b/website/docs/segments/music/ytm.mdx similarity index 100% rename from website/docs/segments/ytm.mdx rename to website/docs/segments/music/ytm.mdx diff --git a/website/docs/segments/fossil.mdx b/website/docs/segments/scm/fossil.mdx similarity index 100% rename from website/docs/segments/fossil.mdx rename to website/docs/segments/scm/fossil.mdx diff --git a/website/docs/segments/git.mdx b/website/docs/segments/scm/git.mdx similarity index 100% rename from website/docs/segments/git.mdx rename to website/docs/segments/scm/git.mdx diff --git a/website/docs/segments/mercurial.mdx b/website/docs/segments/scm/mercurial.mdx similarity index 100% rename from website/docs/segments/mercurial.mdx rename to website/docs/segments/scm/mercurial.mdx diff --git a/website/docs/segments/plastic.mdx b/website/docs/segments/scm/plastic.mdx similarity index 100% rename from website/docs/segments/plastic.mdx rename to website/docs/segments/scm/plastic.mdx diff --git a/website/docs/segments/sapling.mdx b/website/docs/segments/scm/sapling.mdx similarity index 100% rename from website/docs/segments/sapling.mdx rename to website/docs/segments/scm/sapling.mdx diff --git a/website/docs/segments/svn.mdx b/website/docs/segments/scm/svn.mdx similarity index 100% rename from website/docs/segments/svn.mdx rename to website/docs/segments/scm/svn.mdx diff --git a/website/docs/segments/battery.mdx b/website/docs/segments/system/battery.mdx similarity index 100% rename from website/docs/segments/battery.mdx rename to website/docs/segments/system/battery.mdx diff --git a/website/docs/segments/command.mdx b/website/docs/segments/system/command.mdx similarity index 100% rename from website/docs/segments/command.mdx rename to website/docs/segments/system/command.mdx diff --git a/website/docs/segments/connection.mdx b/website/docs/segments/system/connection.mdx similarity index 100% rename from website/docs/segments/connection.mdx rename to website/docs/segments/system/connection.mdx diff --git a/website/docs/segments/executiontime.mdx b/website/docs/segments/system/executiontime.mdx similarity index 100% rename from website/docs/segments/executiontime.mdx rename to website/docs/segments/system/executiontime.mdx diff --git a/website/docs/segments/os.mdx b/website/docs/segments/system/os.mdx similarity index 100% rename from website/docs/segments/os.mdx rename to website/docs/segments/system/os.mdx diff --git a/website/docs/segments/path.mdx b/website/docs/segments/system/path.mdx similarity index 100% rename from website/docs/segments/path.mdx rename to website/docs/segments/system/path.mdx diff --git a/website/docs/segments/project.mdx b/website/docs/segments/system/project.mdx similarity index 100% rename from website/docs/segments/project.mdx rename to website/docs/segments/system/project.mdx diff --git a/website/docs/segments/root.mdx b/website/docs/segments/system/root.mdx similarity index 100% rename from website/docs/segments/root.mdx rename to website/docs/segments/system/root.mdx diff --git a/website/docs/segments/session.mdx b/website/docs/segments/system/session.mdx similarity index 100% rename from website/docs/segments/session.mdx rename to website/docs/segments/system/session.mdx diff --git a/website/docs/segments/shell.mdx b/website/docs/segments/system/shell.mdx similarity index 100% rename from website/docs/segments/shell.mdx rename to website/docs/segments/system/shell.mdx diff --git a/website/docs/segments/status.mdx b/website/docs/segments/system/status.mdx similarity index 100% rename from website/docs/segments/status.mdx rename to website/docs/segments/system/status.mdx diff --git a/website/docs/segments/sysinfo.mdx b/website/docs/segments/system/sysinfo.mdx similarity index 100% rename from website/docs/segments/sysinfo.mdx rename to website/docs/segments/system/sysinfo.mdx diff --git a/website/docs/segments/text.mdx b/website/docs/segments/system/text.mdx similarity index 100% rename from website/docs/segments/text.mdx rename to website/docs/segments/system/text.mdx diff --git a/website/docs/segments/time.mdx b/website/docs/segments/system/time.mdx similarity index 100% rename from website/docs/segments/time.mdx rename to website/docs/segments/system/time.mdx diff --git a/website/docs/segments/upgrade.mdx b/website/docs/segments/system/upgrade.mdx similarity index 100% rename from website/docs/segments/upgrade.mdx rename to website/docs/segments/system/upgrade.mdx diff --git a/website/docs/segments/winreg.mdx b/website/docs/segments/system/winreg.mdx similarity index 100% rename from website/docs/segments/winreg.mdx rename to website/docs/segments/system/winreg.mdx diff --git a/website/docs/segments/brewfather.mdx b/website/docs/segments/web/brewfather.mdx similarity index 100% rename from website/docs/segments/brewfather.mdx rename to website/docs/segments/web/brewfather.mdx diff --git a/website/docs/segments/carbonintensity.mdx b/website/docs/segments/web/carbonintensity.mdx similarity index 100% rename from website/docs/segments/carbonintensity.mdx rename to website/docs/segments/web/carbonintensity.mdx diff --git a/website/docs/segments/ipify.mdx b/website/docs/segments/web/ipify.mdx similarity index 100% rename from website/docs/segments/ipify.mdx rename to website/docs/segments/web/ipify.mdx diff --git a/website/docs/segments/nba.mdx b/website/docs/segments/web/nba.mdx similarity index 100% rename from website/docs/segments/nba.mdx rename to website/docs/segments/web/nba.mdx diff --git a/website/docs/segments/owm.mdx b/website/docs/segments/web/owm.mdx similarity index 100% rename from website/docs/segments/owm.mdx rename to website/docs/segments/web/owm.mdx diff --git a/website/docs/segments/wakatime.mdx b/website/docs/segments/web/wakatime.mdx similarity index 100% rename from website/docs/segments/wakatime.mdx rename to website/docs/segments/web/wakatime.mdx diff --git a/website/sidebars.js b/website/sidebars.js index 78ca49bf..c7c7dfdb 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -51,95 +51,152 @@ module.exports = { label: "🌟 Segments", collapsed: true, items: [ - "segments/angular", - "segments/argocd", - "segments/aws", - "segments/az", - "segments/azd", - "segments/azfunc", - "segments/battery", - "segments/bazel", - "segments/brewfather", - "segments/buf", - "segments/bun", - "segments/carbonintensity", - "segments/cds", - "segments/cf", - "segments/cftarget", - "segments/cmake", - "segments/command", - "segments/connection", - "segments/crystal", - "segments/dart", - "segments/deno", - "segments/docker", - "segments/dotnet", - "segments/elixir", - "segments/executiontime", - "segments/flutter", - "segments/fossil", - "segments/gcp", - "segments/firebase", - "segments/git", - "segments/gitversion", - "segments/golang", - "segments/haskell", - "segments/helm", - "segments/ipify", - "segments/java", - "segments/julia", - "segments/kotlin", - "segments/kubectl", - "segments/lastfm", - "segments/lua", - "segments/mercurial", - "segments/nbgv", - "segments/nightscout", - "segments/node", - "segments/npm", - "segments/nx", - "segments/ocaml", - "segments/os", - "segments/owm", - "segments/path", - "segments/perl", - "segments/php", - "segments/plastic", - "segments/pnpm", - "segments/project", - "segments/pulumi", - "segments/python", - "segments/quasar", - "segments/r", - "segments/react", - "segments/root", - "segments/ruby", - "segments/rust", - "segments/sapling", - "segments/session", - "segments/shell", - "segments/sitecore", - "segments/spotify", - "segments/status", - "segments/strava", - "segments/svn", - "segments/swift", - "segments/sysinfo", - "segments/talosctl", - "segments/terraform", - "segments/text", - "segments/time", - "segments/ui5tooling", - "segments/umbraco", - "segments/unity", - "segments/upgrade", - "segments/vala", - "segments/wakatime", - "segments/withings", - "segments/winreg", - "segments/xmake", - "segments/yarn", - "segments/ytm", + { + type: "category", + label: "🧰 CLI", + collapsed: true, + items: [ + "segments/cli/angular", + "segments/cli/argocd", + "segments/cli/bazel", + "segments/cli/buf", + "segments/cli/bun", + "segments/cli/cmake", + "segments/cli/deno", + "segments/cli/docker", + "segments/cli/firebase", + "segments/cli/flutter", + "segments/cli/gitversion", + "segments/cli/helm", + "segments/cli/kubectl", + "segments/cli/nbgv", + "segments/cli/npm", + "segments/cli/nx", + "segments/cli/pnpm", + "segments/cli/quasar", + "segments/cli/react", + "segments/cli/talosctl", + "segments/cli/terraform", + "segments/cli/ui5tooling", + "segments/cli/umbraco", + "segments/cli/unity", + "segments/cli/xmake", + "segments/cli/yarn", + ] + }, + { + type: "category", + label: "☁️ Cloud", + collapsed: true, + items: [ + "segments/cloud/aws", + "segments/cloud/az", + "segments/cloud/azd", + "segments/cloud/azfunc", + "segments/cloud/cds", + "segments/cloud/cf", + "segments/cloud/cftarget", + "segments/cloud/gcp", + "segments/cloud/pulumi", + "segments/cloud/sitecore", + ] + }, + { + type: "category", + label: "💖 Health", + collapsed: true, + items: [ + "segments/health/nightscout", + "segments/health/strava", + "segments/health/withings", + ] + }, + { + type: "category", + label: "✍️ Languages", + collapsed: true, + items: [ + "segments/languages/crystal", + "segments/languages/dart", + "segments/languages/dotnet", + "segments/languages/elixir", + "segments/languages/golang", + "segments/languages/haskell", + "segments/languages/java", + "segments/languages/julia", + "segments/languages/kotlin", + "segments/languages/lua", + "segments/languages/node", + "segments/languages/ocaml", + "segments/languages/perl", + "segments/languages/php", + "segments/languages/python", + "segments/languages/r", + "segments/languages/ruby", + "segments/languages/rust", + "segments/languages/swift", + "segments/languages/vala", + ] + }, + { + type: "category", + label: "🎧 Music", + collapsed: true, + items: [ + "segments/music/lastfm", + "segments/music/spotify", + "segments/music/ytm", + ] + }, + { + type: "category", + label: "🧑‍💻 Source control", + collapsed: true, + items: [ + "segments/scm/fossil", + "segments/scm/git", + "segments/scm/mercurial", + "segments/scm/plastic", + "segments/scm/sapling", + "segments/scm/svn", + ] + }, + { + type: "category", + label: "🖥️ System", + collapsed: true, + items: [ + "segments/system/battery", + "segments/system/command", + "segments/system/connection", + "segments/system/executiontime", + "segments/system/os", + "segments/system/path", + "segments/system/project", + "segments/system/root", + "segments/system/session", + "segments/system/shell", + "segments/system/status", + "segments/system/sysinfo", + "segments/system/text", + "segments/system/time", + "segments/system/upgrade", + "segments/system/winreg", + ] + }, + { + type: "category", + label: "🌐 Web", + collapsed: true, + items: [ + "segments/web/brewfather", + "segments/web/carbonintensity", + "segments/web/ipify", + "segments/web/nba", + "segments/web/owm", + "segments/web/wakatime", + ] + }, ], }, {