From b2b1839865ba9cba7b20dbe7cff9b3ee31a26fdc Mon Sep 17 00:00:00 2001 From: Kostiantyn Cherniavskyi Date: Wed, 7 Jan 2026 19:45:00 +0100 Subject: [PATCH] Mi899 Online into `docs` for gh-pages --- Mi899.sln | 27 +++++++++- Mi899.sln.bak | 50 ------------------ docs/Web.config | 15 ++++++ .../Mi899.Online/wwwroot => docs}/favicon.ico | Bin .../Mi899.Online/wwwroot => docs}/footer.html | 0 {src/Mi899.Online/wwwroot => docs}/index.html | 0 .../libs/bootstrap.bundle.min.js | 0 .../wwwroot => docs}/libs/bootstrap.min.css | 0 .../wwwroot => docs}/libs/jszip.min.js | 0 .../wwwroot => docs}/libs/knockout-min.js | 0 .../wwwroot => docs}/libs/marked.min.js | 0 .../wwwroot => docs}/motherboard.html | 0 .../wwwroot => docs}/motherboards.html | 0 {src/Mi899.Online/wwwroot => docs}/nav.html | 0 .../wwwroot => docs}/scripts/mi899.js | 0 .../wwwroot => docs}/styles/mi899.css | 0 {src/Mi899.Online/wwwroot => docs}/tool.html | 0 src/Mi899.Online/Mi899.Online.csproj | 10 +--- src/Mi899.Online/Program.cs | 8 ++- 19 files changed, 49 insertions(+), 61 deletions(-) delete mode 100644 Mi899.sln.bak create mode 100644 docs/Web.config rename {src/Mi899.Online/wwwroot => docs}/favicon.ico (100%) rename {src/Mi899.Online/wwwroot => docs}/footer.html (100%) rename {src/Mi899.Online/wwwroot => docs}/index.html (100%) rename {src/Mi899.Online/wwwroot => docs}/libs/bootstrap.bundle.min.js (100%) rename {src/Mi899.Online/wwwroot => docs}/libs/bootstrap.min.css (100%) rename {src/Mi899.Online/wwwroot => docs}/libs/jszip.min.js (100%) rename {src/Mi899.Online/wwwroot => docs}/libs/knockout-min.js (100%) rename {src/Mi899.Online/wwwroot => docs}/libs/marked.min.js (100%) rename {src/Mi899.Online/wwwroot => docs}/motherboard.html (100%) rename {src/Mi899.Online/wwwroot => docs}/motherboards.html (100%) rename {src/Mi899.Online/wwwroot => docs}/nav.html (100%) rename {src/Mi899.Online/wwwroot => docs}/scripts/mi899.js (100%) rename {src/Mi899.Online/wwwroot => docs}/styles/mi899.css (100%) rename {src/Mi899.Online/wwwroot => docs}/tool.html (100%) diff --git a/Mi899.sln b/Mi899.sln index 1e8932a..742c40e 100644 --- a/Mi899.sln +++ b/Mi899.sln @@ -16,7 +16,28 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mi899.Data.Tests", "tests\Mi899.Data.Tests\Mi899.Data.Tests.csproj", "{D6EA25CB-907D-4509-A5D3-459A67D6E489}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mi899.Online", "src\Mi899.Online\Mi899.Online.csproj", "{BF8740F5-6A72-4E97-B971-D8535863FFEB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mi899.Online", "src\Mi899.Online\Mi899.Online.csproj", "{BF8740F5-6A72-4E97-B971-D8535863FFEB}" +EndProject +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "docs", "docs\", "{51DB9834-2C93-4B24-9740-4731F4A9CB10}" + ProjectSection(WebsiteProperties) = preProject + TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5" + Debug.AspNetCompiler.VirtualPath = "/localhost_56580" + Debug.AspNetCompiler.PhysicalPath = "docs\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56580\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/localhost_56580" + Release.AspNetCompiler.PhysicalPath = "docs\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56580\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + VWDPort = "56580" + SlnRelativePath = "docs\" + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -40,6 +61,10 @@ Global {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Debug|Any CPU.Build.0 = Debug|Any CPU {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Release|Any CPU.ActiveCfg = Release|Any CPU {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Release|Any CPU.Build.0 = Release|Any CPU + {51DB9834-2C93-4B24-9740-4731F4A9CB10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {51DB9834-2C93-4B24-9740-4731F4A9CB10}.Debug|Any CPU.Build.0 = Debug|Any CPU + {51DB9834-2C93-4B24-9740-4731F4A9CB10}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {51DB9834-2C93-4B24-9740-4731F4A9CB10}.Release|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Mi899.sln.bak b/Mi899.sln.bak deleted file mode 100644 index 1876850..0000000 --- a/Mi899.sln.bak +++ /dev/null @@ -1,50 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.1.32228.430 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mi899", "src\Mi899\Mi899.csproj", "{EB03C864-42D6-4000-B7C5-12BCBE965DDC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mi899.Data", "src\Mi899.Data\Mi899.Data.csproj", "{E2C5424D-F2BE-47D2-A754-7BC463C09DDE}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{648091EB-6B01-4DEF-BD07-7362B61986B2}" - ProjectSection(SolutionItems) = preProject - .gitignore = .gitignore - LICENSE = LICENSE - README.md = README.md - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mi899.Data.Tests", "tests\Mi899.Data.Tests\Mi899.Data.Tests.csproj", "{D6EA25CB-907D-4509-A5D3-459A67D6E489}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mi899.Online", "Mi899.Online\Mi899.Online.csproj", "{BF8740F5-6A72-4E97-B971-D8535863FFEB}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EB03C864-42D6-4000-B7C5-12BCBE965DDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB03C864-42D6-4000-B7C5-12BCBE965DDC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB03C864-42D6-4000-B7C5-12BCBE965DDC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB03C864-42D6-4000-B7C5-12BCBE965DDC}.Release|Any CPU.Build.0 = Release|Any CPU - {E2C5424D-F2BE-47D2-A754-7BC463C09DDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E2C5424D-F2BE-47D2-A754-7BC463C09DDE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E2C5424D-F2BE-47D2-A754-7BC463C09DDE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E2C5424D-F2BE-47D2-A754-7BC463C09DDE}.Release|Any CPU.Build.0 = Release|Any CPU - {D6EA25CB-907D-4509-A5D3-459A67D6E489}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6EA25CB-907D-4509-A5D3-459A67D6E489}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6EA25CB-907D-4509-A5D3-459A67D6E489}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6EA25CB-907D-4509-A5D3-459A67D6E489}.Release|Any CPU.Build.0 = Release|Any CPU - {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BF8740F5-6A72-4E97-B971-D8535863FFEB}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {4890D716-2C19-449B-BF6A-38D2A778C925} - EndGlobalSection -EndGlobal diff --git a/docs/Web.config b/docs/Web.config new file mode 100644 index 0000000..13e147f --- /dev/null +++ b/docs/Web.config @@ -0,0 +1,15 @@ + + + + + + + + \ No newline at end of file diff --git a/src/Mi899.Online/wwwroot/favicon.ico b/docs/favicon.ico similarity index 100% rename from src/Mi899.Online/wwwroot/favicon.ico rename to docs/favicon.ico diff --git a/src/Mi899.Online/wwwroot/footer.html b/docs/footer.html similarity index 100% rename from src/Mi899.Online/wwwroot/footer.html rename to docs/footer.html diff --git a/src/Mi899.Online/wwwroot/index.html b/docs/index.html similarity index 100% rename from src/Mi899.Online/wwwroot/index.html rename to docs/index.html diff --git a/src/Mi899.Online/wwwroot/libs/bootstrap.bundle.min.js b/docs/libs/bootstrap.bundle.min.js similarity index 100% rename from src/Mi899.Online/wwwroot/libs/bootstrap.bundle.min.js rename to docs/libs/bootstrap.bundle.min.js diff --git a/src/Mi899.Online/wwwroot/libs/bootstrap.min.css b/docs/libs/bootstrap.min.css similarity index 100% rename from src/Mi899.Online/wwwroot/libs/bootstrap.min.css rename to docs/libs/bootstrap.min.css diff --git a/src/Mi899.Online/wwwroot/libs/jszip.min.js b/docs/libs/jszip.min.js similarity index 100% rename from src/Mi899.Online/wwwroot/libs/jszip.min.js rename to docs/libs/jszip.min.js diff --git a/src/Mi899.Online/wwwroot/libs/knockout-min.js b/docs/libs/knockout-min.js similarity index 100% rename from src/Mi899.Online/wwwroot/libs/knockout-min.js rename to docs/libs/knockout-min.js diff --git a/src/Mi899.Online/wwwroot/libs/marked.min.js b/docs/libs/marked.min.js similarity index 100% rename from src/Mi899.Online/wwwroot/libs/marked.min.js rename to docs/libs/marked.min.js diff --git a/src/Mi899.Online/wwwroot/motherboard.html b/docs/motherboard.html similarity index 100% rename from src/Mi899.Online/wwwroot/motherboard.html rename to docs/motherboard.html diff --git a/src/Mi899.Online/wwwroot/motherboards.html b/docs/motherboards.html similarity index 100% rename from src/Mi899.Online/wwwroot/motherboards.html rename to docs/motherboards.html diff --git a/src/Mi899.Online/wwwroot/nav.html b/docs/nav.html similarity index 100% rename from src/Mi899.Online/wwwroot/nav.html rename to docs/nav.html diff --git a/src/Mi899.Online/wwwroot/scripts/mi899.js b/docs/scripts/mi899.js similarity index 100% rename from src/Mi899.Online/wwwroot/scripts/mi899.js rename to docs/scripts/mi899.js diff --git a/src/Mi899.Online/wwwroot/styles/mi899.css b/docs/styles/mi899.css similarity index 100% rename from src/Mi899.Online/wwwroot/styles/mi899.css rename to docs/styles/mi899.css diff --git a/src/Mi899.Online/wwwroot/tool.html b/docs/tool.html similarity index 100% rename from src/Mi899.Online/wwwroot/tool.html rename to docs/tool.html diff --git a/src/Mi899.Online/Mi899.Online.csproj b/src/Mi899.Online/Mi899.Online.csproj index ebe3267..84e7626 100644 --- a/src/Mi899.Online/Mi899.Online.csproj +++ b/src/Mi899.Online/Mi899.Online.csproj @@ -7,15 +7,7 @@ - - - - - - - - - + diff --git a/src/Mi899.Online/Program.cs b/src/Mi899.Online/Program.cs index 0c3eb06..eb07fe0 100644 --- a/src/Mi899.Online/Program.cs +++ b/src/Mi899.Online/Program.cs @@ -1,6 +1,12 @@ +using Microsoft.Extensions.FileProviders; + var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); -app.UseStaticFiles(); +StaticFileOptions options = new() +{ + FileProvider = new PhysicalFileProvider(Path.Combine(builder.Environment.ContentRootPath, "../../docs")) +}; +app.UseStaticFiles(options); app.Run();