-
Notifications
You must be signed in to change notification settings - Fork 810
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 namespaces to generate-themes-doc.fish #154
Conversation
Pyppe
commented
Nov 3, 2015
- Resolves Themes.md has the wrong screenshot for bobthefish #116
That's cool! Do we need the |
Well.. we don't, but personally I'd prefer it, because it stands out and makes it more explicit that something has been replaced/generated there. At least I think we should have some prefix other than the theme name itself (but of course it could be shorter). Off-topic speculation...Also... there's starting to be too much of regex-magic going on in |
I'd prefer trying something like asciicast for theme previews. Btw, I don't know what level of automation it allows. |
There has been some talks around it, we might want to only use a theme screenshot instead of the full readme. What's your opinion on that? |
0a7f343
to
62e8b2c
Compare
Good idea having the screenshots only. That is actually what I tried to do at first (couple of months ago when we added the generation script). However, IIRC it was very difficult to determine from the README file what actually is the screenshot. There are so many different ways people have added those. That's why I actually included the whole README-file instead of trying to parse only the screenshot. |
Maybe we could create a script which is executed inside asciinema recorder. A script would ensure all themes get equal preview treatment. Then with the preview uploaded to asciinema we could use its URLs. |
We could add a placeholder on the template for a screenshot and only use the screenshot if it's on that location. @derekstavis what I don't like is that it doesn't allow people to show off a specific customisation of your theme. |
@bpinto Yeah, placeholder would solve the issue. Alternative approach would be to use e.g. JavaScript (node.js) to replace the generation script. Then we could e.g. parse the READMEs more robustly, and find screenshots better (comparing e.g. the image sizes). ^ But that would be quite an additional dependency for such a trivial task as listing theme screenshots. My humble suggestion would be to merge this (because it's better than the current master), and create a new issue for solving the issue better. Perhaps by requiring the screenshot to be declared in certain way, as @bpinto suggested. |
I agree, could you rebase? We just merged another PR. 👯 @derekstavis do you agree? |
By the way, I don't want to limit to screenshots only, could be whatever, as long as it's in the placeholder. |
Fixes: #116 |
I don't think we need to rebase? There's nothing conflicting, and it's just one commit. |
62e8b2c
to
d27d320
Compare
But rebase I did, nevertheless. 😁 |
We always rebase before merging to keep the git history clean. It's a philosophy of life, I guess. 😂 Thanks! |
I'm with @bpinto. I'd considered doing an asciicast script, but a generic one wouldn't work very well. For example, the bobthefish screenshot specifically goes into a second-level-from-root directory which isn't owned by the current user to show off permissions color, truncated paths, and non-repo directory styles. It also changes user, and sshes into another box to show off things with users and hostnames. It's likely the only theme with support for that exact combination of features. If any other theme used the same sequence, there would be a bunch of boring steps where nothing really changed. What if, instead, we added a started script to the theme template, and let people customize and record their own? |
That's an interesting approach @bobthecow |
Merging it. Will someone open an issue so we can discuss how to improve it? Thanks for the fast PR @Pyppe |
Add namespaces to generate-themes-doc.fish
I'd say 👍 on this for now. It fixes the immediate problem, even if it's a bit more brittle than we'd like. In the event that it breaks, someone should notice and we can address it then :) For the future, though, I'd be interested in a more "summary" style approach. Maybe parse the theme README looking for |