1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 04:56:12 +03:00

docs: reformat lua code

refs: https://github.com/wez/wezterm/pull/2273
refs: https://github.com/wez/wezterm/issues/2253
This commit is contained in:
azzamsa 2022-07-18 15:59:56 +07:00 committed by Wez Furlong
parent aee66daccb
commit be929db374
3 changed files with 13 additions and 0 deletions

View File

@ -42,6 +42,9 @@ jobs:
- name: Install mdBook mermaid
run: |
(test -x ~/.cargo/bin/mdbook-mermaid || (cd && cargo install mdbook-mermaid --locked))
- name: Install gelatyx
run: |
(test -x ~/.cargo/bin/gelatyx || (cd && cargo install gelatyx --locked))
- name: Build
run: |
source $HOME/.cargo/env

View File

@ -7,6 +7,8 @@ python3 ci/subst-release-info.py || exit 1
python3 ci/generate-docs.py || exit 1
mdbook-mermaid install docs
mdbook build docs
gelatyx lua --file docs/**/*.md --language-config ci/stylua.toml
gelatyx lua --file docs/**/*.md --language-config ci/stylua.toml --check
rm gh_pages/html/README.markdown
cp assets/fonts/Symbols-Nerd-Font-Mono.ttf gh_pages/html/fonts/

8
ci/stylua.toml Normal file
View File

@ -0,0 +1,8 @@
# Reference: https://github.com/JohnnyMorganz/StyLua#options
column_width = 78
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferSingle"
call_parentheses = "None"