-
Notifications
You must be signed in to change notification settings - Fork 458
Add linguist support for KDL files #2350
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
base: main
Are you sure you want to change the base?
Conversation
|
Not sure we want to do that. mdn/content is almost 100% about markdown but this repo is about generating types and that's very typescript. We use KDL, sure, but to augment. |
The KDL files are no generated part, but written by hand. So IMO it would be nice to have that detected.
to the far more correct
|
|
I agree with @HolgerJeromin |
saschanaz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should include .jsonc too then. But doing so would make it like 90% jsonc/kdl. Do we want that? I don't know...
| ############################################################################### | ||
| # linguist support for kdl | ||
| ############################################################################### | ||
| *.kdl linguist-detectable=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/github-linguist/linguist/blob/a7e40d31e271f6747fa1234df37b5fff3e6e2406/docs/overrides.md#detectable doesn't use =true 🤔, so maybe skip it?
| # linguist support for kdl | ||
| ############################################################################### | ||
| *.kdl linguist-detectable=true | ||
| *.kdl linguist-language=KDL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to manually give language at all? This exists to reclassify the language, but the default classification should just work.
Which would be the truth.
Why not? |
This adds KDL to the list of languages. Check https://github.com/bashamega/TypeScript-DOM-lib-generator
Got this idea from mdn/content#14123