-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* other: add json schema (#1382) * docs: add some screenshots * other: move around schema files * docs: move around some docs around config files --------- Co-authored-by: ClementTsang <[email protected]>
- Loading branch information
1 parent
59b7650
commit 98d4c44
Showing
5 changed files
with
413 additions
and
5 deletions.
There are no files selected for viewing
16 changes: 13 additions & 3 deletions
16
...nfiguration/config-file/default-config.md → ...ontent/configuration/config-file/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
# Default Config | ||
# Config File | ||
|
||
A default config file is automatically generated at the following locations that bottom checks by default: | ||
For persistent configuration, and for certain configuration options, bottom supports config files. | ||
|
||
## Default Config File | ||
|
||
If no config file argument is given, it will automatically look for a config file at these locations: | ||
|
||
| OS | Default Config Location | | ||
| ------- | -------------------------------------------------------------------------------------------------------------------------------------- | | ||
| macOS | `$HOME/Library/Application Support/bottom/bottom.toml`<br/> `~/.config/bottom/bottom.toml` <br/> `$XDG_CONFIG_HOME/bottom/bottom.toml` | | ||
| Linux | `~/.config/bottom/bottom.toml` <br/> `$XDG_CONFIG_HOME/bottom/bottom.toml` | | ||
| Windows | `C:\Users\<USER>\AppData\Roaming\bottom\bottom.toml` | | ||
|
||
Furthermore, if a custom config path that does not exist is given (using `-C` or `--config`), bottom will attempt to create a default config file at that location. | ||
Like if a path is passed with `-C`/`--config`, if a file doesn't exist at the path, bottom will automatically create a | ||
new, default config file at that location. | ||
|
||
## JSON Schema | ||
|
||
The configuration file also has [JSON Schema](https://json-schema.org/) support to make it easier to manage, if your | ||
IDE/editor supports it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mkdocs == 1.5.3 | ||
mkdocs-material == 9.5.3 | ||
mkdocs-material == 9.5.6 | ||
mdx_truly_sane_lists == 1.3 | ||
mike == 2.0.0 | ||
mkdocs-git-revision-date-localized-plugin == 1.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Config Schema | ||
|
||
## Usage | ||
|
||
## Development | ||
|
||
### How to add a new version |
Oops, something went wrong.