From 49927bc66f88441b6d980516a5ff68db1f8c15c9 Mon Sep 17 00:00:00 2001 From: Practicalli Engineering Date: Sat, 9 Mar 2024 13:37:47 +0000 Subject: [PATCH] dev: set markdown as repository language with `.gitattributes` Add `.gitattributes` file to configure GitHub Linguist to only consider `.md` Markdown files Linguist should ignore other file types --- .gitattributes | 8 ++++++++ .gitignore | 1 + CHANGELOG.md | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..9e4d730a6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# Configure Languages for GitHub repository using Linguist + +# ignore all files, except for markdown +docs/** linguist-detectable +*.md linguist-detectable=true +*.css linguist-detectable=false +*.js linguist-detectable=false +*.html linguist-detectable=false diff --git a/.gitignore b/.gitignore index 51bd74ea1..ee3e61b03 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,6 @@ # ------------------------ # Version Control !.gitignore +!.gitattributes !.github/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 730434fd2..c45700bff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog # Unreleased +## Added +- dev: set markdown as repository language with `.gitattributes` + ## Changed - clojure-cli: enhance built-in commands description - code-challenge: rewrite code challenges overview