mirror of
https://github.com/starship/starship.git
synced 2024-11-22 00:04:05 +01:00
fix(schema): move config-schema into docs folder (#3878)
This commit is contained in:
parent
d60667d141
commit
094f982df1
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,3 +1,3 @@
|
||||
/src/init/* text eol=lf
|
||||
*.sh text eol=lf
|
||||
/.github/config-schema.json text eol=lf
|
||||
/docs/.vuepress/public/config-schema.json text eol=lf
|
||||
|
4774
.github/config-schema.json
vendored
4774
.github/config-schema.json
vendored
File diff suppressed because it is too large
Load Diff
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@ -149,10 +149,10 @@ jobs:
|
||||
override: true
|
||||
|
||||
- name: Run | Generate Schema
|
||||
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
|
||||
run: cargo run --locked --features config-schema -- config-schema > docs/.vuepress/public/config-schema.json
|
||||
|
||||
- name: Check | Detect Changes
|
||||
run: git diff --exit-code .github/config-schema.json
|
||||
run: git diff --exit-code docs/.vuepress/public/config-schema.json
|
||||
|
||||
# Run tests on Linux, macOS, and Windows
|
||||
# On both Rust stable and Rust nightly
|
||||
|
@ -154,7 +154,7 @@ dprint fmt
|
||||
|
||||
Editor plugins/functionality may help you run these automatically so that you don't accidentally create a PR that fails.
|
||||
|
||||
If your changes cause changes to the configuration, you will need to update the configuration schema in `.github/config-schema.json` with `cargo run --features config-schema -- config-schema > .github/config-schema.json`.
|
||||
If your changes cause changes to the configuration, you will need to update the configuration schema in `docs/.vuepress/public/config-schema.json` with `cargo run --features config-schema -- config-schema > docs/.vuepress/public/config-schema.json`.
|
||||
|
||||
## Testing
|
||||
|
||||
@ -293,7 +293,7 @@ everyone remember what they are. Don't worry: most of them are quite simple!
|
||||
- [ ] Add the variable to the appropriate location in the "Default Prompt
|
||||
Format" section of the documentation
|
||||
- [ ] Add an appropriate choice of options to each preset in `docs/presets/README.md`
|
||||
- [ ] Update the config file schema by running `cargo run --features config-schema -- config-schema > .github/config-schema.json`
|
||||
- [ ] Update the config file schema by running `cargo run --features config-schema -- config-schema > docs/.vuepress/public/config-schema.json`
|
||||
- [ ] Create configs structs/traits in `src/configs/<module>.rs` and add the
|
||||
following:
|
||||
- [ ] An entry in `PROMPT_ORDER` (`src/configs/starship_root.rs`)
|
||||
|
@ -16,7 +16,7 @@ include = [
|
||||
"LICENSE",
|
||||
"/README.md",
|
||||
"docs/.vuepress/public/presets/toml/",
|
||||
".github/config-schema.json",
|
||||
"docs/.vuepress/public/config-schema.json",
|
||||
]
|
||||
keywords = ["prompt", "shell", "bash", "fish", "zsh"]
|
||||
license = "ISC"
|
||||
|
@ -1 +0,0 @@
|
||||
../../../.github/config-schema.json
|
4774
docs/.vuepress/public/config-schema.json
Normal file
4774
docs/.vuepress/public/config-schema.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user