Skip to content

Commit

Permalink
fix: resolve build error for mkdocs-static-i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Sep 21, 2023
1 parent c93f17a commit 47c45b3
Show file tree
Hide file tree
Showing 15 changed files with 138 additions and 136 deletions.
4 changes: 2 additions & 2 deletions docs/blog/2022-spaceship-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Here's how it works:
<script id="asciicast-514494" src="https://asciinema.org/a/514494.js" data-autoplay="true" data-loop="true" data-preload="true" async></script>
</div>

As you see above, only the directory and prompt character are displayed immediately. The rest of the prompt (`git` and `package` sections) are rendered asynchronously and thus added later. A [`` placeholder](/sections/async) for upcoming information is displayed while the computation is in progress.
As you see above, only the directory and prompt character are displayed immediately. The rest of the prompt (`git` and `package` sections) are rendered asynchronously and thus added later. A [`` placeholder](/sections/async.md) for upcoming information is displayed while the computation is in progress.

If you're fast enough you can even type the following command, before the prompt is fully rendered.

Expand All @@ -74,7 +74,7 @@ Kudos to [@laggardkernel](https://github.com/laggardkernel) who laid the groundw

### Registry for sections

This release also introduces [the Spaceship Registry](/registry). It's a registry of all sections that are available for Spaceship.
This release also introduces [the Spaceship Registry](../registry.md). It's a registry of all sections that are available for Spaceship.

![Spaceship Registry](https://user-images.githubusercontent.com/3459374/187728583-0a7b3fdb-2a6d-41bb-ae1d-378b8e4db660.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/config/loading-sections.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Though Spaceship has multiple sections for various use-cases, sometimes you may need to install a custom one: for a specific tool or something that you use personally.

You can create your own section using [sections API](/api/section) or use existing one from [the Registry](/registry):
You can create your own section using [sections API](/api/section) or use existing one from [the Registry](../registry.md):

[Browse Registry](/registry ""){.md-button} [Create a custom section](/advanced/creating-section ""){.md-button}

Expand Down
2 changes: 1 addition & 1 deletion docs/config/loading-sections.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Though Spaceship has multiple sections for various use-cases, sometimes you may need to install a custom one: for a specific tool or something that you use personally.

You can create your own section using [sections API](/api/section) or use existing one from [the Registry](/registry):
You can create your own section using [sections API](/api/section) or use existing one from [the Registry](../registry.md):

[Browse Registry](/registry ""){.md-button} [Create a custom section](/advanced/creating-section ""){.md-button}

Expand Down
4 changes: 2 additions & 2 deletions docs/config/loading-sections.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Though Spaceship has multiple sections for various use-cases, sometimes you may need to install a custom one: for a specific tool or something that you use personally.

You can create your own section using [sections API](/api/section) or use existing one from [the Registry](/registry):
You can create your own section using [sections API](/api/section) or use existing one from [the Registry](../registry.md):

[Browse Registry](/registry){ .md-button }
[Browse Registry](../registry.md){ .md-button }
[Create a custom section](/advanced/creating-section){ .md-button }

## How to install a section
Expand Down
4 changes: 2 additions & 2 deletions docs/config/loading-sections.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Though Spaceship has multiple sections for various use-cases, sometimes you may need to install a custom one: for a specific tool or something that you use personally.

You can create your own section using [sections API](/api/section) or use existing one from [the Registry](/registry):
You can create your own section using [sections API](/api/section) or use existing one from [the Registry](../registry.md):

[Browse Registry](/registry ""){.md-button} [Create a custom section](/advanced/creating-section ""){.md-button}
[Browse Registry](../registry.md){.md-button} [Create a custom section](/advanced/creating-section ""){.md-button}

## How to install a section

Expand Down
2 changes: 1 addition & 1 deletion docs/config/prompt.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The `SPACESHIP_PROMPT_ASYNC` option defines whether the prompt is rendered async

The synchronous sections are displayed immediately. The asynchronous sections are processed in the background and are displayed when the information is ready to be displayed.

The [`async` section](/sections/async) is used as a placeholder for not yet available asynchronous sections.
The [`async` section](/sections/async.md) is used as a placeholder for not yet available asynchronous sections.

### Prompt spacing

Expand Down
2 changes: 1 addition & 1 deletion docs/config/prompt.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The `SPACESHIP_PROMPT_ASYNC` option defines whether the prompt is rendered async

The synchronous sections are displayed immediately. The asynchronous sections are processed in the background and are displayed when the information is ready to be displayed.

The [`async` section](/sections/async) is used as a placeholder for not yet available asynchronous sections.
The [`async` section](/sections/async.md) is used as a placeholder for not yet available asynchronous sections.

### Prompt spacing

Expand Down
8 changes: 4 additions & 4 deletions docs/config/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Each part can be configured via corresponding **options**. Options are just envi
Above `PACKAGE` is a **section** and `PREFIX`, `SUFFIX` and `COLOR` are **options** for prefix, suffix and color correspondingly.

!!! info
Colors for sections can be [basic colors](https://wiki.archlinux.org/index.php/zsh#Colors) or [color codes](https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg).
Colors for sections can be [basic colors](https://wiki.archlinux.org/index.php/zsh#Colors) or [color codes](https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg).

## Prompt order

Expand Down Expand Up @@ -117,8 +117,8 @@ You can customize every section of the prompt with section's options. Check out

Besides built-in sections, you can add external section to your prompt or build a custom one.

[Browse built-in sections](/sections){ .md-button }
[Browse all sections](/registry){ .md-button }
[Browse built-in sections](/sections/index.md){ .md-button }
[Browse all sections](../registry.md){ .md-button }

## Prompt-level options

Expand All @@ -144,7 +144,7 @@ The `SPACESHIP_PROMPT_ASYNC` option defines whether the prompt is rendered async

The synchronous sections are displayed immediately. The asynchronous sections are processed in the background and are displayed when the information is ready to be displayed.

The [`async` section](/sections/async) is used as a placeholder for not yet available asynchronous sections.
The [`async` section](/sections/async.md) is used as a placeholder for not yet available asynchronous sections.

### Prompt spacing

Expand Down
4 changes: 2 additions & 2 deletions docs/config/prompt.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ You can customize every section of the prompt with section's options. Check out

Besides built-in sections, you can add external section to your prompt or build a custom one.

[Browse built-in sections](/sections ""){.md-button} [Browse all sections](/registry ""){.md-button}
[Browse built-in sections](../sections/index.md){.md-button} [Browse all sections](../registry.md){.md-button}

## Prompt-level options

Expand All @@ -127,7 +127,7 @@ The `SPACESHIP_PROMPT_ASYNC` option defines whether the prompt is rendered async

The synchronous sections are displayed immediately. The asynchronous sections are processed in the background and are displayed when the information is ready to be displayed.

The [`async` section](/sections/async) is used as a placeholder for not yet available asynchronous sections.
The [`async` section](../sections/async.md) is used as a placeholder for not yet available asynchronous sections.

### Prompt spacing

Expand Down
52 changes: 26 additions & 26 deletions docs/index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,85 +9,85 @@ hero:
install_button: Erste Schritte
source_button: Quellcode
features:
-
-
title: Ganz einfach
image: /assets/images/what-is-needed.svg
description: Die Eingabeaufforderung ist nicht überladen, sie zeigt nur, was du im Moment benötigst (aktuelles Verzeichnis, Git Branch, etc).
-
-
title: Leicht einzurichten
image: /assets/images/out-of-the-box.svg
description: Die Eingabeaufforderung funktioniert direkt nach der Installation ohne zusätzliche Konfiguration. Installieren und verwenden.
-
-
title: Konfigurierbar
image: /assets/images/configurable.svg
description: Die Eingabeaufforderung ist ohne Konfiguration nutzbar, bietet aber, sofern gewünscht, eine einfache Möglichkeit der Anpassung.
companies:
title: Täglich von wundervollen Leuten benutzt
list:
-
-
name: Wix
logo: https://cdn.svgporn.com/logos/wix.svg
-
-
name: Google
logo: https://cdn.svgporn.com/logos/google.svg
-
-
name: Siemens
logo: https://upload.wikimedia.org/wikipedia/commons/5/5f/Siemens-logo.svg
-
-
name: Microsoft
logo: https://cdn.svgporn.com/logos/microsoft.svg
-
-
name: Adobe
logo: https://upload.wikimedia.org/wikipedia/commons/6/6e/Adobe_Corporate_logo.svg
-
-
name: Docker
logo: https://cdn.svgporn.com/logos/docker.svg
-
-
name: Shopify
logo: https://upload.wikimedia.org/wikipedia/commons/0/0e/Shopify_logo_2018.svg
-
-
name: GitHub
logo: https://cdn.svgporn.com/logos/github.svg
-
-
name: Red Hat
logo: https://cdn.svgporn.com/logos/redhat.svg
-
-
name: Amazon Web Services
logo: https://cdn.svgporn.com/logos/aws.svg
-
-
name: Facebook
logo: https://cdn.worldvectorlogo.com/logos/facebook-7.svg
-
-
name: npm
logo: https://cdn.svgporn.com/logos/npm.svg
-
-
name: Unity Technologies
logo: https://cdn.worldvectorlogo.com/logos/unity-technologies-logo.svg
-
-
name: Angular
logo: https://cdn.svgporn.com/logos/angular.svg
-
-
name: Mozilla
logo: https://cdn.svgporn.com/logos/mozilla.svg
-
-
name: Framer
logo: https://cdn.svgporn.com/logos/framer.svg
-
-
name: Grammarly
logo: https://cdn.svgporn.com/logos/grammarly.svg
-
-
name: Skyscanner
logo: https://upload.wikimedia.org/wikipedia/commons/9/94/Skyscanner_Logo_LockupHorizontal_SkyBlue_RGB.svg
-
-
name: Node.js
logo: https://cdn.svgporn.com/logos/nodejs.svg
-
-
name: Vue Storefront
logo: https://cdn.worldvectorlogo.com/logos/vue-storefront.svg
-
-
name: Coinbase
logo: https://cdn.worldvectorlogo.com/logos/coinbase-1.svg
-
-
name: Suse
logo: https://cdn.svgporn.com/logos/suse.svg
---
Expand Down Expand Up @@ -118,7 +118,7 @@ Hier sind ein paar Tipps, was **Spaceship** anzeigen kann:
- Paketversion (npm, lerna, cargo, composer und andere)
- Batterieladestand und -status
- Anzeige für Hintergrundsprozesse ``
- Eine Menge [nützliche Informationen](/sections)
- Eine Menge [nützliche Informationen](/sections/index.md)
- Benutzerdefinierte [Informationen Ihrer Wahl](/advanced/creating-section)

Du brauchst noch mehr Funktionen? Bitte [öffne ein Ticket](https://github.com/spaceship-prompt/yspaceship-prompt/issues/new/choose) oder sende Pull Request.
Expand Down
52 changes: 26 additions & 26 deletions docs/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,85 +9,85 @@ hero:
install_button: Getting Started
source_button: Source Code
features:
-
-
title: Clean and simple
image: /assets/images/what-is-needed.svg
description: The prompt is not overloaded, it shows only what you need at the moment (current directory, git branch, etc).
-
-
title: Easy to set up
image: /assets/images/out-of-the-box.svg
description: The prompt works right after installation without any additional configuration. install it and use it.
-
-
title: Configurable
image: /assets/images/configurable.svg
description: The prompt is zero-config, but if a customization is needed, it provides an easy-to-use interface for customization.
companies:
title: Used daily by marvelous folks at
list:
-
-
name: Wix
logo: https://cdn.svgporn.com/logos/wix.svg
-
-
name: Google
logo: https://cdn.svgporn.com/logos/google.svg
-
-
name: Siemens
logo: https://upload.wikimedia.org/wikipedia/commons/5/5f/Siemens-logo.svg
-
-
name: Microsoft
logo: https://cdn.svgporn.com/logos/microsoft.svg
-
-
name: Adobe
logo: https://upload.wikimedia.org/wikipedia/commons/6/6e/Adobe_Corporate_logo.svg
-
-
name: Docker
logo: https://cdn.svgporn.com/logos/docker.svg
-
-
name: Shopify
logo: https://upload.wikimedia.org/wikipedia/commons/0/0e/Shopify_logo_2018.svg
-
-
name: GitHub
logo: https://cdn.svgporn.com/logos/github.svg
-
-
name: Red Hat
logo: https://cdn.svgporn.com/logos/redhat.svg
-
-
name: Amazon Web Services
logo: https://cdn.svgporn.com/logos/aws.svg
-
-
name: Facebook
logo: https://cdn.worldvectorlogo.com/logos/facebook-7.svg
-
-
name: npm
logo: https://cdn.svgporn.com/logos/npm.svg
-
-
name: Unity Technologies
logo: https://cdn.worldvectorlogo.com/logos/unity-technologies-logo.svg
-
-
name: Angular
logo: https://cdn.svgporn.com/logos/angular.svg
-
-
name: Mozilla
logo: https://cdn.svgporn.com/logos/mozilla.svg
-
-
name: Framer
logo: https://cdn.svgporn.com/logos/framer.svg
-
-
name: Grammarly
logo: https://cdn.svgporn.com/logos/grammarly.svg
-
-
name: Skyscanner
logo: https://upload.wikimedia.org/wikipedia/commons/9/94/Skyscanner_Logo_LockupHorizontal_SkyBlue_RGB.svg
-
-
name: Node.js
logo: https://cdn.svgporn.com/logos/nodejs.svg
-
-
name: Vue Storefront
logo: https://cdn.worldvectorlogo.com/logos/vue-storefront.svg
-
-
name: Coinbase
logo: https://cdn.worldvectorlogo.com/logos/coinbase-1.svg
-
-
name: Suse
logo: https://cdn.svgporn.com/logos/suse.svg
---
Expand Down Expand Up @@ -118,7 +118,7 @@ Here are some sneak picks of what **Spaceship** can show:
- Package version (npm, lerna, cargo, composer and others)
- Battery level and status
- Indicator for jobs in the background ``
- A lot of [useful information](/sections)
- A lot of [useful information](/sections/index.md)
- Custom [information of your choice](/advanced/creating-section)

Want more features? Please, [open an issue](https://github.com/spaceship-prompt/yspaceship-prompt/issues/new/choose) or send pull request.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Here are some sneak picks of what **Spaceship** can show:
- Package version (npm, lerna, cargo, composer and others)
- Battery level and status
- Indicator for jobs in the background ``
- A lot of [useful information](/sections)
- A lot of [useful information](/sections/index.md)
- Custom [information of your choice](/advanced/creating-section)

Want more features? Please, [open an issue](https://github.com/spaceship-prompt/yspaceship-prompt/issues/new/choose) or send pull request.
Expand Down
Loading

0 comments on commit 47c45b3

Please sign in to comment.