[issue40012] Avoid Python 2 documentation to appear in Web search results

2021-04-02 Thread Ammar Askar


Ammar Askar  added the comment:

This has been fixed as part of 
https://github.com/python/docsbuild-scripts/pull/99

Thank you to Julien, our Google results are much cleaner now :)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Sorry, the 'previous issue' is a vague memory which I cannot find.  For some 
reason, searching this tracker for 'Google' return 1500+ hits.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-25 Thread Ammar Askar


Ammar Askar  added the comment:

Instead of noindex maybe the 3.x documentation can be marked as the canonical 
one: https://support.google.com/webmasters/answer/139066

This should still allow the old docs to be crawled but emphasize the latest 
docs on the website:

> Google Search result usually points to the canonical page, unless one of the 
> duplicates is explicitly better suited for a user: for example, the search 
> result will probably point to the mobile page if the user is on a mobile 
> device, even if the desktop page is marked as canonical.

Presumably the "better suited" means that if you search for "python2 timeit" 
you'd still find the py2 docs.

Terry Reedy, could you link the earlier issue so this information can be posted 
there, or are you referring to the issue Karthik linked?

--
nosy: +ammar2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-23 Thread Terry Davis


Terry Davis  added the comment:

It seems like using "noindex" to tell search engines not to look at Python 2 
docs at all would have the side-effect of breaking Python 2 documentation 
searches.
I have gotten into the habit of searching for "python 3" explicitly, which I 
think is a reasonable work-around. Especially since python 2 and 3 could be 
considered different languages.

--
nosy: +Terry Davis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-20 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

See also the approach to use robots.txt 
https://github.com/python/pythondotorg/issues/1030

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I completely agree with the goal.  But I think that this is duplicate of at one 
previous issue either here or on the website tracker.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-19 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +mdk

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-19 Thread Peter Bittner


New submission from Peter Bittner :

Currently, when you do a Web search (e.g. using Google, Bing, Yahoo!, 
DuckDuckGo, et al.) for a Python module or function call you'll find a link to 
the related Python 2 documentation first.

How to reproduce:

1. Search for simply "os.environ" in your favorite search engine.
2. Find a link to the Python documentation in the first 3 results. Typically, 
this will point to the Python 2 docs first.

(Side note: Google seems to now actively manipulate the results ranking Python 
3 results higher. Apparently, this is the only popular search engine behaving 
like that.)

Expected result:

- When searching for Python modules, functions, builtins, etc. on the Web, no 
search results for Python 2 should pop up at all if the same content exists for 
Python 3

Possible implementation:

- Add a "noindex" meta tag to the header of the generated HTML documentation
- see https://support.google.com/webmasters/answer/93710

--
messages: 364597
nosy: bittner
priority: normal
severity: normal
status: open
title: Avoid Python 2 documentation to appear in Web search results
type: enhancement
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com