mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 19:23:04 +02:00
Statically generate canonical link tag instead.
This commit is contained in:
parent
2a6e0f0efc
commit
8b66c22655
3 changed files with 6 additions and 8 deletions
|
@ -2,6 +2,9 @@
|
|||
"opts": {
|
||||
"template": "hifi-jsdoc-template"
|
||||
},
|
||||
"deploy": {
|
||||
"root": "https://apidocs.vircadia.dev/"
|
||||
},
|
||||
"docdash": {
|
||||
"meta": {
|
||||
"title": "Vircadia API Docs",
|
||||
|
|
|
@ -380,8 +380,8 @@ function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) {
|
|||
|
||||
itemsNav += "</ul>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemsNav += '</li>';
|
||||
itemsSeen[item.longname] = true;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<?js= '<link rel="canonical" href="' + env.conf.deploy.root + title + '.html">' ?>
|
||||
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
||||
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
||||
<link type="text/css" rel="stylesheet" href="styles/night.css">
|
||||
|
@ -33,12 +34,6 @@
|
|||
}
|
||||
</style>
|
||||
<script>
|
||||
var headID = document.getElementsByTagName('head')[0];
|
||||
var link = document.createElement('link');
|
||||
link.rel = 'canonical';
|
||||
link.href = window.location.href;
|
||||
headID.appendChild(link);
|
||||
|
||||
//We are running the check here to preload the theme because it may load the incorrect one first for a split second.
|
||||
var isLocalStorageSupported = false;
|
||||
try { // Edge browsing files on local file system doesn't support localStorage.
|
||||
|
|
Loading…
Reference in a new issue