Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 9627f037fa1b9aef966617ee9594e44472fa21e5 1 parent 216019b
Ben Noordhuis authored

Showing 2 changed files with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  doc/template.html
  2. +1 0  tools/doctool/doctool.js
1  doc/template.html
@@ -7,6 +7,7 @@
7 7 <link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />
8 8 <link rel="stylesheet" href="assets/style.css" type="text/css" media="all" />
9 9 <link rel="stylesheet" href="assets/sh.css" type="text/css" media="all"/>
  10 + <link rel="canonical" href="http://nodejs.org/docs/latest/api/{{filename}}.html"/>
10 11 </head>
11 12 <body>
12 13 <div id="container">
1  tools/doctool/doctool.js
@@ -110,6 +110,7 @@ if (argc > 3) {
110 110 // go markdown.
111 111 html = convertData(data);
112 112 filename = path.basename(filename, '.markdown');
  113 + output = output.replace(/{{filename}}/g, filename);
113 114
114 115 if (filename != "_toc" && filename != "index") {
115 116 if (data) {

0 comments on commit 9627f03

Please sign in to comment.
Something went wrong with that request. Please try again.