From 9017bdebf55b1a11a622638b7178e84d65a0b987 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Tue, 25 Apr 2023 09:15:17 +0200 Subject: [PATCH] Add a editorconfig file. --- .editorconfig | 20 ++++++++++++++++++++ scripts/set_up_new_site.sh | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..dace20e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# Editor configuration normalization +# @see http://editorconfig.org/ + +# This is the top-most .editorconfig file; do not search in parent directories. +root = true + +# All files. +[*] +end_of_line = LF +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{md,mdown,markdown}] +indent_size = 4 +trim_trailing_whitespace = false +insert_final_newline = false +x-soft-wrap-text = true diff --git a/scripts/set_up_new_site.sh b/scripts/set_up_new_site.sh index 8b634ed..da82971 100755 --- a/scripts/set_up_new_site.sh +++ b/scripts/set_up_new_site.sh @@ -22,7 +22,8 @@ copy_files=("themes/zen/assets/sass/_colors.scss:assets/sass/_colors.scss" "themes/zen/assets/sass/_custom.scss:assets/sass/_custom.scss" "themes/zen/assets/sass/_zen.scss:assets/sass/_zen.scss" "themes/zen/layouts/index.html:layouts/index.html" - "themes/zen/exampleSite/config.yaml:config.yaml") + "themes/zen/exampleSite/config.yaml:config.yaml" + "themes/zen/.editorconfig:.editorconfig") for files in "${copy_files[@]}" ; do if [[ ! -f "${files##*:}" ]]; then