Add a favicon/logo to override the default DocFX images

This commit is contained in:
Kévin Chalet 2021-01-13 04:47:51 +01:00
parent f3c216a81c
commit 8ee139332a
4 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,7 @@
"resource": [ "resource": [
{ {
"files": [ "files": [
"images/**",
"**/*.png", "**/*.png",
"**/*.jpg", "**/*.jpg",
"**/*.gif", "**/*.gif",
@ -33,6 +34,10 @@
], ],
"dest": "_site", "dest": "_site",
"globalMetadataFiles": [], "globalMetadataFiles": [],
"globalMetadata": {
"_appFaviconPath": "images/favicon.ico",
"_appLogoPath": "images/logo.png"
},
"fileMetadataFiles": [], "fileMetadataFiles": [],
"template": [ "template": [
"default", "default",

BIN
images/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -0,0 +1,5 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
<a class="navbar-brand" href="{{_rel}}index.html">
<img id="logo" class="svg" src="{{_rel}}{{{_appLogoPath}}}{{^_appLogoPath}}logo.png{{/_appLogoPath}}" alt="{{_appName}}" >
</a>