Add 'noindex' meta robots tag to the search results page (#11700)

This commit is contained in:
James Addison
2023-10-03 14:15:57 +01:00
committed by GitHub
parent 5d58624227
commit 71d3eaee75
3 changed files with 8 additions and 2 deletions

View File

@@ -399,6 +399,9 @@ def test_html4_error(make_app, tmp_path):
(".//h1", "Generated section"),
(".//a[@href='_sources/otherext.foo.txt']", ''),
],
'search.html': [
(".//meta[@name='robots'][@content='noindex']", ''),
],
}))
@pytest.mark.sphinx('html', tags=['testtag'],
confoverrides={'html_context.hckey_co': 'hcval_co'})