-
Notifications
You must be signed in to change notification settings - Fork 60
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 "Peer Reviewed" badge #428
Conversation
lol I love how the pre-commit hook is bouncing the file ending of an svg that rocks |
Somehow you aren't on our editorial team @sneakers-the-rat as i was wondering why the CI didn't kick off for you here. i just invited you to our org and the team! I'm confused how this happened!!! Should we make some changes to our CI build? this site was setup 5 years ago. I love serving this badge. we've thought about it before! |
Hmm hmm hmm I think you could do that with a static page and JS but im not sure, let me try. |
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.
ok no rush on that. @sneakers-the-rat
- you should be able to merge things here. If you can't please let me now. Please feel free to merge pr's as it makes sense! 🚀
- If you'd prefer to add a badges directory we could do that. i wasn't sure above if you added it to images/ given that's what the website uses. But if you think it would be better to have pyopensci.org/badges/ let's create that url path for now.
I suppose the last option would be a new repo called badges where we store all things badges.
i am probably overthinking this. So if you are comfortable with things being in images/badges let's merge. If not, we could start with a top level badges dir here and then reconsider in the future moving to a badges repo that is designed to host images / badges. and i can talk with rOpenSci about how their badging infra is setup.
thank you for this pr and my apologies for taking so long to get back to you!
lets see if a page with nothing but this in it works on github. const params = new URLSearchParams(window.location.search);
let img_param = params.get('img');
if (img_param === 'sheep') {
img = 'sheep.jpg';
} else if (img_param === 'snake'){
img = 'snake.jpg';
} else {
img = 'blemmye.jpg';
}
let url = new URL(img, window.location);
window.location.replace(url.href); no params: sheep: snake: |
ok so the only way we could do that dynamically (so eg one would add a link like alternatively, we could just do the static site generator thing and when building the page we read the for now i say we just do it like this since we don't even have badges for the other stages of the review process yet anyway, and it's not clear that someone would want to have a if we think we're gonna want more badges in the future, let's make a top level |
✔️ I love the idea of having a package specific badge - that is what rOpenSci does. Does that sounds good to you? make sense? |
Def same page. Ok ill move the image and merge when I get to desk |
Fwiw I love SSG hacking to do serverlike things. The low fi web way |
Amazing. 🚀 and 😆 it's pretty awesome how much we can make static sites do 🙃 just say the word if you don't have enough permissions!! |
so this can get merged because it's additive (the old image isn't going away), but i think just so we make the switch clean and have it done, it might be good to do all these at once: pyOpenSci/software-peer-review#293 made a checklist there, i appreciate the invitation to become a |
See pyOpenSci/software-peer-review#293 - rather than using tinyurl and shields.io, we can just host our own badge :). this is just a directly saved version of the existing logo.
ideally we would have it just at
/badges/peer-reviewed.svg
buta) i didn't want to add another top-level directory when there is already a top-level
images
directory, andb) this site is using the old style
github-pages
gem build method rather than a github actions build, so I wrote a quick plugin to be able to specify copying from one location in the source directory to another in the built site, but you can't use custom plugins with the old style gh pages build :(.