Răsfoiți Sursa

Merge branch 'staging' of https://github.com/VaclavElias/stride-docs into staging

Vaclav Elias 2 ani în urmă
părinte
comite
298d4d8167
3 a modificat fișierele cu 9 adăugiri și 5 ștergeri
  1. 4 2
      BuildDocs.ps1
  2. 1 1
      en/docfx.json
  3. 4 2
      web.config

+ 4 - 2
BuildDocs.ps1

@@ -125,8 +125,10 @@ function Copy-ExtraItems {
     Write-Host -ForegroundColor Green "Updating web.config completed."
     Write-Host -ForegroundColor Green "Updating web.config completed."
     Write-Host ""
     Write-Host ""
 
 
-    # Do we need this?
-    # Copy-Item en/ReleaseNotes/ReleaseNotes.md "$($Settings.SiteDirectory)/en/ReleaseNotes/"
+    # This is needed for Stride Launcher, which loads Release Notes
+    Copy-Item en/ReleaseNotes/ReleaseNotes.md "$($Settings.SiteDirectory)/en/ReleaseNotes/"
+
+    Copy-Item robots.txt "$($Settings.WebDirectory)/"
 }
 }
 
 
 function Start-LocalWebsite {
 function Start-LocalWebsite {

+ 1 - 1
en/docfx.json

@@ -57,7 +57,7 @@
       "_appTitle": "Stride Docs",
       "_appTitle": "Stride Docs",
       "_enableSearch": true,
       "_enableSearch": true,
       "_appLogoPath": "media/stride-logo-red.svg",
       "_appLogoPath": "media/stride-logo-red.svg",
-      "_appFooter": "<div class=\"d-flex flex-column flex-sm-row justify-content-between pt-1 text-center small\"><p >Supported by the <a href=\"https://dotnetfoundation.org/\" target=\"_blank\" rel=\"noopener\">.NET Foundation</a></p><p>Made with <a href=\"https://dotnet.github.io/docfx\">docfx</a></p><p >Stride Docs Website v.2.0.0.3</p><p>&copy; .NET Foundation and Contributors</p></div>"
+      "_appFooter": "<div class=\"d-flex flex-column flex-sm-row justify-content-between pt-1 text-center small\"><p >Supported by the <a href=\"https://dotnetfoundation.org/\" target=\"_blank\" rel=\"noopener\">.NET Foundation</a></p><p>Made with <a href=\"https://dotnet.github.io/docfx\">docfx</a></p><p >Stride Docs Website v.2.0.0.4</p><p>&copy; .NET Foundation and Contributors</p></div>"
     },
     },
     "fileMetadata": {
     "fileMetadata": {
       "_appTitle": {
       "_appTitle": {

+ 4 - 2
web.config

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
 <configuration>
     <system.webServer>
     <system.webServer>
         <httpProtocol>
         <httpProtocol>
@@ -18,6 +18,7 @@
             <remove fileExtension="woff" />
             <remove fileExtension="woff" />
             <remove fileExtension="woff2" />
             <remove fileExtension="woff2" />
             <remove fileExtension=".mp4" />
             <remove fileExtension=".mp4" />
+            <remove fileExtension=".md" />
             <mimeMap fileExtension=".html" mimeType="text/html" />
             <mimeMap fileExtension=".html" mimeType="text/html" />
             <mimeMap fileExtension=".json" mimeType="application/json" />
             <mimeMap fileExtension=".json" mimeType="application/json" />
             <mimeMap fileExtension=".css" mimeType="text/css" />
             <mimeMap fileExtension=".css" mimeType="text/css" />
@@ -25,6 +26,7 @@
             <mimeMap fileExtension="woff" mimeType="application/x-font-woff" />
             <mimeMap fileExtension="woff" mimeType="application/x-font-woff" />
             <mimeMap fileExtension="woff2" mimeType="application/font-woff2" />
             <mimeMap fileExtension="woff2" mimeType="application/font-woff2" />
             <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
             <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
+            <mimeMap fileExtension=".md" mimeType="text/plain" />
         </staticContent>
         </staticContent>
         <rewrite>
         <rewrite>
             <rules>
             <rules>
@@ -74,4 +76,4 @@
             <error statusCode="404" path="%deployment_version%\en\404.html" responseMode="File" />
             <error statusCode="404" path="%deployment_version%\en\404.html" responseMode="File" />
         </httpErrors>
         </httpErrors>
     </system.webServer>
     </system.webServer>
-</configuration>
+</configuration>