-
Notifications
You must be signed in to change notification settings - Fork 17
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
google-ability #12
Comments
If some web ranking guru can explain a simple fix, we can try implement. |
I've noticed this effect too - it's definitely annoying. It will be mostly down to link analysis - there are going to be a lot more links to the We could just mark the old versions not to be indexed (via I'd suggest we make the latest version always be available at just It would also help to add a banner box to each page in the old versions with a note that this is documentation for an older version, and with a link to the equivalent page in the latest, so human visitors know that they have reached an old version. It will tend to boost the page the latest version in link analysis, but I doubt this alone would fix the ranking problem. |
IMHO: +1 for a banner on top. This could be a static banner for all pages that has a drop down field for the version similarly to the Python documentation. The version list would just contain -1 for changing the -1 for redirecting to the newest documentation. Older versions sometimes have quirks and redirection would break links to these quirks if someone specifically documented them in their documentation/source. As an example SWIG 2.0 and earlier doesn't support nested classes. Redirection only for robots would be plain confusing because search results/snippets would often not match the content behind the link and to make matters worse the link could be plain invalid. |
We know the lists of pages for each version, so it's not hard to make the banner avoid offering a page which doesn't exist in an older version. I don't know of a case where we've renamed a page, but that wouldn't be hard to handle either - there are ~43 pages, so comparing the file lists to find any renames is totally feasible, and a script to add the banners could tailor them to each page as necessary.
This documentation doesn't include anything from the sources (there's no doxygen-like collation of documentation from SWIG source comments). Note that I'm not suggesting making it impossible to link to a specific version of the docs, but suggesting redirecting existing versioned links (which in most cases are only versioned because there's no option for them not to be - this isn't just an assumption, I've tried a few searches and looked through the results). This redirection does have a downside, but we should bear in mind that not redirecting also has a downside, and the number of cases where existing links are intentionally to a specific version of the documentation is a tiny minority. In my experience, most of the SWIG quirks that get fixed were never documented in the first place. Even in a case like yours where the link author intended a specific version, a redirect isn't automatically bad - for example, someone reading an out of date third-party claim that "SWIG doesn't support nested classes" backed up with a link to the 2.0 docs could follow it and see that this was now supported.
I've never suggested we should try to do any redirection specific to robots. |
Awesome! :-D
The problem is that you can't know if a link to a specific version of the documentation is intentional or not if all that is available are versioned links. So your gut feeling tells you that only a tiny minority of links are intentionally to an older version and my gut feeling agrees with that assumption. Nevertheless I wouldn't redirect automatically because of two reasons:
If you only use the newest SWIG version I think an automatic redirect to the newest version is awesome. I don't know though how many developers are stuck with an older version for whatever reason and an automatic redirect would only annoy them. So I think a warning in the banner if someone looks on outdated documentation would be more appropriate...
Olly, I just mentioned the implications for the sake of completeness and before someone starts discussing this very bad idea. I didn't think that you'd wanted to go down that road. So sorry if I've offended you with that comment. |
Maybe use sitemap to assign different |
Sounds good, assuming it actually works. Worth trying before anything more complex anyway. |
Agreed, seems plausible. If a patch appeared with the appropriate changes I can help test it out. Any idea how long we need to try it out for before seeing a positive effect? |
Moved to the www repo since this is about the website and that's where any fix needs to be made. I had a look at a sitemap, but it seems to need an individual entry for every single URL which seems cumbersome. I guess it would need to be generated by a script really. |
Googling anything about SWIG almost invariably leads you to ancient documentation from version 1.3... example screenshot attached. It would be nice if something could be done to move more recent documentation to the top of google searches...
The text was updated successfully, but these errors were encountered: