mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update .gitattributes - mark *.recipe as linguist-language=python
Sometimes syntax highlighting is picked up correctly on GitHub which uses linguist[^1], when the `*.recipe` includes a shebang for python it will syntax highlight. Other times it does not. This change adds an attribute to `*.recipe` to mark it as a python language to linguist, following the documentation on overrides[^2]. Example without highlighting: [recipes/ad.recipe] Example with highlighting (python syntax picked up via shebang): [recipes/ambito_financiero.recipe] [^1]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-repository-languages [^2]:559a642694/docs/overrides.md
[recipes/ad.recipe]:aeb19dfedf/recipes/ad.recipe
[recipes/ambito_financiero.recipe]:aeb19dfedf/recipes/ambito_financiero.recipe
This commit is contained in:
parent
aeb19dfedf
commit
0590429d49
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,7 +1,7 @@
|
||||
# Tell git what files are txt
|
||||
*.py text diff=python
|
||||
*.pyj text diff=python
|
||||
*.recipe text diff=python
|
||||
*.recipe text diff=python linguist-language=python
|
||||
*.coffee text
|
||||
*.js text
|
||||
*.pot text
|
||||
|
Loading…
x
Reference in New Issue
Block a user