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 authored and Wez Furlong committed 2022-07-19 06:27:33 -07:00
1 parent aee66daccb
commit be929db374
3 files changed
+13

No files matched your search

+3
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
+2
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
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"