-
Notifications
You must be signed in to change notification settings - Fork 29
redirect / to http://shields.io/ #37
Comments
I'm not sure where DNS is for http://b.adge.me/ but fyi many DNS services (such as DNSimple) support HTTP redirects, no need to have a little server running for it (unless we want to rewrite some parameters for API changes?). |
@nathany Good call. In this case we're talking about the API server redirecting |
Fixed by 8f84eef. |
Not deployed yet? |
I'm still getting a 200 from http://img.shields.io/. |
|
It isn't deployed yet. I figured I should deploy it after I got a reaction to badges/shields#117 (comment). |
@whit537 I have deployed things such that this redirection is no longer necessary. Indeed: The website is located at the root of the repo ( We thus have the following properties:
@whit537 @olivierlacan can you make I will then remove the server ( |
@espadrine Sorry, I don't like this setup. :-( The purpose of my involvement with Shields is to try to fund an open-source service using Gittip. I'm less concerned about repo layout, but I do think we need the following:
I consider the page we currently have at http://shields.io/ to be a step in the right direction, but in my view we haven't yet begun to work on (1). We started trying on #92 but that has stalled out. The backend is settling down after our move to gh-badges. It's time to figure out how to restart our branding and design/marketing effort. Specifically, I'm a big -1 on redirecting http://shields.io/ to http://badges.github.io/gh-badges/, because that would seriously weaken the Shields brand. It's already weak enough! We need to strengthen the Shields brand, not weaken it! |
I'm trying to fix a current issue that I'm getting pinged for. That issue is that http://shields.io is out of date. It will get more and more out of date with time. I have no issue with having a better marketing information in http://shields.io in the future. Since you wish http://img.shields.io to hold the actual web API, it would make sense to put exhaustive information about it in http://img.shields.io/index.html. I see no reason why both websites should show the same information forever. In that case, redirecting http://img.shields.io to http://shields.io is no longer necessary (and in fact actively contributes to the brand fragmentation which you wish to reduce). |
I just double-checked: I believe you have access to push to the
Agreed. I believe the information should be kept in one place: http://shields.io/. :-)
I think it would make more sense to have the web API docs at http://shields.io/docs/ (or something like that), in order to maintain consistent branding with the rest of the http://shields.io/ site by using the same templating and being integrated into a single information architecture for navigation. The reason to keep the API server on a separate domain from the marketing pages is that "it allows [us] to do more interesting things on the api endpoint if/when necessary (rate limiting, caching, etc.) that do not affect the marketing pages" (@nbibler at badges/shields#52 (comment)).
I'm not seeing this. If I learn about Shields from Twitter or whatever, I'm going to see a link directly to http://shields.io/. If I learn about Shields from the When I view source on a Twitter profile pic and see https://pbs.twimg.com/profile_images/378800000364460013/764889e54498c073acf5d628f4c4b126_bigger.jpeg I don't expect to find something on https://pbs.twimg.com/. At most I might expect a redirect. Gravatar uses http://www.gravatar.com/avatar/28d77b070cbc2bb40b404e1f5b0e64fa for images, and redirects http://www.gravatar.com/ to http://en.gravatar.com/ (or other languages, presumably). Humans and computers have different needs, and using different domains allows us to best serve their respective needs. |
I'm trying to make it easy for contributors to test this. If the deploy script specifically requires badges/shields access to check that the website looks ok, they won't contribute, and it isn't very welcoming to start with. Let me explain the current state. Testing the website requires to run the server and go to If you really want Shields to be known as http://badges.github.io/shields/, the only result will be that someone will become the official website updater. If that is what you want, you can close this bug, because it is the current state, and the website will always lag behind until I remember to update it. |
Where is this idea coming from? I think http://badges.github.io/shields/ should redirect to http://shields.io/ (and I'm not sure why it doesn't).
Unless we move the code from I agree that the process of updating http://shields.io/ to reflect whatever is actually available on http://img.shields.io/ should be automated. I think that the |
Okay, there's something very precise which either I or you don't understand about the current situation. Since I don't know which it is, I'll tell you what I understand. Currently, http://shields.io is just a domain name that costs nothing. It has no hosting. Hosting is provided by GitHub through this weird hack that we use by redirecting Since I have no control over
That would confuse / annoy contributors, so it's not a small change, it needs to be discussed and acknowledged a great deal. Think of all the issues to be copied across, all the people to ping if they want to stay subscribed to those issues. Besides, |
You were right, our DNS for shields.io was misconfigured. Sorry about that. :-/
Sure you can. :-)
GitHub owns the 199.27.76.133 IP address and uses it for GitHub pages (I see a GitHub pages 404 there). We have an ALIAS record for
So that's all good. On the other hand, 50.31.209.254 does not resolve to GitHub pages. I went fishing, and it turns out that I neglected to delete the URL record for shields.io. This is another DNSimple extension that implements 301 redirect functionality. Presumably 50.31.209.254 is owned by DNSimple and results in a redirect.
So, yes: depending on which A record you were getting from DNS, you could very well have still been getting the redirect from http://shields.io/ to http://badges.github.io/shields/. I've now removed the URL record, and dig is running clear:
However, since the redirect was a 301 (sadly), you may need to clear your browser's DNS cache before seeing http://shields.io/ resolve properly. Hopefully that clears that up. :-) |
I count nine issues (including this one).
I count eight unique participants across the nine open issues. I guess that doesn't seem like a lot to me. :-)
The master branch has a storied past, yes. Right now we're not doing much of anything with it. We were talking about using it for the code for a go-based API server when you showed up with gh-badges (see badges/shields#91 (comment)). So I think moving the gh-badges code to shields/master makes sense from the pov of where we were headed with the master branch before.
I think mostly you're just dragging your feet, because gh-badges is your creation, and you're reluctant to see it subsumed under the Shields brand. :-) Of course, that's not a small change. Do you believe in the Shields brand? Based on the past month or two, do you want to keep working together to move forward with the Shields brand? :-) |
Since that wasn't the reason, I'm not sure what was. If http://shields.io can do an ALIAS on an apex domain, the target is irrelevant; we can pick whichever is easiest. (You said it was from Also, like you said, I wish to keep the git history attached to this project for many reasons, an important one being that I have a few experimental branches that I don't want to lose. Since we can't make Would renaming the current repo from |
That was the reason, but (I think?) we were talking past each other, because I didn't think that http://shields.io/ was redirecting at all (DNS was misconfigured). I don't think http://shields.io/ should redirect anywhere. I think that should be our project's homepage. :-)
It sounds like you're conflating the
Sure, fair enough. I've brought over
Next step is to do a merge from
I was unable to find any experimental branches in the gh-badges repo. The only two I see are gh-pages, and single-color. The former is obsolete in favor of the gh-pages branch in this repo (if there's history in gh-badges/gh-pages that we need to keep, let me know). The latter is an ancestor of gh-badges/master; it doesn't have any unmerged work on it. What am I missing? |
It's odd to hear you say that, since that's how you've been doing it on
We can't target
Once we're inside GitHub pages, GitHub uses the
Right! So ... by convention, GitHub routes HTTP requests with a |
@espadrine tl;dr Next steps as I see them:
|
Ok, so we can replace the git history of a GitHub project without losing the issues. I somehow assumed that wasn't possible. I now know about From what I understand, I must be careful to copy the CNAME file from gh-pages in the shields repo. As for the README, what would you like to add from the old README? I'll happily add anything.
I meant that when the |
Yay! :-)
Why? The point of the
It sounds like you're thinking that we need the exact same files in both |
That's exactly right, and I'd like to convince you. Not only does it ensure that the website is always up-to-date, it also makes updating it effortless. Contributors don't have to create a separate pull request and switch over to a different branch just to start working on the website. Moreover, testing the website and checking the badges against the website is much easier if the server API and the website can coexist in the same directory. In short, I see a lot of pros, and I don't see any cons. I won't add that git branches were designed and implemented for merging. Or maybe I will. |
I've done a merge in f0249e35019dac3a49621b6e1691d46bf8afe291. I moved the design spec and install instructions to separate documents, and folded the rest of the content together in the README. The "Retina-Ready" section needs to be rewritten. |
I have a call, bbiab. |
:-) |
Hmm, I thought you meant "We would need to discuss how to merge the READMEs", not "I'll add all the 116 commits from the old history". There's a lot of commits about files that don't exist anymore (and a lot of those files, too), including many binary files that I can't even read. There is a directory named "font" containing a single directory named "Open_Sans" which contains no less than 10 actual TTF fonts, none of which we use currently! And I doubt we'll ever use OpenSans-ExtraBoldItalic.ttf. The repo size rose from a slim 544K to a flabbergasting 5.5M of history! That's more than 10x! Don't get me wrong, I love the added contributors, but I doubt it will make them want to work on the new codebase. And the log history looks like a cat's head glued onto a dog's body. Until that huge merge commit, browsing the history requires you to remember that it is made of two separate branches that have absolutely nothing in common, from the root down. That's too bad, because the only point of merging two branches is to have a clear history showing the incremental changes to the code. As it turns out, I also have a local experimental branch containing a I'll list the changes that I'd happily have as a new commit on top of the
If you agree, I'll do it. |
I agree! Sorry for the noise. So you'll do a force push to Eventually I see the content in SPECIFICATION ending up on a page under http://shields.io/ (however we decide to structure that). Maybe move it to an html page right now? |
Why is that? These are services that @olivierlacan et al. talked to and "sold" Shields to. They are the ones who have made a decision to follow the Shields design standard. |
Ah. Should I defined "Shields" as a specification for how badges look? |
And users of technology are not allowed to find their own uses for it? ;-) Using the I don't like the idea of having one codebase for both |
Shields is "a legible & concise status badge solution for third-party codebase services." In another context we defined the mission of Shields as "providing user-friendly metadata about open-source projects." The badge specification is one part of that, but Shields is bigger than just the badge specification. |
That said, having them in the same repo is good because then there's only one place for tickets, which helps newcomers (no, "Which repo do I ticket this in?"), and also encourages designers and developers to collaborate together. |
@espadrine On the other hand, our experience with @opencompany has taught us that managing static files directly in We could do something similar here:
All of this is a bit out of scope for this ticket, though. Are we agreed that http://img.shields.io/ should redirect to http://shields.io/, however we end up organizing the code for each under the hood? |
Closing this, as the move is done now. |
Reticketed from #36. Sounds like we're going to do the redirect in HTTP instead of HTML. Also some question as to our repo organization ...
The text was updated successfully, but these errors were encountered: