From 081c4cabaaeb729ea5c561be3df662aa0f9c440c Mon Sep 17 00:00:00 2001
From: Still Hsu <341464@gmail.com>
Date: Sun, 17 Jun 2018 07:03:33 +0800
Subject: [PATCH] Add fixes to partial file & add license
* Moved theme-switcher code to scripts partial file
+ Add author's MIT license to featherlight javascript
---
.../partials/head.tmpl.partial | 1 -
.../partials/scripts.tmpl.partial | 3 ++-
.../styles/plugin-featherlight.js | 22 +++++++++++++++++++
docs/docfx.json | 6 ++---
4 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/docs/_template/light-dark-theme/partials/head.tmpl.partial b/docs/_template/light-dark-theme/partials/head.tmpl.partial
index 3deee4aba..6f48f0ff9 100644
--- a/docs/_template/light-dark-theme/partials/head.tmpl.partial
+++ b/docs/_template/light-dark-theme/partials/head.tmpl.partial
@@ -21,5 +21,4 @@
{{#_noindex}}{{/_noindex}}
{{#_enableSearch}}{{/_enableSearch}}
{{#_enableNewTab}}{{/_enableNewTab}}
-
diff --git a/docs/_template/light-dark-theme/partials/scripts.tmpl.partial b/docs/_template/light-dark-theme/partials/scripts.tmpl.partial
index 324d16794..0e0f0fee8 100644
--- a/docs/_template/light-dark-theme/partials/scripts.tmpl.partial
+++ b/docs/_template/light-dark-theme/partials/scripts.tmpl.partial
@@ -7,4 +7,5 @@
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/docs/_template/light-dark-theme/styles/plugin-featherlight.js b/docs/_template/light-dark-theme/styles/plugin-featherlight.js
index 846494cf3..2fd056fa0 100644
--- a/docs/_template/light-dark-theme/styles/plugin-featherlight.js
+++ b/docs/_template/light-dark-theme/styles/plugin-featherlight.js
@@ -1,3 +1,25 @@
+// MIT License
+
+// Copyright (c) 2017 Roel Fauconnier
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+
$(document).ready(function() {
//find all images, but not the logo, and add the lightbox
$('img').not('#logo').each(function(){
diff --git a/docs/docfx.json b/docs/docfx.json
index 663a49cda..43c481b33 100644
--- a/docs/docfx.json
+++ b/docs/docfx.json
@@ -36,12 +36,12 @@
"template": [
"default",
"_template/light-dark-theme",
- "_template/lastmodified"
+ "_template/lastmodified"
],
- "postProcessors": [ "ExtractSearchIndex", "LastModifiedPostProcessor" ],
+ "postProcessors": ["ExtractSearchIndex", "LastModifiedPostProcessor"],
"overwrite": "_overwrites/**/**.md",
"globalMetadata": {
- "_appTitle": "Discord.Net Documentation",
+ "_appTitle": "Discord.Net Documentation",
"_appFooter": "Discord.Net (c) 2015-2018 2.0.0-beta",
"_enableSearch": true
},