Skip to content

Commit 1ecb70d

Browse files
authored
Remove noindex meta tag (#1277)
1 parent e935025 commit 1ecb70d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/ex_doc/formatter/html/templates/redirect_template.eex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="utf-8">
55
<title><%= config.project %> v<%= config.version %> — Documentation</title>
66
<meta http-equiv="refresh" content="0; url=<%= h(redirect_to) %>">
7-
<meta name="robots" content="noindex">
87
<meta name="generator" content="ExDoc v<%= ExDoc.version() %>">
98
</head>
109
<body></body>

test/ex_doc/formatter/html_test.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ defmodule ExDoc.Formatter.HTMLTest do
141141
},
142142
index: %{
143143
title: ~r{<title>Elixir v1.0.1 — Documentation</title>},
144-
index: ~r{<meta name="robots" content="noindex"},
145144
refresh: ~r{<meta http-equiv="refresh" content="0; url=RandomError.html">}
146145
},
147146
module: %{
@@ -154,7 +153,6 @@ defmodule ExDoc.Formatter.HTMLTest do
154153
assert content_index =~ re[:shared][:charset]
155154
assert content_index =~ re[:shared][:generator]
156155
assert content_index =~ re[:index][:title]
157-
assert content_index =~ re[:index][:index]
158156
assert content_index =~ re[:index][:refresh]
159157
refute content_index =~ re[:module][:title]
160158
refute content_index =~ re[:module][:viewport]
@@ -166,7 +164,6 @@ defmodule ExDoc.Formatter.HTMLTest do
166164
assert content_module =~ re[:module][:viewport]
167165
assert content_module =~ re[:module][:x_ua]
168166
refute content_module =~ re[:index][:title]
169-
refute content_module =~ re[:index][:index]
170167
refute content_module =~ re[:index][:refresh]
171168
end
172169

0 commit comments

Comments
 (0)