Language Bar #5387
-
Please help me idk linguist-vendored. In my 1 repository there's no language bar as my files are in folders like dist, docs. I have made .gitattribute file and done some experiments but nothing happens I just want to add a language bar in my repo here's my repo https://github.com/AssassinAguilar/Alertism |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ooo, you've got a tricky one, and have a mistake. We'll start with the mistake: The tricky scenario is that your files under This will do the trick: dist/** -linguist-vendored -linguist-generated
docs/** -linguist-documentation I've used recursive wildcards so you don't have to keep updating it as you add new files and directories. I've also used the syntax that is not Linguist-specific. It's the same as appending |
Beta Was this translation helpful? Give feedback.
Ooo, you've got a tricky one, and have a mistake. We'll start with the mistake:
docs
is considered documentation so you need to use thelinguist-documentation
override.The tricky scenario is that your files under
dist
are considered both vendored (because of the directory) and generated (because the content is minified) so you need to use bothlinguist-vendored
andlinguist-generated
overrides if you want them to count.This will do the trick:
I've used recursive wildcards so you don't have to keep updating it as you add new files and directories. I've also used the syntax that is not Linguist-specific. It's t…