From c110d459fb2e1e0a9f914e943e986d4953f2a9e1 Mon Sep 17 00:00:00 2001 From: UncleCode Date: Tue, 7 Jan 2025 21:20:17 +0800 Subject: [PATCH] Update .gitattributes --- .gitattributes | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 12cff929..0af13c51 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,12 @@ -# Ignore Markdown files for language statistics -*.html linguist-detectable=false +# Documentation +*.html linguist-documentation +docs/* linguist-documentation +docs/examples/* linguist-documentation docs/md_v2/* linguist-documentation -# Force Python files to be detected +# Explicitly mark Python as the main language +*.py linguist-detectable=true *.py linguist-language=Python + +# Exclude HTML from language statistics +*.html linguist-detectable=false