docs(configuration): revise reference links

This commit is contained in:
L. Yeung 2022-05-16 23:22:49 +08:00 committed by Jan De Dobbeleer
parent 0e4898d875
commit 48746495d4
6 changed files with 6 additions and 7 deletions

View file

@ -11,7 +11,7 @@ This feature only works in `powershell` for the time being.
The debug prompt is displayed when you debug a script from the command line or Visual Studio Code.
The default is `[DBG]: `.
You can use go [text/template][go-text-template] templates extended with [sprig][sprig] to enrich the text.
You can use go [text/template][go-text-template] [templates][templates] extended with [sprig][sprig] to enrich the text.
Environment variables are available, just like the [`console_title_template`][console-title] functionality.
## Configuration
@ -38,7 +38,7 @@ The configuration has the following properties:
- foreground_templates: foreground [color templates][color-templates]
- background: `string` [color][colors]
- background_templates: background [color templates][color-templates]
- template: `string` - A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
- template: `string` - a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
properties below - defaults to `[DBG]: `
## Template ([info][templates])

View file

@ -49,7 +49,7 @@ The configuration has the following properties:
- background: `string` [color][colors]
- foreground: `string` [color][colors]
- template: `string` - A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
- template: `string` - a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
properties below - defaults to ` `
## Template ([info][templates])

View file

@ -35,7 +35,7 @@ The configuration has the following properties:
- background: `string` [color][colors]
- foreground: `string` [color][colors]
- template: `string` - A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
- template: `string` - a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
properties below - defaults to `> `
## Template ([info][templates])

View file

@ -38,7 +38,7 @@ understand how to configure a segment.
- invert_powerline: `boolean`
- leading_diamond: `string`
- trailing_diamond: `string`
- template: `string` a go text/template [template][templates] to render the prompt
- template: `string` a go [text/template][go-text-template] [template][templates] to render the prompt
- foreground: `string` [color][colors]
- foreground_templates: foreground [color templates][color-templates]
- background: `string` [color][colors]

View file

@ -34,6 +34,5 @@ To learn more about templates and their possibilities, have a look at the [templ
}
```
[go-text-template]: https://golang.org/pkg/text/template/
[sprig]: https://masterminds.github.io/sprig/
[templates]: /docs/configuration/templates

View file

@ -48,7 +48,7 @@ The configuration has the following properties:
- foreground_templates: foreground [color templates][color-templates]
- background: `string` [color][colors]
- background_templates: background [color templates][color-templates]
- template: `string` - A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
- template: `string` - a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
properties below - defaults to `{{ .Shell }}> `
## Template ([info][templates])