From af8c289997124a6ca90c870953c0edfc79a1b962 Mon Sep 17 00:00:00 2001
From: Still Hsu <341464@gmail.com>
Date: Thu, 26 Jul 2018 10:09:00 +0800
Subject: [PATCH] Minor optimization for doc rendering
---
docs/Discord.Net.Docs.code-workspace | 3 ++-
.../light-dark-theme/partials/head.tmpl.partial | 3 ++-
.../light-dark-theme/partials/scripts.tmpl.partial | 7 +++----
docs/_template/light-dark-theme/styles/master.css | 13 ++++++++++++-
4 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/docs/Discord.Net.Docs.code-workspace b/docs/Discord.Net.Docs.code-workspace
index df38dfd23..d9f442869 100644
--- a/docs/Discord.Net.Docs.code-workspace
+++ b/docs/Discord.Net.Docs.code-workspace
@@ -14,7 +14,8 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
- "obj/": true
+ "obj/": true,
+ "_site/": true,
}
}
}
\ No newline at end of file
diff --git a/docs/_template/light-dark-theme/partials/head.tmpl.partial b/docs/_template/light-dark-theme/partials/head.tmpl.partial
index 6f48f0ff9..01acec060 100644
--- a/docs/_template/light-dark-theme/partials/head.tmpl.partial
+++ b/docs/_template/light-dark-theme/partials/head.tmpl.partial
@@ -14,7 +14,8 @@
-
+
+
diff --git a/docs/_template/light-dark-theme/partials/scripts.tmpl.partial b/docs/_template/light-dark-theme/partials/scripts.tmpl.partial
index 0e0f0fee8..1b048feb9 100644
--- a/docs/_template/light-dark-theme/partials/scripts.tmpl.partial
+++ b/docs/_template/light-dark-theme/partials/scripts.tmpl.partial
@@ -3,9 +3,8 @@
-
+
-
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/docs/_template/light-dark-theme/styles/master.css b/docs/_template/light-dark-theme/styles/master.css
index 129a073db..20f06c029 100644
--- a/docs/_template/light-dark-theme/styles/master.css
+++ b/docs/_template/light-dark-theme/styles/master.css
@@ -1,4 +1,15 @@
-@import url('https://fonts.googleapis.com/css?family=Titillium+Web|Noto+Sans');
+@font-face{
+ font-family: 'Titillium Web';
+ font-display: optional;
+ src: local('Titillium Web'), url('https://fonts.googleapis.com/css?family=Titillium+Web')
+}
+
+@font-face{
+ font-family: 'Noto Sans';
+ font-display: optional;
+ src: local('Noto Sans'), url('https://fonts.googleapis.com/css?family=Noto+Sans')
+}
+
html,
body {
font-family: 'Titillium Web', 'Segoe UI', Tahoma, Helvetica, sans-serif;