mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:30:28 +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": {
|
"opts": {
|
||||||
"template": "hifi-jsdoc-template"
|
"template": "hifi-jsdoc-template"
|
||||||
},
|
},
|
||||||
|
"deploy": {
|
||||||
|
"root": "https://apidocs.vircadia.dev/"
|
||||||
|
},
|
||||||
"docdash": {
|
"docdash": {
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "Vircadia API Docs",
|
"title": "Vircadia API Docs",
|
||||||
|
|
|
@ -380,8 +380,8 @@ function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) {
|
||||||
|
|
||||||
itemsNav += "</ul>";
|
itemsNav += "</ul>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
itemsNav += '</li>';
|
itemsNav += '</li>';
|
||||||
itemsSeen[item.longname] = true;
|
itemsSeen[item.longname] = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
<![endif]-->
|
<![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/prettify.css">
|
||||||
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
||||||
<link type="text/css" rel="stylesheet" href="styles/night.css">
|
<link type="text/css" rel="stylesheet" href="styles/night.css">
|
||||||
|
@ -33,12 +34,6 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<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.
|
//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;
|
var isLocalStorageSupported = false;
|
||||||
try { // Edge browsing files on local file system doesn't support localStorage.
|
try { // Edge browsing files on local file system doesn't support localStorage.
|
||||||
|
|
Loading…
Reference in a new issue