From e60daec9a59a95e388390311fe958f61f5acf829 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 23 Dec 2020 15:24:26 +0100 Subject: [PATCH] chore: adjust docs layout --- docs/docs/configuration.md | 2 +- docs/docs/installation.mdx | 14 +++++++------- docs/docs/introduction.md | 2 +- docs/docs/themes.md | 2 +- docs/docs/upgrading.md | 9 +-------- docs/docusaurus.config.js | 4 ++-- 6 files changed, 13 insertions(+), 20 deletions(-) diff --git a/docs/docs/configuration.md b/docs/docs/configuration.md index 7e756a048588..f45e1ba5fce1 100644 --- a/docs/docs/configuration.md +++ b/docs/docs/configuration.md @@ -1,7 +1,7 @@ --- id: configure title: Configuration -sidebar_label: Configuration +sidebar_label: ⚙️ Configuration --- Oh my Posh renders your prompt based on the definition of _blocks_ (like Lego) which contain or more _segments_. diff --git a/docs/docs/installation.mdx b/docs/docs/installation.mdx index 775260f82b7d..45adf4a3e8a9 100644 --- a/docs/docs/installation.mdx +++ b/docs/docs/installation.mdx @@ -1,7 +1,7 @@ --- id: installation title: Installation -sidebar_label: Installation +sidebar_label: 🚀 Installation --- import Tabs from "@theme/Tabs"; @@ -203,7 +203,7 @@ for file in ~/.poshthemes/*.omp.json; do echo "$file\n"; oh-my-posh --config $fi If you have no idea which shell you're currently using, Oh my Posh has a utility switch that will you tell you. -```shell +```bash oh-my-posh --print-shell ``` @@ -237,13 +237,13 @@ Once added, reload your profile for the changes to take effect. Add the following to `~/.zshrc`: -```zshrc +```bash eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/jandedobbeleer.omp.json)" ``` Once added, reload your profile for the changes to take effect. -```zsh +```bash source ~/.zshrc ``` @@ -252,7 +252,7 @@ source ~/.zshrc Add the following to `~/.bashrc` (or `~/.profile` on MacOS): -```bashrc +```bash eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)" ``` @@ -273,13 +273,13 @@ Or, when using `~/.profile`. Redefine `fish_prompt` in `~/.config/fish/config.fish`: -```fish +```bash oh-my-posh --init --shell fish --config ~/.poshthemes/jandedobbeleer.omp.json | source ``` Once added, reload your config for the changes to take effect. -```fish +```bash . ~/.config/fish/config.fish ``` diff --git a/docs/docs/introduction.md b/docs/docs/introduction.md index 77ecdc641660..d3185b0cba20 100644 --- a/docs/docs/introduction.md +++ b/docs/docs/introduction.md @@ -1,7 +1,7 @@ --- id: introduction title: Introduction -sidebar_label: Introduction +sidebar_label: 👋 Introduction slug: / --- diff --git a/docs/docs/themes.md b/docs/docs/themes.md index 1af0526ebfa5..2e2c3906af15 100644 --- a/docs/docs/themes.md +++ b/docs/docs/themes.md @@ -1,7 +1,7 @@ --- id: themes title: Themes -sidebar_label: Themes +sidebar_label: 🎨 Themes --- ### [Agnoster] diff --git a/docs/docs/upgrading.md b/docs/docs/upgrading.md index b609f85d0087..6396fd918723 100644 --- a/docs/docs/upgrading.md +++ b/docs/docs/upgrading.md @@ -1,19 +1,12 @@ --- id: upgrading title: Upgrading -sidebar_label: Upgrading from V2 +sidebar_label: 🤘 Upgrading from V2 --- Just like V2, V3 is available in the [PowerShell gallery][psgallery]. Due to its nature, it's only available as a prerelease while we work out the kinks and get it on par with V2. -:::info Powershell 5 -Due to being unable to maintain everything, the decision was made to drop active support for non-cross platform -tooling. That's why V3 will only work as of Powershell 6 when it comes to the module. -If you want to install this for Powershell 5 (and below), feel free to look at the [manual installation][manual] process -which should get you up and running in no time. -::: - ## V2's problem statement V2 has Powershell module files as [themes][themesv2]. That way of working was inspired from [oh-my-zsh][omz] and other diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 4f4a1455a0d0..2ab4cd14e19e 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -10,8 +10,8 @@ module.exports = { themeConfig: { sidebarCollapsible: false, prism: { - theme: require("prism-react-renderer/themes/github"), - darkTheme: require("prism-react-renderer/themes/dracula"), + theme: require("prism-react-renderer/themes/duotoneLight"), + darkTheme: require("prism-react-renderer/themes/oceanicNext"), }, navbar: { title: "Oh my Posh",