From 4b35eaa2dc896280fc9255cde6c14445299b80cd Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Sun, 23 Dec 2018 15:58:00 -0800 Subject: [PATCH] Add the logo SVG to the page navbar --- docs/_template/light-dark-theme/styles/master.css | 11 ++++++++++- docs/docfx.json | 8 +++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/_template/light-dark-theme/styles/master.css b/docs/_template/light-dark-theme/styles/master.css index 4e0dffd7a..0f22893f0 100644 --- a/docs/_template/light-dark-theme/styles/master.css +++ b/docs/_template/light-dark-theme/styles/master.css @@ -9,6 +9,15 @@ body { scroll-behavior: smooth; } +#logo +{ + max-width: 100px; + max-height: 100px; + width: 38pt; + height: 38pt; + padding: 8pt; +} + p, li, .toc { @@ -153,4 +162,4 @@ span.arrow-d{ span.arrow-r{ top: 6px; position: relative; -} \ No newline at end of file +} diff --git a/docs/docfx.json b/docs/docfx.json index 3156e9607..c4ca9bbb2 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -27,14 +27,15 @@ }, { "src": "../", - "files": ["CHANGELOG.md"] + "files": [ "CHANGELOG.md" ] } ], "resource": [{ "files": [ "**/images/**", "**/samples/**", - "langwordMapping.yml" + "langwordMapping.yml", + "marketing/logo/SVG/**.svg" ] }], "dest": "_site", @@ -49,7 +50,8 @@ "globalMetadata": { "_appTitle": "Discord.Net Documentation", "_appFooter": "Discord.Net (c) 2015-2018 2.0.0-beta", - "_enableSearch": true + "_enableSearch": true, + "_appLogoPath": "marketing/logo/SVG/Logomark White.svg" }, "xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}"