From d6317dc51494309c7b09d4d80fa4611f1e6dc188 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 24 Feb 2021 18:02:09 +0100 Subject: [PATCH] Formatting + moved search index fetching to top level --- docs/creating-your-site.md | 2 +- docs/insiders.md | 18 +-- docs/reference/diagrams.md | 2 +- docs/reference/icons-emojis.md | 14 +- docs/setup/adding-a-git-repository.md | 2 +- docs/setup/changing-the-colors.md | 8 +- docs/setup/changing-the-language.md | 4 +- docs/setup/setting-up-navigation.md | 4 +- docs/setup/setting-up-site-search.md | 8 +- docs/setup/setting-up-the-footer.md | 2 +- .../assets/javascripts/bundle.4e3fea51.min.js | 32 +++++ .../javascripts/bundle.4e3fea51.min.js.map | 7 + .../assets/javascripts/bundle.6e8eee23.min.js | 32 ----- .../javascripts/bundle.6e8eee23.min.js.map | 7 - ...217ffd95.min.js => search.f5903571.min.js} | 2 +- ....min.js.map => search.f5903571.min.js.map} | 2 +- material/base.html | 4 +- ...fbf44fce.min.js => bundle.a8da887a.min.js} | 6 +- ....min.js.map => bundle.a8da887a.min.js.map} | 6 +- ...earch_index.json => iconsearch_index.json} | 0 .../assets/stylesheets/main.6c7993e4.min.css | 2 + .../stylesheets/main.6c7993e4.min.css.map | 1 + .../assets/stylesheets/main.8036384c.min.css | 2 - .../stylesheets/main.8036384c.min.css.map | 1 - material/overrides/home.html | 8 +- material/overrides/main.html | 8 +- material/partials/nav-item.html | 2 +- material/partials/nav.html | 2 +- src/assets/javascripts/_/index.ts | 2 +- .../javascripts/browser/document/index.ts | 5 +- .../browser/element/offset/index.ts | 11 +- .../javascripts/browser/location/_/index.ts | 8 +- src/assets/javascripts/bundle.ts | 14 +- src/assets/javascripts/components/_/index.ts | 42 ++++-- .../components/content/code/index.ts | 6 +- .../components/content/table/index.ts | 4 +- .../javascripts/components/dialog/index.ts | 4 +- .../javascripts/components/search/_/index.ts | 25 +--- .../components/search/query/index.ts | 2 - .../components/search/result/index.ts | 4 +- .../javascripts/components/source/_/index.ts | 17 +-- .../integrations/search/worker/_/index.ts | 2 +- .../integrations/search/worker/main/index.ts | 4 +- .../patches/indeterminate/index.ts | 2 +- .../javascripts/utilities/string/index.ts | 17 +++ src/base.html | 2 +- src/overrides/assets/javascripts/bundle.ts | 4 +- .../assets/javascripts/components/_/index.ts | 35 +++-- .../{icon-search => iconsearch}/_/index.ts | 8 +- .../{icon-search => iconsearch}/index.ts | 0 .../query/index.ts | 12 +- .../result/index.ts | 0 .../assets/javascripts/components/index.ts | 2 +- .../{icon-search => iconsearch}/index.tsx | 4 +- .../assets/javascripts/templates/index.ts | 2 +- src/overrides/assets/stylesheets/main.scss | 1 + .../assets/stylesheets/main/_shame.scss | 105 -------------- .../assets/stylesheets/main/_typeset.scss | 20 +-- .../stylesheets/main/layout/_content.scss | 2 +- .../assets/stylesheets/main/layout/_hero.scss | 4 +- .../stylesheets/main/layout/_iconsearch.scss | 130 ++++++++++++++++++ src/overrides/home.html | 8 +- src/overrides/main.html | 4 +- src/partials/footer.html | 2 +- src/partials/nav-item.html | 2 +- src/partials/nav.html | 2 +- tools/build/copy/index.ts | 2 +- tools/build/index.ts | 2 +- typings/_/index.d.ts | 22 ++- 69 files changed, 404 insertions(+), 328 deletions(-) create mode 100644 material/assets/javascripts/bundle.4e3fea51.min.js create mode 100644 material/assets/javascripts/bundle.4e3fea51.min.js.map delete mode 100644 material/assets/javascripts/bundle.6e8eee23.min.js delete mode 100644 material/assets/javascripts/bundle.6e8eee23.min.js.map rename material/assets/javascripts/workers/{search.217ffd95.min.js => search.f5903571.min.js} (99%) rename material/assets/javascripts/workers/{search.217ffd95.min.js.map => search.f5903571.min.js.map} (84%) rename material/overrides/assets/javascripts/{bundle.fbf44fce.min.js => bundle.a8da887a.min.js} (66%) rename material/overrides/assets/javascripts/{bundle.fbf44fce.min.js.map => bundle.a8da887a.min.js.map} (69%) rename material/overrides/assets/javascripts/{icon_search_index.json => iconsearch_index.json} (100%) create mode 100644 material/overrides/assets/stylesheets/main.6c7993e4.min.css create mode 100644 material/overrides/assets/stylesheets/main.6c7993e4.min.css.map delete mode 100644 material/overrides/assets/stylesheets/main.8036384c.min.css delete mode 100644 material/overrides/assets/stylesheets/main.8036384c.min.css.map rename src/overrides/assets/javascripts/components/{icon-search => iconsearch}/_/index.ts (91%) rename src/overrides/assets/javascripts/components/{icon-search => iconsearch}/index.ts (100%) rename src/overrides/assets/javascripts/components/{icon-search => iconsearch}/query/index.ts (94%) rename src/overrides/assets/javascripts/components/{icon-search => iconsearch}/result/index.ts (100%) rename src/overrides/assets/javascripts/templates/{icon-search => iconsearch}/index.tsx (96%) create mode 100644 src/overrides/assets/stylesheets/main/layout/_iconsearch.scss diff --git a/docs/creating-your-site.md b/docs/creating-your-site.md index 64b75ca8d..26026ad8a 100644 --- a/docs/creating-your-site.md +++ b/docs/creating-your-site.md @@ -91,7 +91,7 @@ Material for MkDocs comes with many configuration options. The _setup_ section explains in great detail how to configure and customize colors, fonts, icons and much more: -
+
- [Changing the colors][5] - [Changing the fonts][6] diff --git a/docs/insiders.md b/docs/insiders.md index aca4da775..89d7a5cd4 100644 --- a/docs/insiders.md +++ b/docs/insiders.md @@ -2,15 +2,15 @@ template: overrides/main.html --- -# :logo: :material-plus: :octicons-heart-fill-24:{: .tx-heart } +# :logo: :material-plus: :octicons-heart-fill-24:{: .mdx-heart } Material for MkDocs uses the _sponsorware_ release strategy, which means that _new features are first exclusively released to sponsors_ as part of __Insiders__. Read on to learn [how sponsorship works][1], and how easy it is to [get access to Insiders][2]. -
-
+
+
@@ -89,10 +89,10 @@ You can cancel your sponsorship anytime.[^3] through Stripe. As we don't receive any information regarding your payment, and GitHub doesn't offer refunds, sponsorships are non-refundable. -[:octicons-heart-fill-24:{: .tx-heart }   Join our awesome sponsors][5]{: .md-button .md-button--primary .tx-insiders-button } +[:octicons-heart-fill-24:{: .mdx-heart }   Join our awesome sponsors][5]{: .md-button .md-button--primary .mdx-insiders-button } -