Browse files

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

  • Loading branch information...
1 parent 216019b commit 9627f037fa1b9aef966617ee9594e44472fa21e5 @bnoordhuis committed Nov 28, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 doc/template.html
  2. +1 −0 tools/doctool/doctool.js
View
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">
View
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) {

0 comments on commit 9627f03

Please sign in to comment.