github-languages | GitHub languages statistics | Analytics library
kandi X-RAY | github-languages Summary
kandi X-RAY | github-languages Summary
GitHub languages statistics
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of github-languages
github-languages Key Features
github-languages Examples and Code Snippets
Community Discussions
Trending Discussions on github-languages
QUESTION
How can I remove this indexed HTML page, that are a documentation to one of the external librarys I use on my GitHub blob?
I have tried alot of diffrent commands, but don't find a way to remove this file from the GitHub Linguist indexer...
Here are the "Languages" that are indexed on the startpage: [image] Languages on the startpage
The file that I want to exclude: [image] HTML file that needs to be excluded
...ANSWER
Answered 2021-Jan-28 at 11:22You've got the right idea and the right Linguist overrides (either will do the trick). The problem is your path matching isn't quite right.
From the .gitattributes
docs
The rules by which the pattern matches paths are the same as in
.gitignore
files (see gitignore[5]), with a few exceptions: [...]
If we look in the .gitignore
docs (emphasis is mine):
An asterisk "
*
" matches anything except a slash. The character "?
" matches any one character except "/
". The range notation, e.g.[a-zA-Z]
, can be used to match one of the characters in a range. See fnmatch(3) and the FNM_PATHNAME flag for a more detailed description.Two consecutive asterisks ("
**
") in patterns matched against full pathname may have special meaning: [...]
- A trailing "
/**
" matches everything inside. For example, "abc/**
" matches all files inside directory "abc
", relative to the location of the.gitignore
file, with infinite depth.
The files you're trying to ignore are in sub-directories of the paths you've specified so you need to either:
- use
TestProject/wwwroot/lib/** linguist-vendored
to recurse, or - use
TestProject/wwwroot/lib/bootstrap-icons/docs/* linguist-vendored
to limit to this directory.
We can demonstrate this without even using Linguist thanks to git check-attr
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install github-languages
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page