Skip to content

Commit

Permalink
chore: adjust docs layout
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Dec 23, 2020
1 parent 5c2f135 commit e60daec
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion 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_.
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/installation.mdx
@@ -1,7 +1,7 @@
---
id: installation
title: Installation
sidebar_label: Installation
sidebar_label: 🚀 Installation
---

import Tabs from "@theme/Tabs";
Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand All @@ -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)"
```

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

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/introduction.md
@@ -1,7 +1,7 @@
---
id: introduction
title: Introduction
sidebar_label: Introduction
sidebar_label: 👋 Introduction
slug: /
---

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/themes.md
@@ -1,7 +1,7 @@
---
id: themes
title: Themes
sidebar_label: Themes
sidebar_label: 🎨 Themes
---

### [Agnoster]
Expand Down
9 changes: 1 addition & 8 deletions 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
Expand Down
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Expand Up @@ -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",
Expand Down

0 comments on commit e60daec

Please sign in to comment.