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 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/style.css" type="text/css" media="all" />
|
||||||
<link rel="stylesheet" href="assets/sh.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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
@ -110,6 +110,7 @@ if (argc > 3) {
|
|||||||
// go markdown.
|
// go markdown.
|
||||||
html = convertData(data);
|
html = convertData(data);
|
||||||
filename = path.basename(filename, '.markdown');
|
filename = path.basename(filename, '.markdown');
|
||||||
|
output = output.replace(/{{filename}}/g, filename);
|
||||||
|
|
||||||
if (filename != "_toc" && filename != "index") {
|
if (filename != "_toc" && filename != "index") {
|
||||||
if (data) {
|
if (data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user