Skip to content

Commit fae6650

Browse files
authored
Fixing #460 changing .html links to .md links (#1099)
1 parent 1cbc6a7 commit fae6650

File tree

8 files changed

+31
-31
lines changed

8 files changed

+31
-31
lines changed

book/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ For more about escape and `^` see the [chapter about escapes](escaping.md).
134134

135135
## PATH configuration
136136

137-
In Nushell, [the PATH environment variable](<https://en.wikipedia.org/wiki/PATH_(variable)>) (Path on Windows) is a list of paths. To append a new path to it, you can use `$env.<var> = <val>` and [`append`](/commands/docs/append.html) in `env.nu`:
137+
In Nushell, [the PATH environment variable](<https://en.wikipedia.org/wiki/PATH_(variable)>) (Path on Windows) is a list of paths. To append a new path to it, you can use `$env.<var> = <val>` and [`append`](/commands/docs/append.md) in `env.nu`:
138138

139139
```nu
140140
$env.PATH = ($env.PATH | split row (char esep) | append '/some/path')
141141
```
142142

143-
This will append `/some/path` to the end of PATH; you can also use [`prepend`](/commands/docs/prepend.html) to add entries to the start of PATH.
143+
This will append `/some/path` to the end of PATH; you can also use [`prepend`](/commands/docs/prepend.md) to add entries to the start of PATH.
144144

145145
Note the `split row (char esep)` step. We need to add it because in `env.nu`, the environment variables inherited from the host process are still strings. The conversion step of environment variables to Nushell values happens after reading the config files (see also the [Environment](environment.html#environment-variable-conversions) section). After that, for example in the Nushell REPL when `PATH`/`Path` is a list , you can use [`append`](/commands/docs/append.md)/[`prepend`](/commands/docs/prepend.md) directly.
146146

book/environment.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $env.Path = ($env.Path | prepend 'C:\path\you\want\to\add')
5050
Here we've prepended our folder to the existing folders in the Path, so it will have the highest priority.
5151
If you want to give it the lowest priority instead, you can use the [`append`](/commands/docs/append.md) command.
5252

53-
### [`load-env`](/commands/docs/load-env.html)
53+
### [`load-env`](/commands/docs/load-env.md)
5454

5555
If you have more than one environment variable you'd like to set, you can use [`load-env`](/commands/docs/load-env.md) to create a table of name/value pairs and load multiple variables at the same time:
5656

@@ -99,7 +99,7 @@ true
9999

100100
## Changing directory
101101

102-
Common task in a shell is to change directory with the [`cd`](/commands/docs/cd.html) command.
102+
Common task in a shell is to change directory with the [`cd`](/commands/docs/cd.md) command.
103103
In Nushell, calling [`cd`](/commands/docs/cd.md) is equivalent to setting the `PWD` environment variable.
104104
Therefore, it follows the same rules as other environment variables (for example, scoping).
105105

@@ -112,14 +112,14 @@ A common shorthand to set an environment variable once is available, inspired by
112112
BAR
113113
```
114114

115-
You can also use [`with-env`](/commands/docs/with-env.html) to do the same thing more explicitly:
115+
You can also use [`with-env`](/commands/docs/with-env.md) to do the same thing more explicitly:
116116

117117
```nu
118118
> with-env { FOO: BAR } { $env.FOO }
119119
BAR
120120
```
121121

122-
The [`with-env`](/commands/docs/with-env.html) command will temporarily set the environment variable to the value given (here: the variable "FOO" is given the value "BAR"). Once this is done, the [block](types_of_data.html#blocks) will run with this new environment variable set.
122+
The [`with-env`](/commands/docs/with-env.md) command will temporarily set the environment variable to the value given (here: the variable "FOO" is given the value "BAR"). Once this is done, the [block](types_of_data.md#blocks) will run with this new environment variable set.
123123

124124
## Permanent environment variables
125125

@@ -135,7 +135,7 @@ $env.FOO = 'BAR'
135135
## Defining environment from custom commands
136136

137137
Due to the scoping rules, any environment variables defined inside a custom command will only exist inside the command's scope.
138-
However, a command defined as [`def-env`](/commands/docs/def-env.html) instead of [`def`](/commands/docs/def.html) (it applies also to [`export def`](/commands/docs/export_def.md), see [Modules](modules.md)) will preserve the environment on the caller's side:
138+
However, a command defined as [`def-env`](/commands/docs/def-env.md) instead of [`def`](/commands/docs/def.md) (it applies also to [`export def`](/commands/docs/export_def.md), see [Modules](modules.md)) will preserve the environment on the caller's side:
139139

140140
```nu
141141
> def-env foo [] {
@@ -202,7 +202,7 @@ _(Important! The environment conversion string -> value happens **after** the en
202202

203203
## Removing environment variables
204204

205-
You can remove an environment variable only if it was set in the current scope via [`hide-env`](/commands/docs/hide_env.html):
205+
You can remove an environment variable only if it was set in the current scope via [`hide-env`](/commands/docs/hide_env.md):
206206

207207
```nu
208208
> $env.FOO = 'BAR'

book/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ Nu's plugin documentation is a work in progress. If you're unsure about somethin
5252

5353
## More details
5454

55-
The [plugin chapter in the contributor book](/contributor-book/plugins.html) offers more details on the intricacies of how plugins work from a software developer point of view.
55+
The [plugin chapter in the contributor book](/contributor-book/plugins.md) offers more details on the intricacies of how plugins work from a software developer point of view.

de/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ features:
1818

1919
### Nu funktioniert mit existierenden Daten
2020

21-
Nu versteht [JSON, YAML, XML, Excel und noch mehr](/book/loading_data.html). Es ist einfach Daten in eine Nu Pipeline zu laden ganz egal ob diese in einer Datei, einer Datenbank oder einer Web-API liegen:
21+
Nu versteht [JSON, YAML, XML, Excel und noch mehr](/book/loading_data.md). Es ist einfach Daten in eine Nu Pipeline zu laden ganz egal ob diese in einer Datei, einer Datenbank oder einer Web-API liegen:
2222

2323
<img src="https://www.nushell.sh/frontpage/fetch-example.png" alt="Screenshot zeigt das Laden von Daten von einer Web-API" class="hero"/>
2424

@@ -30,7 +30,7 @@ Nu arbeitet mit typisierten Daten, wodurch Fehler abgefangen werden, die andere
3030

3131
## Nu installieren
3232

33-
Nushell ist verfügbar [als kompiliertes Programm](https://github.com/nushell/nushell/releases), [von einem Packetmanager](https://repology.org/project/nushell/versions), und als [Source Code](https://github.com/nushell/nushell). Die detaillierten Installationsanweisungen sind [hier](/de/book/installation.html) zu finden. Oder direkt loslegen:
33+
Nushell ist verfügbar [als kompiliertes Programm](https://github.com/nushell/nushell/releases), [von einem Packetmanager](https://repology.org/project/nushell/versions), und als [Source Code](https://github.com/nushell/nushell). Die detaillierten Installationsanweisungen sind [hier](/de/book/installation.md) zu finden. Oder direkt loslegen:
3434

3535
#### macOS / Linux:
3636

de/book/environment.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Eine häufige Aufgabe in einer Shell ist die Kontrolle der Umgebung, in der die
44
da die Umgebung dem externen programm mitgegeben wird, wenn es gestartet wird. Manchmal jedoch will man eine genauere Kontrolle darüber,
55
welche Umgebungsvariablen ein Programm sehen kann.
66

7-
Die aktuellen Umbegungsvariablen werden mit dem [`env`](/commands/docs/env.html) Befehl ausgegeben:
7+
Die aktuellen Umbegungsvariablen werden mit dem [`env`](/commands/docs/env.md) Befehl ausgegeben:
88

99
```
1010
# name type value raw
@@ -42,7 +42,7 @@ $env.PATH = ($env.PATH | prepend '/pfad/der/hinzu/kommt')
4242
Mit `prepend` wird der Ordner an den Anfang von PATH gestellt und hat damit die höchste Priorität.
4343
Soll der Pfad ans Ende angehängt werden, so wird `append` verwendet.
4444

45-
### [`load-env`](/commands/docs/load-env.html)
45+
### [`load-env`](/commands/docs/load-env.md)
4646

4747
Wenn mehrere Umgebungsvariablen gesetzt werden sollen, so kann `load-env` eine ganze Tabelle mitgegeben werden.
4848
Diese besteht aus name/value Paaren, welche alle auf einmal geladen werden:
@@ -83,7 +83,7 @@ true
8383

8484
## Verzeichnis Wechsel
8585

86-
Etwas was in einer Shell häufig vorkommt ist das wechseln des Verzeichnisses mit dem [`cd`](/commands/docs/cd.html) Befehl.
86+
Etwas was in einer Shell häufig vorkommt ist das wechseln des Verzeichnisses mit dem [`cd`](/commands/docs/cd.md) Befehl.
8787
In der Nushell ist dies identisch mit dem setzen der `PWD` Umgebungsvariablen.
8888
Dies wiederum folgt den gleichen Regeln wie das setzen anderer Umgebungsvariablen (wie z.B. Gültigkeitsbereich)
8989

@@ -96,14 +96,14 @@ Eine praktische Möglichkeit eine Umgebungsvariable einmalig zu setzen, ist insp
9696
BAR
9797
```
9898

99-
Es kann auch [`with-env`](/commands/docs/with-env.html) verwendet werden um expliziter zu sein:
99+
Es kann auch [`with-env`](/commands/docs/with-env.md) verwendet werden um expliziter zu sein:
100100

101101
```
102102
> with-env { FOO: BAR } { echo $env.FOO }
103103
BAR
104104
```
105105

106-
Der [`with-env`](/commands/docs/with-env.html) Befehl setzt die Umgebungsvariable temporär (hier wird die Variable "FOO" auf den Wert "BAR" gesetzt)
106+
Der [`with-env`](/commands/docs/with-env.md) Befehl setzt die Umgebungsvariable temporär (hier wird die Variable "FOO" auf den Wert "BAR" gesetzt)
107107

108108
## Permanente Umgebungsvariablen
109109

@@ -119,7 +119,7 @@ $env.FOO = 'BAR'
119119
## Definition einer Umgebungsvariablen für selbst definierten Befehl
120120

121121
Aufgrund der Gültigkeitsregeln ist eine Umgebungsvariable, welche innerhalb eines selbstdefinierten Befehls gesetzt ist, auch nur in dessen Block gültig.
122-
Wird sie jedoch mit [`dev-env`](/commands/docs/def-env.html) anstatt [`def`](/commands/docs/def.html) gesetzt, so wird sie beim verlassen des Blocks erhalten bleiben.
122+
Wird sie jedoch mit [`dev-env`](/commands/docs/def-env.md) anstatt [`def`](/commands/docs/def.md) gesetzt, so wird sie beim verlassen des Blocks erhalten bleiben.
123123
(Gilt auch für `export def`, siehe [Modules](modules.md))
124124

125125
```
@@ -188,7 +188,7 @@ So können wir überprüfen, ob die Konvertierung erfolgreich war.
188188

189189
Dieser Schritt kann auch manuell ausgelöst werden mit `do $env.ENV_CONVERSIONS.FOO.to_string [a b c]`
190190

191-
Zurückschauend auf den [`env`](/commands/docs/env.html) Befehl, die `raw` Spalte zeigt die Werte, die mit `ENV_CONVERSIONS.<name>.to_string` übersetzt wurden.
191+
Zurückschauend auf den [`env`](/commands/docs/env.md) Befehl, die `raw` Spalte zeigt die Werte, die mit `ENV_CONVERSIONS.<name>.to_string` übersetzt wurden.
192192
Die `value` Spalte zeigt die Werte, die Nushell benutzt (Das Resultat von `ENV_CONVERSIONS.<name>.from_string` wie bei `FOO`)
193193
Wenn der Wert kein String ist und keine `to_string` Konvertierung angewendet wird, wird er nicht an einen externen Befehl weitergeleitet (siehe die `raw` Spalte von `PROMPT_COMMAND`)
194194
Eine Ausnahme ist die `PATH` Variable (`Path` in Windows): Standardmässig wird diese von einem String in eine Liste konvertiert beim Start
@@ -199,7 +199,7 @@ Alle Umgebungsvariablen in env.nu und config.nu sind immer noch Strings solange
199199

200200
## Entfernen von Umgebungsvariablen
201201

202-
Umgebungsvariablen können im aktuellen Gültigkeitsbereich entfernt werden via [`hide`](/commands/docs/hide.html):
202+
Umgebungsvariablen können im aktuellen Gültigkeitsbereich entfernt werden via [`hide`](/commands/docs/hide.md):
203203

204204
```
205205
> $env.FOO = 'BAR'

ja/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ features:
1818

1919
### Nu は既存のデータとの連携が可能
2020

21-
Nu はでは[JSON, YAML, XML, Excel and more](/book/loading_data.html)を標準サポートしています。ファイル、データベース、Web API など、どのようなデータでも簡単に Nu パイプラインに取り込むことができます。
21+
Nu はでは[JSON, YAML, XML, Excel and more](/book/loading_data.md)を標準サポートしています。ファイル、データベース、Web API など、どのようなデータでも簡単に Nu パイプラインに取り込むことができます。
2222

2323
<img src="https://www.nushell.sh/frontpage/fetch-example.png" alt="Screenshot showing fetch with a web API" class="hero"/>
2424

@@ -30,7 +30,7 @@ Nu は型付けされたデータを操作するので、他のシェルでは
3030

3131
## Nu をインストールする
3232

33-
Nushell は、[バイナリのダウンロード](https://github.com/nushell/nushell/releases)[パッケージマネージャによるインストール](https://repology.org/project/nushell/versions)[ソースコードによるインストール](https://github.com/nushell/nushell)を提供しています。 [詳細なインストール方法](/book/installation.html)を読むかもしくは、下記のようにインストールすることもできます。
33+
Nushell は、[バイナリのダウンロード](https://github.com/nushell/nushell/releases)[パッケージマネージャによるインストール](https://repology.org/project/nushell/versions)[ソースコードによるインストール](https://github.com/nushell/nushell)を提供しています。 [詳細なインストール方法](/book/installation.md)を読むかもしくは、下記のようにインストールすることもできます。
3434

3535
#### macOS / Linux:
3636

zh-CN/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ features:
1818

1919
### Nu 可以与现有数据一起工作
2020

21-
Nu 开箱即用支持 [JSON、YAML、SQLite、Excel 等](/zh-CN/book/loading_data.html)。无论是文件、数据库还是网络 API 中的数据,都可以很容易地引入 Nu 管道:
21+
Nu 开箱即用支持 [JSON、YAML、SQLite、Excel 等](/zh-CN/book/loading_data.md)。无论是文件、数据库还是网络 API 中的数据,都可以很容易地引入 Nu 管道:
2222

2323
<img src="https://www.nushell.sh/frontpage/fetch-example.png" alt="Screenshot showing fetch with a web API" class="hero"/>
2424

@@ -30,7 +30,7 @@ Nu 在类型化的数据上操作,所以它能捕捉到其他 Shell 无法捕
3030

3131
## 获取 Nu
3232

33-
Nushell 可以通过 [你喜欢的软件包管理器](https://repology.org/project/nushell/versions) 来安装 [可下载的二进制文件](https://github.com/nushell/nushell/releases),可以在 [GitHub Action](https://github.com/marketplace/actions/setup-nu) 中使用,此外也可以以 [源码](https://github.com/nushell/nushell)方式获得。在此阅读 [详细的安装说明](/zh-CN/book/installation.html)或直接开始:
33+
Nushell 可以通过 [你喜欢的软件包管理器](https://repology.org/project/nushell/versions) 来安装 [可下载的二进制文件](https://github.com/nushell/nushell/releases),可以在 [GitHub Action](https://github.com/marketplace/actions/setup-nu) 中使用,此外也可以以 [源码](https://github.com/nushell/nushell)方式获得。在此阅读 [详细的安装说明](/zh-CN/book/installation.md)或直接开始:
3434

3535
#### macOS / Linux:
3636

zh-CN/book/environment.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Shell 中的一个常见任务是控制外部应用程序将使用的环境变量。这通常是自动完成的,因为环境被打包,并在外部应用程序启动时提供给它。但有时,我们希望更精确地控制一个应用程序看到的环境变量。
44

5-
你可以使用[`env`](/commands/docs/env.html)命令查看当前环境变量:
5+
你可以使用[`env`](/commands/docs/env.md)命令查看当前环境变量:
66

77
```
88
# name type value raw
@@ -42,7 +42,7 @@ $env.PATH = ($env.PATH | prepend '/path/you/want/to/add')
4242
在这里,我们把指定文件夹前置添加到`PATH`中的现有路径中,所以它将有最高的优先级。
4343
如果你想给它最低的优先级,你可以使用`append`命令。
4444

45-
### [`load-env`](/commands/docs/load-env.html)
45+
### [`load-env`](/commands/docs/load-env.md)
4646

4747
如果你有一个以上的环境变量需要设置,你可以使用`load-env`并创建一个键/值对记录(Record),以用于加载多个环境变量:
4848

@@ -91,7 +91,7 @@ true
9191

9292
## 目录切换
9393

94-
Shell 中常见的任务是用[`cd`](/commands/docs/cd.html)命令来改变目录。
94+
Shell 中常见的任务是用[`cd`](/commands/docs/cd.md)命令来改变目录。
9595
在 Nushell 中,调用`cd`等同于设置`PWD`环境变量。
9696
因此,它遵循与其他环境变量相同的规则(例如,作用域)。
9797

@@ -104,14 +104,14 @@ Shell 中常见的任务是用[`cd`](/commands/docs/cd.html)命令来改变目
104104
BAR
105105
```
106106

107-
你也可以使用[`with-env`](/commands/docs/with-env.html)来更明确地做同样的事情:
107+
你也可以使用[`with-env`](/commands/docs/with-env.md)来更明确地做同样的事情:
108108

109109
```nu
110110
> with-env { FOO: BAR } { echo $env.FOO }
111111
BAR
112112
```
113113

114-
[`with-env`](/commands/docs/with-env.html)命令将暂时把环境变量设置为给定的值(这里:变量 "FOO" 被赋为 "BAR" 值)。一旦这样做了,[](types_of_data.html#块) 将在这个新的环境变量设置下运行。
114+
[`with-env`](/commands/docs/with-env.md)命令将暂时把环境变量设置为给定的值(这里:变量 "FOO" 被赋为 "BAR" 值)。一旦这样做了,[](types_of_data.html#块) 将在这个新的环境变量设置下运行。
115115

116116
## 永久性环境变量
117117

@@ -127,7 +127,7 @@ $env.FOO = 'BAR'
127127
## 从自定义命令中定义环境变量
128128

129129
由于作用域规则,在自定义命令中定义的任何环境变量都只存在于该命令的作用域内。
130-
然而,用[`def-env`](/commands/docs/def-env.html)而不是[`def`](/commands/docs/def.html)定义的命令(它也适用于`export def`,见 [模块](modules.md))将在调用者一方保留环境设置:
130+
然而,用[`def-env`](/commands/docs/def-env.md)而不是[`def`](/commands/docs/def.md)定义的命令(它也适用于`export def`,见 [模块](modules.md))将在调用者一方保留环境设置:
131131

132132
```nu
133133
> def-env foo [] {
@@ -190,15 +190,15 @@ a-b-c
190190
`nu -c`运行命令不会加载配置文件,因此`FOO`的环境转换没有了,它被显示为一个普通的字符串 —— 这样我们可以验证转换是否成功。
191191
你也可以通过`do $env.ENV_CONVERSIONS.FOO.to_string [a b c]`手动运行这个步骤。
192192

193-
如果我们回头看一下[`env`](/commands/docs/env.html)命令,`raw`列显示由`ENV_CONVERSIONS.<name>.to_string`翻译的值,`value`列显示 Nushell 中使用的值(在`FOO`的情况下是`ENV_CONVERSIONS.<name>.from_string`的结果)。
193+
如果我们回头看一下[`env`](/commands/docs/env.md)命令,`raw`列显示由`ENV_CONVERSIONS.<name>.to_string`翻译的值,`value`列显示 Nushell 中使用的值(在`FOO`的情况下是`ENV_CONVERSIONS.<name>.from_string`的结果)。
194194
如果这个值不是字符串,并且没有`to_string`的转换,它就不会被传递给外部(见`PROMPT_COMMAND``raw`列)。
195195
一个例外是`PATH`(Windows 上的`Path`)。默认情况下,它在启动时将字符串转换为列表,在运行外部程序时,如果没有指定手动转换,则从列表转换为字符串。
196196

197197
_(重要! 环境转换字符串->值发生在 `env.nu``config.nu` 被运行**之后**`env.nu``config.nu` 中的所有环境变量仍然是字符串,除非你手动将它们设置为一些其他的值。)_
198198

199199
## 删除环境变量
200200

201-
只有当一个环境变量被设置在当前作用域中时,你才能通过 [`hide`](/commands/docs/hide.html) 命令“删除”它:
201+
只有当一个环境变量被设置在当前作用域中时,你才能通过 [`hide`](/commands/docs/hide.md) 命令“删除”它:
202202

203203
```nu
204204
> $env.FOO = 'BAR'

0 commit comments

Comments
 (0)