-
-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
Theme restructure #2556
Theme restructure #2556
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Zo-Bro-23 I'm okay with this if we make it back-compatible, meaning that we parse themes so that regardless of whether people use a hyphen or underscore, the card works 👍🏻. |
That's what I was trying to do with this PR. Parsing cards with hyphens and underscores works, but as a temporary solution I'm just creating duplicate theme names with hyphens and underscores. What do you think of that? Is it just better to take the time to modify the theme parsing instead of doing this? |
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.
Not Found
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.
End of input while parsing an object (missing '}') at line 1,153 >>> "default-repocard": ...
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.
End of input while parsing an object (missing '}') at line 1,153 >>> "default-repocard": ...
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.
Something went wrong: Theme JSON file could not be parsed: Error: End of input while parsing an object (missing '}') at line 1,153 >>> "default-repocard": ...
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.
Something went wrong in the theme preview action: Theme JSON file could not be parsed: End of input while parsing an object (missing '}') at line 1,153 >>> "default-repocard": ...
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.
Something went wrong in the theme preview action: Theme JSON file could not be parsed: End of input while parsing an object (missing '}') at line 1,153 >>> "default-repocard": ...
Mm I'm not sure maybe
Probably my regex not being inclusive enough you changed a lot of things: github-readme-stats/scripts/preview-theme.js Lines 298 to 304 in 1e61f9f
|
Maybe... Can you try making it a bit more lenient? |
@Zo-Bro-23 I currently sadly do not have much time to improve it myself. Feel free to suggest a PR for me to review 👍🏻. |
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.
Something went wrong in the theme preview action: Theme JSON file could not be parsed: End of input while parsing an object (missing '}') at line 1,153 >>> "default-repocard": ...
@rickstaa what commit broke the action? Maybe we should revert it to its previous version. |
No commit broke the action. It is just not equipped yet to handle the mount of changes you made 😅. I will take a quick look. |
Automated Theme PreviewHi, thanks for the theme contribution. Please read our theme contribution guidelines. We are currently only accepting color combinations from any VSCode theme or themes with good colour combinations to minimize bloating the themes collection.
❌ Theme PR does not adhere to our guidelines. Test results
Result: ❌ Some themes are invalid. Unfortunately, your theme PR contains an error or does not adhere to our theme guidelines. Please fix the issues below, and we will review your DetailsDefault-repocard theme preview
title_color: Gruvbox-light theme preview
title_color: Vue_dark theme previewtitle_color: Shades_of_purple theme preview
title_color: Blue_green theme previewtitle_color: Great_gatsby theme previewtitle_color: Solarized_dark theme preview
title_color: Solarized_light theme preview
title_color: Chartreuse_dark theme previewtitle_color: Material_palenight theme previewtitle_color: Vision_friendly_dark theme previewtitle_color: Ayu_mirage theme previewtitle_color: Midnight_purple theme preview
title_color: Flag_india theme preview
title_color: Kacho-ga theme preview
title_color: Ocean-dark theme preview
title_color: City-lights theme preview
title_color: Github-dark theme preview
title_color: Discord-old-blurple theme preview
title_color: Aura-dark theme preview
title_color: Noctis-minimus theme preview
title_color: Rose-pine theme preview
title_color: Date-night theme preview
title_color: One-dark-pro theme preview
title_color: Holi-theme theme preview
title_color: |
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.
Some themes are invalid. See the Automated Theme Preview comment above for more information.
The snake case feature is nice! How does the AA ratio work out though? I didn't add any new themes; these are all existing ones. |
Yea, the snake case was added for the same reason you wanted to restructure the themes in the first place. Maybe, therefore, the solution where hyphens get replaced with underscores is the best one 🤔? The AA ratio errors are from the fact that these themes have been around a long time and were therefore added before we had the AA tests. Nobody has yet taken the time to make them more AA-compatible 😅. |
This theme PR has been automatically closed due to inactivity. Please reopen it if you want to continue working on it. |
Automated Theme PreviewHi, thanks for the theme contribution. Please read our theme contribution guidelines. We are currently only accepting color combinations from any VSCode theme or themes with good color combinations to minimize bloating the themes collection.
❌ Theme PR does not adhere to our guidelines. Test results
Result: ❌ Some themes are invalid. Unfortunately, your theme PR contains an error or does not adhere to our theme guidelines. Please fix the issues below, and we will review your DetailsDefault-repocard theme preview
title_color: Gruvbox-light theme preview
title_color: Vue_dark theme previewtitle_color: Shades_of_purple theme preview
title_color: Blue_green theme previewtitle_color: Great_gatsby theme previewtitle_color: Solarized_dark theme preview
title_color: Solarized_light theme preview
title_color: Chartreuse_dark theme previewtitle_color: Material_palenight theme previewtitle_color: Vision_friendly_dark theme previewtitle_color: Ayu_mirage theme previewtitle_color: Midnight_purple theme preview
title_color: Flag_india theme preview
title_color: Kacho-ga theme preview
title_color: Ocean-dark theme preview
title_color: City-lights theme preview
title_color: Github-dark theme preview
title_color: Discord-old-blurple theme preview
title_color: Aura-dark theme preview
title_color: Noctis-minimus theme preview
title_color: Rose-pine theme preview
title_color: Date-night theme preview
title_color: One-dark-pro theme preview
title_color: Holi-theme theme preview
title_color: |
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.
Some themes are invalid. See the Automated Theme Preview comment above for more information.
This theme PR has been automatically closed due to inactivity. Please reopen it if you want to continue working on it. |
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.
Some themes are invalid. See the Automated Theme Preview comment above for more information.
This theme PR has been automatically closed due to inactivity. Please reopen it if you want to continue working on it. |
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.
Some themes are invalid. See the Automated Theme Preview comment above for more information.
@Zo-Bro-23 I reopened this since it actually makes sent. I, however, would just rename the themes with hyphens to underscores. Although this will break the theme for some people, it will just fall back to the default theme, which is, in my opinion, better than adding two versions of a theme. |
This theme PR has been automatically closed due to inactivity. Please reopen it if you want to continue working on it. |
Some themes have names with hyphens, and others have names with underscores. This is slightly confusing, so I thought we'd have names with both hyphens and underscores moving forward. @rickstaa what do you think?