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": [
{
"files": [
"images/**",
"**/*.png",
"**/*.jpg",
"**/*.gif",
@ -33,6 +34,10 @@
],
"dest": "_site",
"globalMetadataFiles": [],
"globalMetadata": {
"_appFaviconPath": "images/favicon.ico",
"_appLogoPath": "images/logo.png"
},
"fileMetadataFiles": [],
"template": [
"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>