Browse Source

docs: add rel="canonical" link to latest API docs

v0.7.4-release
Ben Noordhuis 13 years ago
parent
commit
a5c51b4858
  1. 1
      doc/template.html
  2. 1
      tools/doctool/doctool.js

1
doc/template.html

@ -7,6 +7,7 @@
<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />
<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"/>
</head>
<body>
<div id="container">

1
tools/doctool/doctool.js

@ -110,6 +110,7 @@ if (argc > 3) {
// go markdown.
html = convertData(data);
filename = path.basename(filename, '.markdown');
output = output.replace(/{{filename}}/g, filename);
if (filename != "_toc" && filename != "index") {
if (data) {

Loading…
Cancel
Save