Refresh website branding. (#16151)
Context: https://groups.google.com/g/iree-discuss/c/kdFr4CQwEyY
This is mostly a revert of https://github.com/openxla/iree/pull/12229,
moving back to mostly default colors and IREE icons. We can add back
custom colors etc. later (e.g.
https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/).
Current site: https://iree.dev/
Preview: https://scotttodd.github.io/iree/
diff --git a/docs/website/overrides/.icons/iree/ghost.svg b/docs/website/docs/assets/images/ghost.svg
similarity index 100%
rename from docs/website/overrides/.icons/iree/ghost.svg
rename to docs/website/docs/assets/images/ghost.svg
diff --git a/docs/website/docs/assets/images/openxla-logo-lockup-white.svg b/docs/website/docs/assets/images/openxla-logo-lockup-white.svg
deleted file mode 100644
index 6a0d1d1..0000000
--- a/docs/website/docs/assets/images/openxla-logo-lockup-white.svg
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- viewBox="0 0 430 110" style="enable-background:new 0 0 430 110;" xml:space="preserve">
-<style type="text/css">
- .st0{fill:#1C466C;}
- .st1{fill:#5EA8DA;}
- .st2{fill:#FFFFFF;}
- .st3{fill:#203A5C;}
- .st4{fill:none;stroke:#20FFC2;stroke-miterlimit:10;}
- .st5{fill:none;stroke:#203A5C;stroke-miterlimit:10;}
- .st6{fill:#3676DE;}
- .st7{fill:#15273B;}
- .st8{fill:#3775E0;}
-</style>
-<g>
- <polygon class="st2" points="32.98,108.78 1.93,55 32.98,1.22 101.47,1.22 132.52,55 101.47,108.78 "/>
- <polygon class="st8" points="79.52,55 97.76,23.4 101.86,30.49 87.71,55 97.76,72.41 89.57,72.41 "/>
- <polygon class="st1" points="54.93,55 36.69,86.6 32.59,79.5 46.74,55 36.69,37.59 44.88,37.59 "/>
- <polygon class="st7" points="85.47,79.5 71.32,55 89.57,23.4 81.37,23.4 75.42,33.71 69.47,23.4 61.27,23.4 71.32,40.81
- 67.22,47.9 53.08,23.4 36.69,23.4 32.59,30.49 48.98,30.49 63.13,55 44.88,86.6 53.08,86.6 59.03,76.29 64.98,86.6 73.18,86.6
- 63.13,69.19 67.22,62.09 81.37,86.6 97.76,86.6 101.86,79.5 "/>
- <g>
- <path class="st2" d="M165.17,55c0-13.87,8.79-22.72,21.59-22.72c12.8,0,21.53,8.85,21.53,22.72c0,13.74-8.72,22.72-21.53,22.72
- C173.96,77.72,165.17,68.74,165.17,55z M199.75,55c0-9.41-5.02-14.94-12.99-14.94c-7.97,0-12.99,5.52-12.99,14.94
- c0,9.22,5.02,15,12.99,15C194.73,70,199.75,64.23,199.75,55z"/>
- <path class="st2" d="M246.19,60.33c0,11.3-5.71,17.38-13.93,17.38c-3.76,0-6.71-1.32-8.72-3.51v15.12h-8.03V52.87l-2.7-5.46
- l7.78-3.95l2.2,4.58c2.26-2.7,5.71-4.9,10.36-4.9C241.24,43.14,246.19,49.73,246.19,60.33z M237.91,60.27
- c0-6.28-2.82-9.98-8.28-9.98c-2.2,0-4.33,0.56-6.09,1.57v16.88c1.69,1.13,3.76,1.76,5.9,1.76
- C234.71,70.5,237.91,66.86,237.91,60.27z"/>
- <path class="st2" d="M280.4,61.65h-21.46c0.69,5.08,4.64,8.22,11.17,8.22c3.58,0,7.47-0.75,10.04-2.13l-2.45,8.03
- c-2.26,1.25-5.65,1.95-9.73,1.95c-10.92,0-17.38-6.84-17.38-17.38c0-10.67,6.34-17.2,16.63-17.2c8.72,0,14,4.96,14,12.99
- C281.21,57.89,280.96,60.08,280.4,61.65z M259.12,56.63h14.37c-0.25-4.83-2.45-6.9-6.28-6.9
- C262.95,49.73,260.06,52.3,259.12,56.63z"/>
- <path class="st2" d="M316.05,53.81v23.1h-8.03V57.01c0-4.33-1.76-6.59-5.9-6.59c-2.38,0-4.58,0.82-6.4,1.63V76.9h-8.03V52.8
- l-2.7-5.77l7.78-3.7l2.51,5.15c3.64-3.26,7.41-5.27,11.23-5.27C312.66,43.2,316.05,46.84,316.05,53.81z"/>
- </g>
- <path class="st1" d="M358.03,33.1l-13.37,22.53l13.43,21.28h-9.54l-7.72-12.43l-1.57-3.64h-0.38l-1.44,3.58l-7.28,12.49h-9.29
- l13.74-22.15L321.07,33.1h9.41l8.1,12.99l1.32,3.33h0.38l1.44-3.45l7.22-12.87H358.03z"/>
- <path class="st1" d="M372.03,69.81h15.44v7.09h-23.6V33.1h8.16V69.81z"/>
- <path class="st1" d="M419.66,76.9l-3.51-11.17h-15.12l-3.58,11.17h-8.28l14.31-43.81h10.35l14.25,43.81H419.66z M403.16,59.02
- h10.86l-4.52-14.31l-0.69-3.39h-0.44l-0.69,3.39L403.16,59.02z"/>
-</g>
-</svg>
diff --git a/docs/website/docs/assets/stylesheets/openxla.css b/docs/website/docs/assets/stylesheets/iree.css
similarity index 75%
rename from docs/website/docs/assets/stylesheets/openxla.css
rename to docs/website/docs/assets/stylesheets/iree.css
index 7f67eb5..083fc31 100644
--- a/docs/website/docs/assets/stylesheets/openxla.css
+++ b/docs/website/docs/assets/stylesheets/iree.css
@@ -1,21 +1,5 @@
@import url(//fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined);
-[data-md-color-scheme="default"] {
- --md-primary-fg-color: #1a344c; /* OpenXLA navy */
- --md-typeset-a-color: #458ae5; /* OpenXLA blue 01 */
- --md-accent-fg-color: #6fb6e0; /* OpenXLA blue 02 */
-}
-
-[data-md-color-scheme="slate"] {
- --md-primary-fg-color: #1a344c; /* OpenXLA navy */
- --md-typeset-a-color: #6fb6e0; /* OpenXLA blue 02 */
- --md-accent-fg-color: #458ae5; /* OpenXLA blue 01 */
- /* H1 color */
- --md-default-fg-color--light: rgba(204, 234, 254, 0.6);
- /* Button color */
- --md-default-fg-color--lighter: rgba(204, 234, 254, 0.3);
-}
-
.md-header__button.md-logo :is(img, svg),
.md-header__button.md-logo :-webkit-any(img, svg) {
height: 1.6rem;
diff --git a/docs/website/mkdocs.yml b/docs/website/mkdocs.yml
index d477146..071533c 100644
--- a/docs/website/mkdocs.yml
+++ b/docs/website/mkdocs.yml
@@ -6,7 +6,7 @@
theme:
name: material
- logo: assets/images/openxla-logo-lockup-white.svg
+ logo: assets/images/ghost.svg
logo_alt: IREE
icon:
repo: fontawesome/brands/github
@@ -14,9 +14,8 @@
font:
text: Noto
code: Noto Sans Mono
- favicon: assets/images/favicon.png
+ favicon: assets/images/ghost.svg
- # Note: this includes symlinks to forked files in third_party/mkdocs-material/
custom_dir: overrides
features:
@@ -37,13 +36,13 @@
- toc.follow # Scroll the TOC panel to follow the reader
palette:
- # Light mode (scheme overrides in openxla.css)
+ # Light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
- # Dark mode (scheme overrides in openxla.css)
+ # Dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
@@ -51,10 +50,6 @@
name: Switch to light mode
extra:
- # TODO(scotttodd): https://openxla.github.io/community (when hosted)
- community_homepage: https://github.com/openxla/community
- community_site_name: OpenXLA
-
homepage: https://iree.dev/
# TODO(scotttodd): join mkdocs-material insiders and remove notice?
@@ -77,7 +72,7 @@
extra_css:
- assets/stylesheets/extra.css
- - assets/stylesheets/openxla.css
+ - assets/stylesheets/iree.css
copyright: Copyright © 2024 The IREE Authors
@@ -114,7 +109,7 @@
custom_checkbox: true
- tables
- toc: # Table of Contents
- permalink: 'link' # Use Material font's "link" icon; see openxla.css
+ permalink: 'link' # Use Material font's "link" icon; see iree.css
toc_depth: 4
# Navigation with explicit ordering and nesting.
diff --git a/docs/website/overrides/.icons/iree/ghost.svg b/docs/website/overrides/.icons/iree/ghost.svg
new file mode 120000
index 0000000..6674e9b
--- /dev/null
+++ b/docs/website/overrides/.icons/iree/ghost.svg
@@ -0,0 +1 @@
+../../../docs/assets/images/ghost.svg
\ No newline at end of file
diff --git a/docs/website/overrides/partials/header.html b/docs/website/overrides/partials/header.html
deleted file mode 120000
index 99ee450..0000000
--- a/docs/website/overrides/partials/header.html
+++ /dev/null
@@ -1 +0,0 @@
-../../../../third_party/mkdocs-material/overrides/partials/header.html
\ No newline at end of file
diff --git a/docs/website/overrides/partials/nav.html b/docs/website/overrides/partials/nav.html
deleted file mode 120000
index 4da8db8..0000000
--- a/docs/website/overrides/partials/nav.html
+++ /dev/null
@@ -1 +0,0 @@
-../../../../third_party/mkdocs-material/overrides/partials/nav.html
\ No newline at end of file
diff --git a/experimental/web/sample_dynamic/build_sample.sh b/experimental/web/sample_dynamic/build_sample.sh
index eac2474..74a7304 100755
--- a/experimental/web/sample_dynamic/build_sample.sh
+++ b/experimental/web/sample_dynamic/build_sample.sh
@@ -103,6 +103,6 @@
cp "${SOURCE_DIR}/index.html" "${BINARY_DIR}"
cp "${SOURCE_DIR}/benchmarks.html" "${BINARY_DIR}"
-cp "${ROOT_DIR}/docs/website/overrides/.icons/iree/ghost.svg" "${BINARY_DIR}"
+cp "${ROOT_DIR}/docs/website/docs/assets/images/ghost.svg" "${BINARY_DIR}"
cp "${SOURCE_DIR}/iree_api.js" "${BINARY_DIR}"
cp "${SOURCE_DIR}/iree_worker.js" "${BINARY_DIR}"
diff --git a/experimental/web/sample_static/build_sample.sh b/experimental/web/sample_static/build_sample.sh
index cc0b6cd..1472b06 100755
--- a/experimental/web/sample_static/build_sample.sh
+++ b/experimental/web/sample_static/build_sample.sh
@@ -108,7 +108,7 @@
echo "=== Copying static files to the build directory ==="
cp "${SOURCE_DIR}/index.html" "${BINARY_DIR}"
-cp "${ROOT_DIR}/docs/website/overrides/.icons/iree/ghost.svg" "${BINARY_DIR}"
+cp "${ROOT_DIR}/docs/website/docs/assets/images/ghost.svg" "${BINARY_DIR}"
cp "${SOURCE_DIR}/iree_api.js" "${BINARY_DIR}"
cp "${SOURCE_DIR}/iree_worker.js" "${BINARY_DIR}"
diff --git a/experimental/web/sample_webgpu/build_sample.sh b/experimental/web/sample_webgpu/build_sample.sh
index 6f0d666..cc1b4d6 100755
--- a/experimental/web/sample_webgpu/build_sample.sh
+++ b/experimental/web/sample_webgpu/build_sample.sh
@@ -101,5 +101,5 @@
echo "=== Copying static files (.html, .js) to the build directory ==="
cp ${SOURCE_DIR?}/index.html ${BINARY_DIR}
-cp "${ROOT_DIR}/docs/website/overrides/.icons/iree/ghost.svg" "${BINARY_DIR}"
+cp "${ROOT_DIR}/docs/website/docs/assets/images/ghost.svg" "${BINARY_DIR}"
cp ${SOURCE_DIR?}/iree_api_webgpu.js ${BINARY_DIR}
diff --git a/experimental/web/testing/build_tests.sh b/experimental/web/testing/build_tests.sh
index 0b0c762..e4cdb35 100755
--- a/experimental/web/testing/build_tests.sh
+++ b/experimental/web/testing/build_tests.sh
@@ -100,4 +100,4 @@
cp ${SOURCE_DIR?}/test-runner.html ${BINARY_DIR}
cp ${SOURCE_DIR?}/*.js ${BINARY_DIR}
-cp ${ROOT_DIR?}/docs/website/overrides/.icons/iree/ghost.svg ${BINARY_DIR}
+cp ${ROOT_DIR?}/docs/website/docs/assets/images/ghost.svg ${BINARY_DIR}
diff --git a/samples/colab/pytorch_aot_advanced.ipynb b/samples/colab/pytorch_aot_advanced.ipynb
index 79c5ed7..e8f6c22 100644
--- a/samples/colab/pytorch_aot_advanced.ipynb
+++ b/samples/colab/pytorch_aot_advanced.ipynb
@@ -43,7 +43,7 @@
{
"cell_type": "markdown",
"source": [
- "# <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/PyTorch_logo_icon.svg/640px-PyTorch_logo_icon.svg.png\" height=\"20px\"> PyTorch Ahead-of-time (AOT) export workflows using <img src=\"https://raw.githubusercontent.com/openxla/iree/main/docs/website/overrides/.icons/iree/ghost.svg\" height=\"20px\"> IREE\n",
+ "# <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/PyTorch_logo_icon.svg/640px-PyTorch_logo_icon.svg.png\" height=\"20px\"> PyTorch Ahead-of-time (AOT) export workflows using <img src=\"https://raw.githubusercontent.com/openxla/iree/main/docs/website/docs/assets/images/ghost.svg\" height=\"20px\"> IREE\n",
"\n",
"This notebook shows how to use [SHARK-Turbine](https://github.com/nod-ai/SHARK-Turbine) for export from a PyTorch session to [IREE](https://github.com/openxla/iree), leveraging [torch-mlir](https://github.com/llvm/torch-mlir) under the covers.\n",
"\n",
diff --git a/samples/colab/pytorch_aot_simple.ipynb b/samples/colab/pytorch_aot_simple.ipynb
index 1fee225..d3c02d0 100644
--- a/samples/colab/pytorch_aot_simple.ipynb
+++ b/samples/colab/pytorch_aot_simple.ipynb
@@ -43,7 +43,7 @@
{
"cell_type": "markdown",
"source": [
- "# <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/PyTorch_logo_icon.svg/640px-PyTorch_logo_icon.svg.png\" height=\"20px\"> PyTorch Ahead-of-time (AOT) export workflows using <img src=\"https://raw.githubusercontent.com/openxla/iree/main/docs/website/overrides/.icons/iree/ghost.svg\" height=\"20px\"> IREE\n",
+ "# <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/PyTorch_logo_icon.svg/640px-PyTorch_logo_icon.svg.png\" height=\"20px\"> PyTorch Ahead-of-time (AOT) export workflows using <img src=\"https://raw.githubusercontent.com/openxla/iree/main/docs/website/docs/assets/images/ghost.svg\" height=\"20px\"> IREE\n",
"\n",
"This notebook shows how to use [SHARK-Turbine](https://github.com/nod-ai/SHARK-Turbine) for export from a PyTorch session to [IREE](https://github.com/openxla/iree), leveraging [torch-mlir](https://github.com/llvm/torch-mlir) under the covers.\n",
"\n",
diff --git a/samples/colab/pytorch_jit.ipynb b/samples/colab/pytorch_jit.ipynb
index e8bccc3..a008e09 100644
--- a/samples/colab/pytorch_jit.ipynb
+++ b/samples/colab/pytorch_jit.ipynb
@@ -43,7 +43,7 @@
{
"cell_type": "markdown",
"source": [
- "# <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/PyTorch_logo_icon.svg/640px-PyTorch_logo_icon.svg.png\" height=\"20px\"> PyTorch Just-in-time (JIT) workflows using <img src=\"https://raw.githubusercontent.com/openxla/iree/main/docs/website/overrides/.icons/iree/ghost.svg\" height=\"20px\"> IREE\n",
+ "# <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/PyTorch_logo_icon.svg/640px-PyTorch_logo_icon.svg.png\" height=\"20px\"> PyTorch Just-in-time (JIT) workflows using <img src=\"https://raw.githubusercontent.com/openxla/iree/main/docs/website/docs/assets/images/ghost.svg\" height=\"20px\"> IREE\n",
"\n",
"This notebook shows how to use [SHARK-Turbine](https://github.com/nod-ai/SHARK-Turbine) for eager execution within a PyTorch session using [IREE](https://github.com/openxla/iree) and [torch-mlir](https://github.com/llvm/torch-mlir) under the covers."
],
diff --git a/third_party/mkdocs-material/LICENSE b/third_party/mkdocs-material/LICENSE
deleted file mode 100644
index e409407..0000000
--- a/third_party/mkdocs-material/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
diff --git a/third_party/mkdocs-material/README.md b/third_party/mkdocs-material/README.md
deleted file mode 100644
index 55826fd..0000000
--- a/third_party/mkdocs-material/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Material for MkDocs
-
-This directory includes files forked from https://github.com/squidfunk/mkdocs-material.
-
-See:
-
-* https://squidfunk.github.io/mkdocs-material/customization/#extending-the-theme
-* https://github.com/squidfunk/mkdocs-material/tree/master/src/partials
-
-We symlink to these "third party" files from the `overrides` folder.
diff --git a/third_party/mkdocs-material/overrides/partials/header.html b/third_party/mkdocs-material/overrides/partials/header.html
deleted file mode 100644
index ac1dd3d..0000000
--- a/third_party/mkdocs-material/overrides/partials/header.html
+++ /dev/null
@@ -1,176 +0,0 @@
-<!--
- Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to
- deal in the Software without restriction, including without limitation the
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- sell copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- IN THE SOFTWARE.
--->
-
-<!-- Determine classes -->
-{% set class = "md-header" %}
-{% if "navigation.tabs.sticky" in features %}
- {% set class = class ~ " md-header--shadow md-header--lifted" %}
-{% elif "navigation.tabs" not in features %}
- {% set class = class ~ " md-header--shadow" %}
-{% endif %}
-
-<!-- Header -->
-<header class="{{ class }}" data-md-component="header">
- <nav
- class="md-header__inner md-grid"
- aria-label="{{ lang.t('header') }}"
- >
-
- <!-- Link to community home -->
- <a
- href="{{ config.extra.community_homepage | d(nav.homepage.url, true) | url }}"
- title="{{ config.extra.community_site_name | e }}"
- class="md-header__button md-logo"
- aria-label="{{ config.extra.community_site_name }}"
- data-md-component="logo"
- >
- {% include "partials/logo.html" %}
- </a>
-
- <!-- Link to site home -->
- <a
- href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
- title="{{ config.site_name | e }}"
- class="md-header__button md-logo"
- aria-label="{{ config.site_name }}"
- data-md-component="logo"
- >
- <div class="md-header__title">
- {{ config.site_name }}
- </div>
- </a>
-
- <!-- Button to open drawer -->
- <label class="md-header__button md-icon" for="__drawer">
- {% set icon = config.theme.icon.menu or "material/menu" %}
- {% include ".icons/" ~ icon ~ ".svg" %}
- </label>
-
- <!-- Header title -->
- <div class="md-header__title" data-md-component="header-title">
- <div class="md-header__ellipsis">
- <div data-md-component="header-topic">
- <span class="md-ellipsis">
- {% if page.meta and page.meta.title %}
- {{ page.meta.title }}
- {% else %}
- {{ page.title }}
- {% endif %}
- </span>
- </div>
- </div>
- </div>
-
- <!-- Color palette -->
- {% if config.theme.palette %}
- {% if not config.theme.palette is mapping %}
- <form class="md-header__option" data-md-component="palette">
- {% for option in config.theme.palette %}
- {% set scheme = option.scheme | d("default", true) %}
- {% set primary = option.primary | d("indigo", true) %}
- {% set accent = option.accent | d("indigo", true) %}
- <input
- class="md-option"
- data-md-color-media="{{ option.media }}"
- data-md-color-scheme="{{ scheme | replace(' ', '-') }}"
- data-md-color-primary="{{ primary | replace(' ', '-') }}"
- data-md-color-accent="{{ accent | replace(' ', '-') }}"
- {% if option.toggle %}
- aria-label="{{ option.toggle.name }}"
- {% else %}
- aria-hidden="true"
- {% endif %}
- type="radio"
- name="__palette"
- id="__palette_{{ loop.index }}"
- />
- {% if option.toggle %}
- <label
- class="md-header__button md-icon"
- title="{{ option.toggle.name }}"
- for="__palette_{{ loop.index0 or loop.length }}"
- hidden
- >
- {% include ".icons/" ~ option.toggle.icon ~ ".svg" %}
- </label>
- {% endif %}
- {% endfor %}
- </form>
- {% endif %}
- {% endif %}
-
- <!-- Site language selector -->
- {% if config.extra.alternate %}
- <div class="md-header__option">
- <div class="md-select">
- {% set icon = config.theme.icon.alternate or "material/translate" %}
- <button
- class="md-header__button md-icon"
- aria-label="{{ lang.t('select.language') }}"
- >
- {% include ".icons/" ~ icon ~ ".svg" %}
- </button>
- <div class="md-select__inner">
- <ul class="md-select__list">
- {% for alt in config.extra.alternate %}
- <li class="md-select__item">
- <a
- href="{{ alt.link | url }}"
- hreflang="{{ alt.lang }}"
- class="md-select__link"
- >
- {{ alt.name }}
- </a>
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
- </div>
- {% endif %}
-
- <!-- Button to open search modal -->
- {% if "material/search" in config.plugins %}
- <label class="md-header__button md-icon" for="__search">
- {% set icon = config.theme.icon.search or "material/magnify" %}
- {% include ".icons/" ~ icon ~ ".svg" %}
- </label>
-
- <!-- Search interface -->
- {% include "partials/search.html" %}
- {% endif %}
-
- <!-- Repository information -->
- {% if config.repo_url %}
- <div class="md-header__source">
- {% include "partials/source.html" %}
- </div>
- {% endif %}
- </nav>
-
- <!-- Navigation tabs (sticky) -->
- {% if "navigation.tabs.sticky" in features %}
- {% if "navigation.tabs" in features %}
- {% include "partials/tabs.html" %}
- {% endif %}
- {% endif %}
-</header>
diff --git a/third_party/mkdocs-material/overrides/partials/nav.html b/third_party/mkdocs-material/overrides/partials/nav.html
deleted file mode 100644
index 0c5c775..0000000
--- a/third_party/mkdocs-material/overrides/partials/nav.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!--
- Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to
- deal in the Software without restriction, including without limitation the
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- sell copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- IN THE SOFTWARE.
--->
-
-{% import "partials/nav-item.html" as item with context %}
-
-<!-- Determine classes -->
-{% set class = "md-nav md-nav--primary" %}
-{% if "navigation.tabs" in features %}
- {% set class = class ~ " md-nav--lifted" %}
-{% endif %}
-{% if "toc.integrate" in features %}
- {% set class = class ~ " md-nav--integrated" %}
-{% endif %}
-
-<!-- Navigation -->
-<nav
- class="{{ class }}"
- aria-label="{{ lang.t('nav') }}"
- data-md-level="0"
->
-
- <!-- Community site logo / home page link -->
- <label class="md-nav__title" for="__drawer">
- <a
- href="{{ config.extra.community_homepage | d(nav.homepage.url, true) | url }}"
- title="{{ config.site_name | e }}"
- class="md-nav__button md-logo"
- aria-label="{{ config.site_name }}"
- data-md-component="logo"
- >
- {% include "partials/logo.html" %}
- </a>
- <!-- Site title (nav item below links to site home) -->
- {{ config.site_name }}
- </label>
-
- <!-- Repository information -->
- {% if config.repo_url %}
- <div class="md-nav__source">
- {% include "partials/source.html" %}
- </div>
- {% endif %}
-
- <!-- Navigation list -->
- <ul class="md-nav__list" data-md-scrollfix>
- {% for nav_item in nav %}
- {% set path = "__nav_" ~ loop.index %}
- {{ item.render(nav_item, path, 1) }}
- {% endfor %}
- </ul>
-</nav>