chore: adjust docs layout

This commit is contained in:
Jan De Dobbeleer 2020-12-23 15:24:26 +01:00
parent 5c2f1353c1
commit e60daec9a5
6 changed files with 13 additions and 20 deletions

View file

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

View file

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

View file

@ -1,7 +1,7 @@
---
id: introduction
title: Introduction
sidebar_label: Introduction
sidebar_label: 👋 Introduction
slug: /
---

View file

@ -1,7 +1,7 @@
---
id: themes
title: Themes
sidebar_label: Themes
sidebar_label: 🎨 Themes
---
### [Agnoster]

View file

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

View file

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