Browse Source

Docs template: HTML cleanup

Remove references to `/favicon.ico` as it’s the default in all browsers. More
info: http://mathiasbynens.be/notes/rel-shortcut-icon

`type=text/css` and `media=all` are the implied defaults for `<link
rel=stylesheet>` (and `<style>`), so omit these attributes.

Similarly, `type=text/javascript` is the default for `<script>` elements, so
omit these attributes.
v0.7.4-release
Mathias Bynens 13 years ago
committed by Ben Noordhuis
parent
commit
456dafc3c6
  1. 12
      doc/template.html

12
doc/template.html

@ -3,10 +3,8 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>{{section}}Node.js v0.6.3 Manual &amp; Documentation</title> <title>{{section}}Node.js v0.6.3 Manual &amp; Documentation</title>
<link type="image/x-icon" rel="icon" href="/favicon.ico" /> <link rel="stylesheet" href="assets/style.css" />
<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" /> <link rel="stylesheet" href="assets/sh.css" />
<link rel="stylesheet" href="assets/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="assets/sh.css" type="text/css" media="all"/>
<link rel="canonical" href="http://nodejs.org/docs/latest/api/{{filename}}.html"/> <link rel="canonical" href="http://nodejs.org/docs/latest/api/{{filename}}.html"/>
</head> </head>
<body> <body>
@ -20,8 +18,8 @@
</header> </header>
{{content}} {{content}}
</div> </div>
<script type="text/javascript" src="assets/sh_main.js"></script> <script src="assets/sh_main.js"></script>
<script type="text/javascript" src="assets/sh_javascript.min.js"></script> <script src="assets/sh_javascript.min.js"></script>
<script type="text/javascript">highlight(undefined, undefined, 'pre');</script> <script>highlight(undefined, undefined, 'pre');</script>
</body> </body>
</html> </html>

Loading…
Cancel
Save