From c87cde4692f2efc9ebc8ce58b306fb0eaff8bc27 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Wed, 14 Jun 2023 21:40:53 +0800 Subject: [PATCH 1/3] Ignore the vscode or jetbrain local file. --- .gitignore | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e1ab6c6..b59b50a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,10 @@ Desktop.ini $RECYCLE.BIN/ # OSX -.DS_Store \ No newline at end of file +.DS_Store + +# local vscode config files +.vscode + +# local jetbrain config files +.idea From 99f5e3de56418d6dc97836436d85dfaac7334928 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Wed, 14 Jun 2023 21:41:35 +0800 Subject: [PATCH 2/3] Add editor config to define the file format. --- .editorconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4bef0ad --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false From ab2529c31b11616e11dae6e3d19470e186803ff2 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Wed, 14 Jun 2023 21:43:16 +0800 Subject: [PATCH 3/3] Fixes languages listing on GitHub. --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e01020a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto +*.md text eol=lf + +# Fixes languages listing on GitHub +content/**/*.md linguist-detectable