Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Top Languages] Blog repositories(xxxx.github.io) should not be counted. #153

Closed
MrBenWang opened this issue Jul 23, 2020 · 7 comments
Closed
Labels
lang-card Issues related to the language card. wontfix This will not be worked on.

Comments

@MrBenWang
Copy link

Like this. HTML should not be Top1,because it's automatically generated by Hugo .🤣🤣🤣

top-languages

@anuraghazra anuraghazra added the lang-card Issues related to the language card. label Jul 23, 2020
@nombrekeff
Copy link
Contributor

Hmm I see, this will be solved when/if #140 is implemented. You could manually specify which languages to hide.

@MirayXS
Copy link

MirayXS commented Jul 24, 2020

/docs/ folder is also a blog site ( a way to "load" the website ) so it should also not be counted.

@MirayXS
Copy link

MirayXS commented Jul 28, 2020

Was this fixed, @anuraghazra ?

I saw a big change in my stats card, that's why i ask.

@anuraghazra
Copy link
Owner

Hi @MrBenWang @MirayXS currently we cannot exclude certain folders from get counted because github does not provide any ways to fetch folder sizes of exclude particular folders.

@anuraghazra anuraghazra added the wontfix This will not be worked on. label Jul 28, 2020
@anuraghazra
Copy link
Owner

Hi @MrBenWang i think there is a possible solution to this,

Maybe we can use .gitattributes to ignore some directories to be counted with the languages, which is a github lisgust feature.

Add a new file named .gitattributes with the contents :

dist/* linguist-vendored=false

replace the dist with the folder name you want to ignore.

@MrBenWang
Copy link
Author

@anuraghazra Sorry, I am late to reply you. linguist-vendored=false may not work. https://git.luolix.topmunity/t/linguist-vendored-false-not-working/940

My .gitattributes file,:

./* linguist-vendored=true

Wait a few days................

@anuraghazra
Copy link
Owner

This issue should be solved by the new exclude_repo option which let's you exclude specified repo from getting counted. Implemented in #493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-card Issues related to the language card. wontfix This will not be worked on.
Projects
None yet
Development

No branches or pull requests

4 participants