Skip to content

Commit 50a46ad

Browse files
authored
Exclude generated stable source docs from Google (#323)
See pytorch/pytorch#26123 for full context. We would like the generated source file docs to not show up in google search because they are: - not useful - prevent users from finding the actual documentation. For example, a search for "conv2d" may rank the code source file for torch.nn.conv2d before the actual documentation for torch.nn.conv2d. All of the generated source documents are located in _modules. This PR adds `<meta name="robots" content="noindex">` to every html file in _modules to prevent these files from showing up in google search. [Here is the google dev docs about this](https://support.google.com/webmasters/answer/93710?hl=en). In the future we'll add the meta noindex tag as a part of the docs build process.
1 parent dee370a commit 50a46ad

File tree

184 files changed

+184
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+184
-0
lines changed

docs/stable/_modules/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/__config__.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/_jit_internal.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/_tensor_str.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/_utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/autograd.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/autograd/anomaly_mode.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/autograd/function.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

docs/stable/_modules/torch/autograd/grad_mode.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
66
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
77
<head>
8+
<meta name="robots" content="noindex">
89
<meta charset="utf-8">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0">

0 commit comments

Comments
 (0)