Skip to content

Commit a36e5a8

Browse files
committed
DOC: Add HTML5 doctype to redirect pages
Though these are not intended to be seen, this silences validators.
1 parent e91caf1 commit a36e5a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/sphinxext/redirect_from.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
This creates in the build directory a file ``build/html/topic/old-page.html``
1616
that contains a relative refresh::
1717
18+
<!DOCTYPE html>
1819
<html>
1920
<head>
2021
<meta charset="utf-8">
@@ -39,7 +40,7 @@
3940
logger = logging.getLogger(__name__)
4041

4142

42-
HTML_TEMPLATE = """\
43+
HTML_TEMPLATE = """<!DOCTYPE html>
4344
<html>
4445
<head>
4546
<meta charset="utf-8">

0 commit comments

Comments
 (0)