Can I have canonical links that show to latest version? - docusaurus

I use documentation versioning on my site. I've noticed that some versions of docs rank higher on Google than the latest version of the docs.
I wouldn't discourage google from indexing, although that might be the only solution when I think of it, but I wonder if some kind of canonical linking is possible. At the moment in the version docs I can see:
<link data-rh="true" rel="canonical" href="https://myserver.com/docs/product/1.2.1/functions"><link data-rh="true" rel="alternate" href="https://myserver.com/docs/product/1.2.1/functions" hreflang="en">
Can I have canonical to show to the current URL https://my server.com/docs/product/functions?

Related

Can we use Angular (or similar frameworks) for development of Google Sheets Addon?

I've tried to search for an answer in the official documentation but didn't find. Also, we'd like to publish our addon in the official Chrome Store. So I guess it's not forbidden to use a single app framework, right?

Placing my website in progress online dangerous for future google seo

I'm building a website for a company, I build this website offline so google won't index it, with the reason that google don't see the codes yet and thinks at the official launch that we copied the text/codes from an other website.
Sadly I encounterd a problem. I need to implant the facebook social plugin, sadly does this plugin only work when the site is online. But as I said putting it online can be dangerous for future Google SEO.
Is there an other option where I can see the facebook plugin but it is not online yet or is it okay for me to just place it online already on (for example) www.example.com and later put the released product on (for example) www.released.com.
Any toughts on this problem?
Why don't you place the website online in a folder that is blocked for Googlebot via robots.txt?
That way you can test all the online elements work and not have to worry about users and search engines finding it and listing it.
An alternative could be to use the .htaccess file to limit access only to your IP address - that way, you'd be the only one to see the site live.

Meta tag not working for mobile Freindly website

from 21 April google launch Mobile Freindly website algorithm. I used the meta name=viewport content="width=device-width, initial-scale=1" Tag but its not working . what i should do now for this.
The release you are referring to by Google on the 21st of April is a push to get site owners to make mobile friendly versions of their websites. Simply by placing viewport markup into your website does not make it mobile friendly, the design needs to respond to the resolution of the device you are viewing the website in. Recommend looking more into "Responsive Website Design". If your site is too big to do a redesign before the 21st, consider making an m.yourdomain.com mobile version of your site while you work on a redesign to responsive.
To check if your website will pass the mobile friendly test by using Google Webmaster Tools Mobile Friendly checker tool: https://www.google.com/webmasters/tools/mobile-friendly/
Hope this helps.

Linking to External Resources in jsfiddle

Can someone explain how to find external resources for creating jsfiddle examples? I've been looking on github and plugin author's websites but there must be a standard method to get links to these files.
This example of the masonry layout:
However, I scavenged the resource from David Dsandro's dropbox.
http://dl.dropboxusercontent.com/u/1000295/jquery.masonry.min.js
I got the fiddle's masonry layout to work but linking by scavenging doesn't sound ethical.
There is no such thing. All you can do in the External Resources section is to provide a url to the library/plugin/css you want. The hotlinking ethics principles applies in jsfiddle as in any other website.
You can get that link in the traditional way, looking into the library's author site, or in a cdn. For example, cdnjs is a great site where you will possibly find the libs you need (including mansonry in this case). jsdelivr is another cdn hosting lots of libs that I've just discovered thanks to this question.
Take into account that you already have some plugins built-in in the Frameworks & Extensions section.

How to tell Google to recognize mobile-version and full-version of the web?

I have created mobile-optimized version of my web. Full version runs at www.domain.com and the mobile version runs at m.domain.com. Now I DO want to use this domain scheme for certain reasons.
Now when I try to search Google, sometimes I get results from both domains - which I don't think is good experience for the users - coming with desktop browser to a simple mobile-version of the web. Also I want to avoid duplicate-content problem.
What would be the best practice to "tell" Google that www.domain.com is full version website and m.domain.com is the website with the same content but with very simple design optimised for mobile users ?
Make m. URLs redirect (or <link rel="canonical">) to desktop URLs for spider UAs.
Make desktop URLs redirect to m. URLs for mobile UAs.
You should really use
<link rel="alternate" media="handheld" href="http://mobileversion..."/>
You should add a rel alternate on your desktop that points to the mobile URL and a rel conical on the mobile site that points to the desktop. For more clarity on this watch the video by Google's Matt Cutts.
https://www.youtube.com/watch?v=HVQHbfpqXHM