docs(sidebar): restructure segment layout

resolves #5171
This commit is contained in:
Jan De Dobbeleer 2024-07-05 12:21:58 +02:00 committed by Jan De Dobbeleer
parent 6aca58eef9
commit f891a26fe9
95 changed files with 185 additions and 118 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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/

View file

@ -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';

View file

@ -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/

View file

@ -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/

View file

@ -1,7 +1,7 @@
---
id: azd
title: Azure Developer CLI
sidebar_label: azd
sidebar_label: Azure Dev CLI
---
## What

View file

@ -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/

View file

@ -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/

View file

@ -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/

View file

@ -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/

View file

@ -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/

View file

@ -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",
]
},
],
},
{