1

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.

Alumuko
  • 171
  • 2
  • 11

3 Answers3

3

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.

pchaigno
  • 11,313
  • 2
  • 29
  • 54
1

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

Robson
  • 2,008
  • 2
  • 7
  • 26
1

Thanks to pchaigno and Robson.

I added

dist/* linguist-vendored=false

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

Alumuko
  • 171
  • 2
  • 11