Some APIDocs metadata fixes.

This commit is contained in:
Kalila L 2021-05-31 05:43:12 -04:00
parent 9640a13800
commit 7ccdbdea64
4 changed files with 16 additions and 15 deletions

View file

@ -3,15 +3,15 @@
"template": "hifi-jsdoc-template" "template": "hifi-jsdoc-template"
}, },
"docdash": { "docdash": {
"meta": { "meta": {
"title": "", "title": "Vircadia API Docs",
"description": "", "description": "API documentation for Vircadia.",
"keyword": "" "keyword": "api, docs, vircadia, documentation"
}, },
"search": [true], "search": [true],
"collapse": [true], "collapse": [true],
"typedefs": [false] "typedefs": [false]
}, },
"templates": { "templates": {
"default": { "default": {
"outputSourceFiles": false "outputSourceFiles": false

View file

@ -3,7 +3,7 @@
<head> <head>
<?js if (!env.conf.docdash) { env.conf.docdash = {};} ?> <?js if (!env.conf.docdash) { env.conf.docdash = {};} ?>
<meta charset="utf-8"> <meta charset="utf-8">
<title><?js= title ?></title> <title><?js= title ?> - Vircadia API Docs</title>
<script src="scripts/vue.min.js"></script> <script src="scripts/vue.min.js"></script>
<script src="scripts/vuetify.js"></script> <script src="scripts/vuetify.js"></script>
@ -42,7 +42,7 @@
} catch (e) { } catch (e) {
// nop // nop
} }
var defaultDarkDisabled = false; var defaultDarkDisabled = false;
var darkDisabled = isLocalStorageSupported ? JSON.parse(localStorage.getItem('darkDisabled')) : defaultDarkDisabled; var darkDisabled = isLocalStorageSupported ? JSON.parse(localStorage.getItem('darkDisabled')) : defaultDarkDisabled;
var nightSheet = document.querySelector('[href="styles/night.css"]'); var nightSheet = document.querySelector('[href="styles/night.css"]');
@ -53,7 +53,7 @@
} }
var defaultResponsiveDisabled = true; var defaultResponsiveDisabled = true;
var responsiveDisabled = var responsiveDisabled =
isLocalStorageSupported ? JSON.parse(localStorage.getItem('responsiveDisabled')) : defaultResponsiveDisabled; isLocalStorageSupported ? JSON.parse(localStorage.getItem('responsiveDisabled')) : defaultResponsiveDisabled;
var responsiveSheet = document.querySelector('[href="styles/responsive.css"]'); var responsiveSheet = document.querySelector('[href="styles/responsive.css"]');
if (responsiveDisabled === null) { if (responsiveDisabled === null) {
@ -78,7 +78,7 @@
<?js if (env.conf.docdash.search) { ?> <?js if (env.conf.docdash.search) { ?>
<input type="text" class="search-input" id="nav-search" placeholder="Search API Docs ..." /> <input type="text" class="search-input" id="nav-search" placeholder="Search API Docs ..." />
<?js } ?> <?js } ?>
<p><a href="https://docs.vircadia.dev">Looking for <strong>Vircadia</strong><br /> Documentation?</a></p> <p><a href="https://docs.vircadia.com">Looking for <strong>Vircadia</strong><br /> Documentation?</a></p>
<v-btn @click="toggleNightMode" text dark> <v-btn @click="toggleNightMode" text dark>
<span>Toggle</span> <span>Toggle</span>
<v-icon style="margin-left: 5px;">mdi-theme-light-dark</v-icon> <v-icon style="margin-left: 5px;">mdi-theme-light-dark</v-icon>
@ -95,7 +95,7 @@
<h1 class="page-title"><?js= title ?></h1> <h1 class="page-title"><?js= title ?></h1>
<?js= content ?> <?js= content ?>
<?js if (env.conf.docdash.disqus) { ?> <?js if (env.conf.docdash.disqus) { ?>
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
<script> <script>

View file

@ -1,5 +1,5 @@
{ {
"name": "hifiJSDoc", "name": "vircadia-api-docs",
"dependencies": { "dependencies": {
"axios": "^0.18.0", "axios": "^0.18.0",
"cheerio": "^1.0.0-rc.2", "cheerio": "^1.0.0-rc.2",

View file

@ -2,10 +2,11 @@
// root.js // root.js
// //
// Copyright 2016 High Fidelity, Inc. // Copyright 2016 High Fidelity, Inc.
// Copyright 2021 Vircaida contributors.
// //
// Distributed under the Apache License, Version 2.0. // Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
// //
// Root of High Fidelity generated java script documentation // Root of Vircadia JSDoc generated documentation
// //