Skip to content
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

Better SEO for "Scala spec" #1222

Open
steinybot opened this issue Mar 8, 2021 · 4 comments
Open

Better SEO for "Scala spec" #1222

steinybot opened this issue Mar 8, 2021 · 4 comments

Comments

@steinybot
Copy link

steinybot commented Mar 8, 2021

Being a lazy Googler I search for "Scala spec" instead of "Scala specification" or "Scala language specification". This only returns the archived 2.11 spec from https://scala-lang.org/files/archive/spec/2.11/.

Searching for "Scala specification" will show that Google has ranked the archive spec higher than the latest one (perhaps not much can be done about this if there are too many inbound links to it).

Pretty minor problem but I've hit it enough times recently that it bugged me enough to raise an issue about it.

@preveen-stack
Copy link

preveen-stack commented May 31, 2023

https://developers.google.com/search/docs/fundamentals/seo-starter-guide

May be we can improve content to make sure that google identifies this better
view-source:https://scala-lang.org/files/archive/spec/2.11/

<html>
--
  | <head>
  | <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  |  
  | <link rel="icon" type="image/png" href="public/favicon.ico">
  | <link rel="shortcut icon" type="image/png" href="public/favicon.ico">
  |  
  | <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  | <title>Scala Language Specification</title>
  |  
  | <link rel="stylesheet" type="text/css" href="public/stylesheets/screen.css">
  | <link rel="stylesheet" type="text/css" href="public/stylesheets/screen-toc.css">
  | <link rel="stylesheet" type="text/css" href="public/stylesheets/fonts.css">
  | </head>
  |  
  | <body>
  | <header>
  | <div id="header-main">
  | <img id="scala-logo" src="public/images/scala-spiral-white.png" />
  | <span id="title">Scala Language Specification</span>
  | <a id="github" href="https://github.com/scala/scala/tree/2.11.x/spec"><img src="public/images/github-logo@2x.png" alt="Edit at Github"></a>
  | </div>
  | <div id="header-sub">Version 2.11</div>
  | </header>

<html>
<head>
  <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

  <link rel="icon" type="image/png" href="[public/favicon.ico](https://scala-lang.org/files/archive/spec/2.11/public/favicon.ico)">
  <link rel="shortcut icon" type="image/png" href="[public/favicon.ico](https://scala-lang.org/files/archive/spec/2.11/public/favicon.ico)">

  <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  <title>Scala Language Specification</title>

  <link rel="stylesheet" type="text/css" href="[public/stylesheets/screen.css](https://scala-lang.org/files/archive/spec/2.11/public/stylesheets/screen.css)">
  <link rel="stylesheet" type="text/css" href="[public/stylesheets/screen-toc.css](https://scala-lang.org/files/archive/spec/2.11/public/stylesheets/screen-toc.css)">
  <link rel="stylesheet" type="text/css" href="[public/stylesheets/fonts.css](https://scala-lang.org/files/archive/spec/2.11/public/stylesheets/fonts.css)">
</head>

<body>
<header>
  <div id="header-main">
  <img id="scala-logo" src="[public/images/scala-spiral-white.png](https://scala-lang.org/files/archive/spec/2.11/public/images/scala-spiral-white.png)" />
  <span id="title">Scala Language Specification</span>
  <a id="github" href="https://github.com/scala/scala/tree/2.11.x/spec"><img src="[public/images/github-logo@2x.png](https://scala-lang.org/files/archive/spec/2.11/public/images/github-logo@2x.png)" alt="Edit at Github"></a>
  </div>
  <div id="header-sub">Version 2.11</div>
</header>

@SethTisue
Copy link
Member

@fsalvi could you de-index https://scala-lang.org/files/archive/spec/2.11/ ?

then we can see what happens instead and see whether we need to take further action

@fsalvi
Copy link
Contributor

fsalvi commented Mar 10, 2025

I did it.

@SethTisue
Copy link
Member

SethTisue commented Mar 10, 2025

Thank you — progress! The top hit on "Scala spec" is now https://scala-lang.org/files/archive/spec/2.13/

Ideally we'd like the Scala 3 spec to be the top hit, but I don't think we want to de-index 2.13, so we need another solution. I think it would be ideal to have a version drop-down where you can pick 3, 2.13, or 2.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants