Skip to content

Commit 84a1b81

Browse files
dev: git ignore patterns and project attributes
1 parent 5038c6b commit 84a1b81

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.gitattributes

+8
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

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
1-
_book
2-
node_modules
1+
# Exclude all files from root directory
2+
/*
3+
4+
# ------------------------
5+
# Common project files
6+
!CHANGELOG.md
7+
!README.md
8+
!LICENSE
9+
10+
# ------------------------
11+
# Include MkDocs files
12+
!docs/
13+
!includes/
14+
!overrides/
15+
!mkdocs.yml
16+
17+
# ------------------------
18+
# Project automation
19+
!Makefile
20+
21+
# ------------------------
22+
# Version Control
23+
!.gitignore
24+
!.gitattributes
25+
!.github/
26+

0 commit comments

Comments
 (0)