@@ -75,7 +83,14 @@
{
@desc.Title |
- @Html.Raw(desc.Description) |
+ @Html.Raw(desc.Description)
+ @if (desc.CodeExample.IsNotNullOrEmpty())
+ {
+ Example:
+
+ @Html.Raw(Markdig.Markdown.ToHtml(desc.CodeExample, pipeline))
+
+ } |
}
diff --git a/OmegaLeo.HelperLib.Web/Views/Shared/_Layout.cshtml b/OmegaLeo.HelperLib.Web/Views/Shared/_Layout.cshtml
index d2eff25..3e42232 100644
--- a/OmegaLeo.HelperLib.Web/Views/Shared/_Layout.cshtml
+++ b/OmegaLeo.HelperLib.Web/Views/Shared/_Layout.cshtml
@@ -34,6 +34,14 @@
Game Dev
+
+
@@ -42,12 +50,6 @@
@RenderBody()
-
-
diff --git a/OmegaLeo.HelperLib.Web/appsettings.json b/OmegaLeo.HelperLib.Web/appsettings.json
index 10f68b8..822760b 100644
--- a/OmegaLeo.HelperLib.Web/appsettings.json
+++ b/OmegaLeo.HelperLib.Web/appsettings.json
@@ -5,5 +5,6 @@
"Microsoft.AspNetCore": "Warning"
}
},
- "AllowedHosts": "*"
+ "AllowedHosts": "*",
+ "https_port": 443
}
diff --git a/OmegaLeo.HelperLib.Web/wwwroot/css/site.css b/OmegaLeo.HelperLib.Web/wwwroot/css/site.css
index f8d98fc..9001678 100644
--- a/OmegaLeo.HelperLib.Web/wwwroot/css/site.css
+++ b/OmegaLeo.HelperLib.Web/wwwroot/css/site.css
@@ -19,4 +19,22 @@ html {
body {
margin-bottom: 60px;
+}
+
+pre {
+ overflow: auto;
+ padding: 1rem;
+ background-color: #495057;
+ position: relative;
+
+ color: #f2f2f2;
+}
+
+code {
+ background-color: transparent !important;
+}
+
+.example-code > div {
+ border-radius: 0.5rem !important;
+ background-color: #495057 !important;
}
\ No newline at end of file
diff --git a/OmegaLeo.HelperLib.sln b/OmegaLeo.HelperLib.sln
index 6026162..b3024e3 100644
--- a/OmegaLeo.HelperLib.sln
+++ b/OmegaLeo.HelperLib.sln
@@ -14,6 +14,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmegaLeo.HelperLib.Web", "O
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OmegaLeo.HelperLib.Game", "OmegaLeo.HelperLib.Game\OmegaLeo.HelperLib.Game.csproj", "{488BC3EA-9B7A-4251-B802-22EB098D6494}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFiles", "SolutionFiles", "{00CF0543-37F3-41DE-B78F-8ADA6DE796ED}"
+ ProjectSection(SolutionItems) = preProject
+ README.md = README.md
+ CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
+ CONTRIBUTING.md = CONTRIBUTING.md
+ LICENSE = LICENSE
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/OmegaLeo.HelperLib.sln.DotSettings.user b/OmegaLeo.HelperLib.sln.DotSettings.user
index fd5e489..eb58d7e 100644
--- a/OmegaLeo.HelperLib.sln.DotSettings.user
+++ b/OmegaLeo.HelperLib.sln.DotSettings.user
@@ -1,6 +1,9 @@