-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add funding links to package data, READMEs, and playground #116
base: main
Are you sure you want to change the base?
Conversation
packages/tm-themes/index.d.ts
Outdated
@@ -1,10 +1,27 @@ | |||
/** https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository */ | |||
export interface FundingInfo { |
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.
I didn't see any shared dependency for these packages, so I had to copy/paste the type definition. Let me know if there's a preferred alternative.
✅ Deploy Preview for textmate-grammars-themes ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/tm-grammars/index.js
Outdated
@@ -3913,6 +4015,9 @@ export const injections = [ | |||
embeddedIn: [ | |||
'ts-tags', | |||
], | |||
funding: { | |||
ko_fi: 26, |
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.
These numbers are due to an error in the upstream YAML file. I submitted a PR to fix: 0x00000001A/es6-string-html#66
I could consider manually excluding these for now
@@ -18,6 +24,7 @@ export interface GrammarInfo { | |||
aliases?: string[] | |||
licenseUrl?: string | |||
license?: string | |||
funding?: FundingLink[] |
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.
These shouldn't ever be undefined, except the custom source
function for ts-tags
is causing it to be undefined sometimes so I just adjusted the type definition since I wasn't sure how to fix that properly
Proposal to implement the first part of shikijs/shiki#906:
/repos/{owner}/{repo}/contents/.github/FUNDING.yml
/repos/{owner}/.github/contents/FUNDING.yml
.funding
to GrammarInfo/ThemeInfoIf you wanted to display the same links on shiki.style, is there a better place to put the formatting code so it can be reused?
Example: