mirror of
https://github.com/wez/wezterm.git
synced 2024-12-22 21:01:36 +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:
parent
aee66daccb
commit
be929db374
3
.github/workflows/pages.yml
vendored
3
.github/workflows/pages.yml
vendored
@ -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
|
||||
|
@ -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
8
ci/stylua.toml
Normal 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"
|
Loading…
Reference in New Issue
Block a user