Skip to content

Commit

Permalink
docs: add rel="canonical" link to latest API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 28, 2011
1 parent 216019b commit a5c51b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/template.html
Expand Up @@ -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">
Expand Down
1 change: 1 addition & 0 deletions tools/doctool/doctool.js
Expand Up @@ -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) {
Expand Down

0 comments on commit a5c51b4

Please sign in to comment.