Why is languages section not displayed my github repository?

1.1k views Asked by At

Why is languages section not displayed on my github repository?

My Repository is https://github.com/alumuko/vanilla-datetimerange-picker

I found a question GitHub not showing languages used in repository

So I have added ".gitattributes" in my repository like this.

dist/* linguist-documentation=false

But not displayed yet.

3

There are 3 answers

0
pchaigno On BEST ANSWER

All files under dist/ are considered vendor files by Linguist by default. Vendor files are not counted in language statistics. You can see the list of default vendor files in lib/linguist/vendor.yml.

To consider files under dist/ for language statistics, you can add the following to .gitattributes:

dist/* linguist-vendored=false

linguist-documentation=false shouldn't be needed.

0
Robson On

You need this line in the .gitattributes:

dist/* linguist-vendored=false

I've forked it here, made that change and now the language share is displayed:

https://github.com/Robson/vanilla-datetimerange-picker

0
Alumuko On

Thanks to pchaigno and Robson.

I added

dist/* linguist-vendored=false

into ".gitattributes", then the problem has been resolved.