fix(schema): move config-schema into docs folder (#3878)

This commit is contained in:
David Knaack 2022-04-16 16:16:27 +02:00 committed by GitHub
parent d60667d141
commit 094f982df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4780 additions and 4781 deletions

2
.gitattributes vendored
View File

@ -1,3 +1,3 @@
/src/init/* text eol=lf /src/init/* text eol=lf
*.sh text eol=lf *.sh text eol=lf
/.github/config-schema.json text eol=lf /docs/.vuepress/public/config-schema.json text eol=lf

File diff suppressed because it is too large Load Diff

View File

@ -149,10 +149,10 @@ jobs:
override: true override: true
- name: Run | Generate Schema - 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 - 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 # Run tests on Linux, macOS, and Windows
# On both Rust stable and Rust nightly # On both Rust stable and Rust nightly

View File

@ -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. 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 ## 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 - [ ] Add the variable to the appropriate location in the "Default Prompt
Format" section of the documentation Format" section of the documentation
- [ ] Add an appropriate choice of options to each preset in `docs/presets/README.md` - [ ] 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 - [ ] Create configs structs/traits in `src/configs/<module>.rs` and add the
following: following:
- [ ] An entry in `PROMPT_ORDER` (`src/configs/starship_root.rs`) - [ ] An entry in `PROMPT_ORDER` (`src/configs/starship_root.rs`)

View File

@ -16,7 +16,7 @@ include = [
"LICENSE", "LICENSE",
"/README.md", "/README.md",
"docs/.vuepress/public/presets/toml/", "docs/.vuepress/public/presets/toml/",
".github/config-schema.json", "docs/.vuepress/public/config-schema.json",
] ]
keywords = ["prompt", "shell", "bash", "fish", "zsh"] keywords = ["prompt", "shell", "bash", "fish", "zsh"]
license = "ISC" license = "ISC"

View File

@ -1 +0,0 @@
../../../.github/config-schema.json

File diff suppressed because it is too large Load Diff