Skip to content

Commit 49927bc

Browse files
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
1 parent ddc93bf commit 49927bc

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Configure Languages for GitHub repository using Linguist
2+
3+
# ignore all files, except for markdown
4+
docs/** linguist-detectable
5+
*.md linguist-detectable=true
6+
*.css linguist-detectable=false
7+
*.js linguist-detectable=false
8+
*.html linguist-detectable=false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
# ------------------------
2222
# Version Control
2323
!.gitignore
24+
!.gitattributes
2425
!.github/
2526

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
# Unreleased
4+
## Added
5+
- dev: set markdown as repository language with `.gitattributes`
6+
47
## Changed
58
- clojure-cli: enhance built-in commands description
69
- code-challenge: rewrite code challenges overview

0 commit comments

Comments
 (0)