docs: Use a relative path for docs index page logo (#1276)
* Use a relative path for docs index page logo Changes the paths for the logo on the index page of the documentation to use relative links instead of absolute ones. The current absolute path is just fine as long as the site is not hosted under another directory. When opening files locally (without serving them in docfx) these images will fail to load. In addition, if these files are served under a directory that is not the root endpoint (like: `docs.com/stable/`) the images will also break. I tested these changes locally using these steps: - Build & serve docs: `docfx docs/docfx.json --serve` - Verify that logo shows up on index page using all 3 themes - Open `docs/_site/index.html` - Verify logo works on all 3 themes * Minor grammar fix in DiscordSocketClient
This commit is contained in:
committed by
Christopher F
parent
48b327be3e
commit
b80f0e84e7
@@ -304,5 +304,5 @@ span.arrow-r{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-switcher {
|
.logo-switcher {
|
||||||
background: url("/marketing/logo/SVG/Combinationmark White.svg") no-repeat;
|
background: url("../marketing/logo/SVG/Combinationmark White.svg") no-repeat;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -311,5 +311,5 @@ span.arrow-r{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-switcher {
|
.logo-switcher {
|
||||||
background: url("/marketing/logo/SVG/Combinationmark White.svg") no-repeat;
|
background: url("../marketing/logo/SVG/Combinationmark White.svg") no-repeat;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,5 +113,5 @@ span.arrow-r{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-switcher {
|
.logo-switcher {
|
||||||
background: url("/marketing/logo/SVG/Combinationmark.svg") no-repeat;
|
background: url("../marketing/logo/SVG/Combinationmark.svg") no-repeat;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace Discord.WebSocket
|
|||||||
/// </note>
|
/// </note>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// An collection of DM channels that have been opened in this session.
|
/// A collection of DM channels that have been opened in this session.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public IReadOnlyCollection<SocketDMChannel> DMChannels
|
public IReadOnlyCollection<SocketDMChannel> DMChannels
|
||||||
=> State.PrivateChannels.OfType<SocketDMChannel>().ToImmutableArray();
|
=> State.PrivateChannels.OfType<SocketDMChannel>().ToImmutableArray();
|
||||||
@@ -98,7 +98,7 @@ namespace Discord.WebSocket
|
|||||||
/// </note>
|
/// </note>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// An collection of group channels that have been opened in this session.
|
/// A collection of group channels that have been opened in this session.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public IReadOnlyCollection<SocketGroupChannel> GroupChannels
|
public IReadOnlyCollection<SocketGroupChannel> GroupChannels
|
||||||
=> State.PrivateChannels.OfType<SocketGroupChannel>().ToImmutableArray();
|
=> State.PrivateChannels.OfType<SocketGroupChannel>().ToImmutableArray();
|
||||||
|
|||||||
Reference in New Issue
Block a user