Reputation: 2820
I made a small scraper in Crystal hosted on Github. I want to store website HTML for testing purposes but when I do my Github project appear as written in Html (because of quantity of HTML compared to quantity of Crystal lines).
How can I "ignore" theses Html files?
Upvotes: 1
Views: 492
Reputation: 2820
I found that HTML/CCS files stored in doc/
or docs/
folder at the root of your project will not impact repository language stats.
Upvotes: 0
Reputation: 13093
The open source Linguist project is in charge of computing language statistics for repositories. You can use Linguist overrides to change its detection output.
In particular, you might want to add the following lines in your .gitattributes
file:
*.html linguist-vendored
*.css linguist-vendored
Upvotes: 3
Reputation: 648
I don't think you can control what language github recognize your project as.
You can definitely ignore the html files by using .gitignore
(https://git-scm.com/docs/gitignore), but you will be literally ignoring those files and they will not appear in your github repository.
Upvotes: 0