docs: add rel="canonical" link to latest API docs
This commit is contained in:
parent
216019b72d
commit
a5c51b4858
@ -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">
|
||||
|
@ -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…
x
Reference in New Issue
Block a user