Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/guides/advanced/http-interactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Follow the [installation guide](installing-native-dependencies.md) to install th

To handle HTTP interactions, you need to use @NetCord.Hosting.Rest.RestClientServiceCollectionExtensions.AddDiscordRest(Microsoft.Extensions.DependencyInjection.IServiceCollection) to add the @NetCord.Rest.RestClient and then call @NetCord.Hosting.AspNetCore.EndpointRouteBuilderExtensions.UseHttpInteractions(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder,System.String) to map the interactions route.

[!code-cs[Program.cs](HttpInteractions/Program.cs?highlight=10,17-18)]
[!code-cs[Program.cs](HttpInteractions/Program.cs?highlight=10,18)]

## Finding Public Key and Specifying Interaction Endpoint URL

Expand Down
15 changes: 9 additions & 6 deletions Documentation/templates-src/NetCord/src/highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
* The .NET Foundation licenses this file to you under the MIT license.
*/

@import "highlight.js/scss/vs";
[data-bs-theme]:not([data-bs-theme="dark"]) {
@import "highlight.js/scss/base16/dirtysea";
}

@include color-mode(dark) {
/* stylelint-disable-next-line no-invalid-position-at-import-rule */
[data-bs-theme]:not([data-bs-theme="dark"]) .hljs {
background-color: #f5f5f5;
}

[data-bs-theme="dark"] {
@import "highlight.js/scss/vs2015";
}

.hljs {
background-color: #f5f5f5;

@media print {
overflow-x: hidden;
text-wrap: pretty;
Expand All @@ -26,6 +29,6 @@ pre > code .line-highlight {

@include color-mode(dark) {
pre > code .line-highlight {
background-color: #4a4a00;
background-color: #323110;
}
}
25 changes: 24 additions & 1 deletion Documentation/templates-src/NetCord/src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

:root {
--bs-font-monospace: Cascadia Code, monospace;
--light-blurple: #6c82ff;
--blurple: #5865f2;
--dark-blurple: #4752c4;
--ligatures: none;
Expand All @@ -22,17 +23,39 @@
:root,
[data-bs-theme="light"] {
--tooltip-color: black;
--bs-secondary-rgb: 100, 100, 100;
--bs-secondary: #646464;
--bs-code-color: #d5025e;
}

[data-bs-theme="dark"] {
--tooltip-color: white;
--bs-secondary-rgb: 170, 170, 170;
--bs-secondary: #aaaaaa;
--bs-code-color: #e685b5;
}

.navbar-nav {
--bs-nav-link-color: var(--bs-emphasis-color);
--bs-nav-link-hover-color: var(--light-blurple);
--bs-navbar-active-color: var(--light-blurple);
--bs-nav-link-font-weight: 600;
}

:root[data-bs-theme="light"] .navbar-nav {
--bs-nav-link-hover-color: var(--blurple);
--bs-navbar-active-color: var(--blurple);
--bs-nav-link-font-weight: 600;
}

:root[data-bs-theme="light"] .alert-info a {
--bs-link-color-rgb: 0, 75, 255;
--bs-link-color: #004bff;
--bs-link-hover-color-rgb: 0, 50, 202;
--bs-link-hover-color: #0032ca;
}

:root[data-bs-theme="light"] .alert-info a:hover {
--bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.btn {
Expand Down