ci: Pin Prettier to a specific version for docs formatting (#24531)
This PR pins Prettier to a specific version when we run the docs formatting check. This should prevent drift when new Prettier versions are released that may impact the formatting. Release Notes: - N/A
This commit is contained in:
parent
072d2b061a
commit
f42177a912
2 changed files with 7 additions and 4 deletions
6
.github/workflows/docs.yml
vendored
6
.github/workflows/docs.yml
vendored
|
@ -24,11 +24,13 @@ jobs:
|
||||||
- name: Prettier Check on /docs
|
- name: Prettier Check on /docs
|
||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
run: |
|
run: |
|
||||||
pnpm dlx prettier . --check || {
|
pnpm dlx prettier@${PRETTIER_VERSION} . --check || {
|
||||||
echo "To fix, run from the root of the zed repo:"
|
echo "To fix, run from the root of the zed repo:"
|
||||||
echo " cd docs && pnpm dlx prettier . --write && cd .."
|
echo " cd docs && pnpm dlx prettier@${PRETTIER_VERSION} . --write && cd .."
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
env:
|
||||||
|
PRETTIER_VERSION: 3.5.0
|
||||||
|
|
||||||
- name: Check for Typos with Typos-CLI
|
- name: Check for Typos with Typos-CLI
|
||||||
uses: crate-ci/typos@8e6a4285bcbde632c5d79900a7779746e8b7ea3f # v1.24.6
|
uses: crate-ci/typos@8e6a4285bcbde632c5d79900a7779746e8b7ea3f # v1.24.6
|
||||||
|
|
5
docs/theme/css/variables.css
vendored
5
docs/theme/css/variables.css
vendored
|
@ -13,8 +13,9 @@
|
||||||
--menu-bar-height: 64px;
|
--menu-bar-height: 64px;
|
||||||
--font: "IA Writer Quattro S", sans-serif;
|
--font: "IA Writer Quattro S", sans-serif;
|
||||||
--title-font: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
--title-font: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
--mono-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
--mono-font:
|
||||||
Liberation Mono, Courier New, monospace;
|
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono,
|
||||||
|
Courier New, monospace;
|
||||||
--code-font-size: 0.875em
|
--code-font-size: 0.875em
|
||||||
/* please adjust the ace font size accordingly in editor.js */;
|
/* please adjust the ace font size accordingly in editor.js */;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue