Skip to content

Commit

Permalink
Merge pull request #14 from Chris-Johnston/docs/use-logos
Browse files Browse the repository at this point in the history
Include logos in docs
  • Loading branch information
Still Hsu authored Dec 24, 2018
2 parents 5fb6ba5 + a6739b8 commit ff26464
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 9 deletions.
6 changes: 5 additions & 1 deletion docs/_template/light-dark-theme/styles/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,8 @@ span.arrow-d{

span.arrow-r{
border-left: 5px solid white
}
}

.logo-switcher {
background: url("/marketing/logo/SVG/Combinationmark White.svg") no-repeat;
}
6 changes: 5 additions & 1 deletion docs/_template/light-dark-theme/styles/gray.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,8 @@ span.arrow-d{

span.arrow-r{
border-left: 5px solid white
}
}

.logo-switcher {
background: url("/marketing/logo/SVG/Combinationmark White.svg") no-repeat;
}
6 changes: 5 additions & 1 deletion docs/_template/light-dark-theme/styles/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ span.arrow-d{

span.arrow-r{
border-left: 5px solid black
}
}

.logo-switcher {
background: url("/marketing/logo/SVG/Combinationmark.svg") no-repeat;
}
20 changes: 19 additions & 1 deletion docs/_template/light-dark-theme/styles/master.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ body {
scroll-behavior: smooth;
}

#logo
{
max-width: 100px;
max-height: 100px;
width: 38pt;
height: 38pt;
padding: 8pt;
}

p,
li,
.toc {
Expand All @@ -23,6 +32,15 @@ img {
margin-bottom: 15px;
}

.big-logo {
display: block;
box-shadow: none !important;
/* Width value was taken from the original size of the combomark svg */
width: 951pt;
/* Height was arbitrarily determined */
min-height: 100pt;
}

article.content p{
-webkit-transition: all .75s ease-in-out;
transition: all .75s ease-in-out;
Expand Down Expand Up @@ -153,4 +171,4 @@ span.arrow-d{

span.arrow-r{
top: 6px; position: relative;
}
}
10 changes: 7 additions & 3 deletions docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@
},
{
"src": "../",
"files": ["CHANGELOG.md"]
"files": [ "CHANGELOG.md" ]
}
],
"resource": [{
"files": [
"**/images/**",
"**/samples/**",
"langwordMapping.yml"
"langwordMapping.yml",
"marketing/logo/SVG/**.svg",
"favicon.ico"
]
}],
"dest": "_site",
Expand All @@ -49,7 +51,9 @@
"globalMetadata": {
"_appTitle": "Discord.Net Documentation",
"_appFooter": "Discord.Net (c) 2015-2018 2.0.0-beta",
"_enableSearch": true
"_enableSearch": true,
"_appLogoPath": "marketing/logo/SVG/Logomark Purple.svg",
"_appFaviconPath": "favicon.ico"
},
"xrefService": [
"https://xref.docs.microsoft.com/query?uid={uid}"
Expand Down
Binary file added docs/favicon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ title: Home

# Discord.Net Documentation

<img class="big-logo logo-switcher" />

## What is Discord.Net?

Discord.Net is an asynchronous, multi-platform .NET Library used to
Expand All @@ -25,4 +27,4 @@ objects in the library.
- [GitHub](https://github.com/RogueException/Discord.Net/)
- [NuGet](https://www.nuget.org/packages/Discord.Net/)
- [MyGet Feed](https://www.myget.org/feed/Packages/discord-net) - Add-ons and nightly builds
- [AppVeyor CI](https://ci.appveyor.com/project/RogueException/discord-net) - Nightly builds via Continuous Integration
- [AppVeyor CI](https://ci.appveyor.com/project/RogueException/discord-net) - Nightly builds via Continuous Integration
2 changes: 1 addition & 1 deletion docs/marketing/logo/SVG/Logomark Purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ff26464

Please sign in to comment.