githubgithub-linguist

Why is languages section not displayed my github repository?


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.


Solution

  • 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.