From 59a77f82cac45cddd15a45c35483f4428b1b4278 Mon Sep 17 00:00:00 2001 From: Yufei Huang Date: Tue, 14 Mar 2023 15:28:28 +0800 Subject: [PATCH] feat: update docfx to use modern template --- docs/docfx.json | 1 + docs/template/dashboard.html.tmpl | 123 ++++++++--------------- docs/template/index.html.tmpl | 20 ---- docs/template/layout/_master.tmpl | 57 ----------- docs/template/styles/main.css | 145 +-------------------------- templates/build.js | 3 +- templates/modern/layout/_master.tmpl | 1 + templates/modern/src/docfx.scss | 1 + templates/modern/src/docfx.ts | 5 +- templates/modern/src/layout.scss | 55 +++++----- templates/modern/src/nav.ts | 23 +++++ templates/modern/src/theme.ts | 51 +++++----- templates/modern/src/toc.ts | 6 +- 13 files changed, 133 insertions(+), 358 deletions(-) delete mode 100644 docs/template/index.html.tmpl delete mode 100644 docs/template/layout/_master.tmpl diff --git a/docs/docfx.json b/docs/docfx.json index aedff16d181..39fc962cc70 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -37,6 +37,7 @@ "dest": "_site", "template": [ "default", + "modern", "template" ] } diff --git a/docs/template/dashboard.html.tmpl b/docs/template/dashboard.html.tmpl index f09ad6d8922..73993916a9e 100644 --- a/docs/template/dashboard.html.tmpl +++ b/docs/template/dashboard.html.tmpl @@ -1,88 +1,47 @@ {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} -{{!include(/^styles/.*/)}} -{{!include(/^fonts/.*/)}} -{{!include(favicon.ico)}} -{{!include(logo.svg)}} - - - - {{>partials/head}} - - -
-
- {{>partials/navbar}} - {{>partials/breadcrumb}} -
- - {{>partials/footer}} -
- {{>partials/scripts}} - - \ No newline at end of file + diff --git a/docs/template/index.html.tmpl b/docs/template/index.html.tmpl deleted file mode 100644 index 23c520417f0..00000000000 --- a/docs/template/index.html.tmpl +++ /dev/null @@ -1,20 +0,0 @@ -{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} -{{!include(/^styles/.*/)}} -{{!include(/^fonts/.*/)}} -{{!include(favicon.ico)}} -{{!include(logo.svg)}} - - - - {{>partials/head}} - -
-
- {{>partials/navbar}} -
- {{{conceptual}}} - {{>partials/footer}} -
- {{>partials/scripts}} - - \ No newline at end of file diff --git a/docs/template/layout/_master.tmpl b/docs/template/layout/_master.tmpl deleted file mode 100644 index 4015c9c00f8..00000000000 --- a/docs/template/layout/_master.tmpl +++ /dev/null @@ -1,57 +0,0 @@ -{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} -{{!include(/^styles/.*/)}} -{{!include(/^fonts/.*/)}} -{{!include(favicon.ico)}} -{{!include(logo.svg)}} -{{!include(search-stopwords.json)}} - - - - {{>partials/head}} - {{^redirect_url}} - -
-
- {{^_disableNavbar}} - {{>partials/navbar}} - {{/_disableNavbar}} - {{^_disableBreadcrumb}} - {{>partials/breadcrumb}} - {{/_disableBreadcrumb}} -
- {{#_enableSearch}} -
- {{>partials/searchResults}} -
- {{/_enableSearch}} -