diff --git a/templates/modern/layout/_master.tmpl b/templates/modern/layout/_master.tmpl index eef2efeddf8..31e7092a06c 100644 --- a/templates/modern/layout/_master.tmpl +++ b/templates/modern/layout/_master.tmpl @@ -24,6 +24,9 @@ {{#_noindex}}{{/_noindex}} {{#_enableSearch}}{{/_enableSearch}} {{#docurl}}{{/docurl}} + + + {{/redirect_url}} @@ -102,9 +105,6 @@ - - - {{/redirect_url}} \ No newline at end of file diff --git a/templates/modern/src/theme.ts b/templates/modern/src/theme.ts index 291f1299507..eb4f322de08 100644 --- a/templates/modern/src/theme.ts +++ b/templates/modern/src/theme.ts @@ -10,9 +10,9 @@ setTheme(localStorage.getItem('theme') as Theme || 'auto') function setTheme(theme: Theme) { localStorage.setItem('theme', theme) if (theme === 'auto') { - document.body.setAttribute('data-bs-theme', window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') + document.documentElement.setAttribute('data-bs-theme', window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') } else { - document.body.setAttribute('data-bs-theme', theme) + document.documentElement.setAttribute('data-bs-theme', theme) } } diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-BuildFromProject.Class1.html.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-BuildFromProject.Class1.html.verified.html index 9373dbfd657..e34969bfa71 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-BuildFromProject.Class1.html.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-BuildFromProject.Class1.html.verified.html @@ -1,4 +1,4 @@ - + Class Class1 | docfx seed website @@ -14,6 +14,9 @@ + + + @@ -443,8 +446,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.Cat-2.html-q-cat.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.Cat-2.html-q-cat.verified.html index 258957e5474..d4c66ebe776 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.Cat-2.html-q-cat.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.Cat-2.html-q-cat.verified.html @@ -1,4 +1,4 @@ - + Class Cat<T, K> | docfx seed website @@ -14,6 +14,9 @@ + + + @@ -939,8 +942,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html-term-cat.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html-term-cat.verified.html index 026b6dc70ed..5fb188b16d1 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html-term-cat.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html-term-cat.verified.html @@ -1,4 +1,4 @@ - + Namespace CatLibrary | docfx seed website @@ -14,6 +14,9 @@ + + + @@ -346,8 +349,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html.verified.html index 504c02b7401..2935d3bf2bb 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/api-CatLibrary.html.verified.html @@ -1,4 +1,4 @@ - + Namespace CatLibrary | docfx seed website @@ -14,6 +14,9 @@ + + + @@ -328,8 +331,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-csharp_coding_standards.html.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-csharp_coding_standards.html.verified.html index 0da64513c1d..34c896cbe5a 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-csharp_coding_standards.html.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-csharp_coding_standards.html.verified.html @@ -1,4 +1,4 @@ - + C# Coding Standards | docfx seed website @@ -12,6 +12,9 @@ + + + @@ -309,8 +312,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-markdown.html-tabs-windows-2Ctypescript-markdown-extensions.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-markdown.html-tabs-windows-2Ctypescript-markdown-extensions.verified.html index 11cffb3197b..b05c8e00ae7 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-markdown.html-tabs-windows-2Ctypescript-markdown-extensions.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/articles-markdown.html-tabs-windows-2Ctypescript-markdown-extensions.verified.html @@ -1,4 +1,4 @@ - + Markdown | docfx seed website @@ -12,6 +12,9 @@ + + + @@ -365,8 +368,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/index.html.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/index.html.verified.html index 8ecba1647e1..fc916a82ad8 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/index.html.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/index.html.verified.html @@ -1,4 +1,4 @@ - + docfx-seed | docfx seed website @@ -12,6 +12,9 @@ + + + @@ -156,8 +159,5 @@
In this article
- - - \ No newline at end of file diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/restapi-petstore.html.verified.html b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/restapi-petstore.html.verified.html index c37d548ceaf..95d8f38cb4f 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/restapi-petstore.html.verified.html +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedHtml/html/restapi-petstore.html.verified.html @@ -1,4 +1,4 @@ - + Pet Store APIs | docfx seed website @@ -12,6 +12,9 @@ + + + @@ -1457,8 +1460,5 @@
In this article
- - - \ No newline at end of file