Fix the ghost emojis on the website (#5824)
Replaces all ghost icons with an svg of the android 8 ghost emoji, which is the one we
started with. Pulled the svg from
https://github.com/googlefonts/noto-emoji/blob/f931bea0efd67aefdf6beae404e1f3150c90314e/svg/emoji_u1f47b.svg,
but had to fiddle with it a bit because whatever markdown emoji renderer thing didn't
like it at first.
This also makes the emoji available as `:iree-ghost:` in markdown. I wanted to override
just `:ghost:` but you can't add something that's already in the index (see
https://github.com/facelessuser/mkdocs-material-extensions#using-local-custom-icons).
Preview at https://gmngeoffrey.github.io/iree
diff --git a/docs/website/docs/assets/images/favicon.png b/docs/website/docs/assets/images/favicon.png
deleted file mode 100644
index b896b9c..0000000
--- a/docs/website/docs/assets/images/favicon.png
+++ /dev/null
Binary files differ
diff --git a/docs/website/docs/assets/stylesheets/extra.css b/docs/website/docs/assets/stylesheets/extra.css
index 3b4eec9..a0c6a0b 100644
--- a/docs/website/docs/assets/stylesheets/extra.css
+++ b/docs/website/docs/assets/stylesheets/extra.css
@@ -1,10 +1,10 @@
/* Logo drop shadow, to make it a bit more visible against the background */
-.md-header__button.md-logo img {
+.md-header__button.md-logo svg {
filter: drop-shadow(0px 2px 3px black);
}
/* Pulse the drop shadow on hover ^_^ */
-.md-header__button.md-logo img:hover {
+.md-header__button.md-logo svg:hover {
animation: pulse 1s infinite;
animation-timing-function: linear;
}
diff --git a/docs/website/docs/index.md b/docs/website/docs/index.md
index cfcff3b..d6a8ba8 100644
--- a/docs/website/docs/index.md
+++ b/docs/website/docs/index.md
@@ -161,6 +161,6 @@
work associated with plans for each quarter.
[^1]:
- Pronounced "eerie" and often styled with the :ghost: emoji
+ Pronounced "eerie" and often styled with the :iree-ghost: emoji
*[IR]: Intermediate Representation
diff --git a/docs/website/mkdocs.yml b/docs/website/mkdocs.yml
index 70c8e7c..07758e8 100644
--- a/docs/website/mkdocs.yml
+++ b/docs/website/mkdocs.yml
@@ -5,9 +5,8 @@
name: material
icon:
repo: fontawesome/brands/github
- logo: material/ghost
- favicon: assets/images/favicon.png
- logo: assets/images/favicon.png
+ logo: iree/ghost
+ favicon: ghost.svg
custom_dir: overrides
features:
@@ -80,6 +79,9 @@
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
+ options:
+ custom_icons:
+ - overrides/.icons
- pymdownx.tabbed
- pymdownx.superfences
- pymdownx.tabbed
diff --git a/docs/website/overrides/.icons/iree/ghost.svg b/docs/website/overrides/.icons/iree/ghost.svg
new file mode 120000
index 0000000..5cdf1dd
--- /dev/null
+++ b/docs/website/overrides/.icons/iree/ghost.svg
@@ -0,0 +1 @@
+../../ghost.svg
\ No newline at end of file
diff --git a/docs/website/overrides/404.html b/docs/website/overrides/404.html
index 345001f..3202286 100644
--- a/docs/website/overrides/404.html
+++ b/docs/website/overrides/404.html
@@ -2,9 +2,9 @@
{% block content %}
<center>
<h1>
- <img alt="👻" class="twemoji" src="https://twemoji.maxcdn.com/v/latest/svg/1f47b.svg" title=":ghost:">
+ <img alt="👻" class="twemoji" src="ghost.svg" title=":ghost:">
404 - Not found
- <img alt="👻" class="twemoji" src="https://twemoji.maxcdn.com/v/latest/svg/1f47b.svg" title=":ghost:">
+ <img alt="👻" class="twemoji" src="ghost.svg" title=":ghost:">
</h1>
<p>Sorry, we couldn't find that page.</p>
diff --git a/docs/website/overrides/ghost.svg b/docs/website/overrides/ghost.svg
new file mode 100644
index 0000000..d663153
--- /dev/null
+++ b/docs/website/overrides/ghost.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 128"><defs/><symbol id="h" viewBox="-64.5 -64.5 129 129"><g fill="none" stroke="#4285f4" stroke-miterlimit="10"><rect width="128" height="128" x="-64" y="-64"/><path d="M36.95 37.82C27.32 46.32 14.2 51 0 51c-14.27 0-27.39-4.62-36.96-13.01C-47.45 28.79-53 15.65-53 0c0-15.58 5.55-28.69 16.04-37.92C-27.36-46.35-14.24-51 0-51c14.17 0 27.29 4.71 36.95 13.25C47.45-28.45 53-15.4 53 0c0 15.47-5.55 28.55-16.05 37.82z"/><path d="M0 55h0c-29.59 0-57-19.01-57-55 0-35.8 27.41-55 57-55h0c29.59 0 57 19.69 57 55 0 35.51-27.41 55-57 55z"/><path d="M0-43c-12.29 0-23.54 3.94-31.68 11.09C-40.39-24.25-45-13.21-45 0c0 29.7 22.6 43 45 43 21.67 0 45-13.46 45-43S21.67-43 0-43h0z"/><line x1="-.01" x2="-.01" y1="51" y2="-51"/><line x1="-16" x2="-16" y1="48.95" y2="-48.93"/><line x1="15.99" x2="15.99" y1="48.91" y2="-48.93"/><line x1="53" x2="-53" y1=".08" y2=".08"/></g></symbol><linearGradient id="a" x1="64.0003" x2="64.0003" y1="8.5308" y2="121.1266" gradientUnits="userSpaceOnUse"><stop offset=".00131497" stop-color="#c7c7c7"/><stop offset=".2797" stop-color="#cacaca"/><stop offset=".5253" stop-color="#d5d5d5"/><stop offset=".7578" stop-color="#e7e7e7"/><stop offset=".9473" stop-color="#fcfcfc"/></linearGradient><path fill="url(#a)" d="M101.04 122.77c-1 0-3.35-1.25-5.43-2.36-3.88-2.06-8.72-4.63-13.51-4.63-4.25 0-7.42 2.02-10.22 3.8-2.51 1.6-4.88 3.11-7.87 3.17-3.22-.06-5.61-1.61-8.15-3.26-2.82-1.83-5.73-3.72-9.92-3.72-4.79 0-9.65 2.57-13.55 4.63-2.09 1.11-4.47 2.36-5.47 2.36-1.21 0-3.23-1.01-3.34-1.54.02-.07.05-.18.07-.25.02-.1 2.12-10.3 3.82-20.52 3.69-22.18 2.06-22.84.33-23.55C16.17 72.16 5.14 55.19 5.4 46c.05-1.97.79-4.08 1.95-4.2.09-.01.17-.02.25-.02.33 0 .44.05 1.44 1.3.6.75 1.34 1.67 2.44 2.74 5.12 4.96 9.32 7.17 16.01 8.45.13.02.25.04.38.04.46 0 .91-.16 1.27-.46.46-.38.73-.95.73-1.54V38.6c0-8.28 3.45-16.52 9.48-22.6 6.39-6.45 15.1-10 24.54-10 18.64 0 34.38 14.93 34.38 32.6v13.71c0 .61.28 1.19.75 1.56.36.28.8.44 1.25.44.15 0 .3-.02.45-.05 6.47-1.49 11.37-4.09 15.87-8.44 1.11-1.07 1.85-2.01 2.45-2.76 1.01-1.28 1.09-1.28 1.4-1.28.08 0 .16.01.24.01 1.15.12 1.88 2.23 1.93 4.19.24 9.2-10.8 26.17-22.43 30.93-1.73.71-3.36 1.37.33 23.55 1.7 10.22 3.8 20.42 3.82 20.52.01.07.03.13.05.2-.1.58-2.12 1.59-3.34 1.59z"/><path fill="#a1a1a1" d="M63.87 8c17.55 0 32.38 14.01 32.38 30.6v13.71c0 1.22.56 2.37 1.51 3.13.71.57 1.6.87 2.49.87.3 0 .6-.03.9-.1 6.85-1.57 12.03-4.34 16.81-8.95 1.09-1.05 1.86-1.99 2.44-2.72.11.41.19.92.21 1.5.12 4.4-2.47 10.6-6.93 16.6-4.33 5.83-9.8 10.59-14.26 12.42-3.44 1.4-4.48 4.12-.88 25.73 1.41 8.45 3.08 16.88 3.64 19.65-.38.17-.83.3-1.09.33-.79-.13-2.95-1.28-4.53-2.12-4.08-2.17-9.16-4.86-14.45-4.86-4.83 0-8.26 2.19-11.29 4.12-2.34 1.49-4.37 2.78-6.75 2.86-2.68-.07-4.63-1.34-7.1-2.94-2.92-1.89-6.23-4.04-11.01-4.04-5.29 0-10.39 2.69-14.49 4.86-1.59.84-3.76 1.99-4.56 2.12-.27-.03-.72-.16-1.09-.32.56-2.77 2.24-11.2 3.64-19.65 3.6-21.61 2.55-24.33-.89-25.73-4.46-1.82-9.92-6.58-14.25-12.42-4.45-6-7.04-12.21-6.92-16.61.02-.6.1-1.12.22-1.53.58.73 1.37 1.69 2.47 2.74 5.45 5.27 9.9 7.62 17.03 8.98.25.05.5.07.75.07.92 0 1.83-.32 2.55-.92.92-.76 1.45-1.89 1.45-3.08V38.6c0-7.76 3.24-15.48 8.9-21.19C46.76 11.34 54.97 8 63.87 8m0-4c-21.2 0-36.01 16.72-36.01 34.6v13.71c-6.58-1.26-10.31-3.39-15-7.93-2.83-2.72-3.15-4.6-5.27-4.6-.14 0-.29.01-.45.03-2.61.27-3.67 3.51-3.74 6.13-.32 11.52 12.98 28.46 23.65 32.83 3.02 1.23-5.35 41.81-5.35 41.81-.83 2.61 3.43 4.19 5.23 4.19 3.62 0 11.7-6.99 19.02-6.99 7.24 0 10.43 6.83 18.11 6.98 7.16-.14 10.79-6.98 18.04-6.98 7.32 0 15.32 6.99 18.94 6.99 1.81 0 6.07-1.58 5.24-4.19 0 0-8.36-40.58-5.35-41.81 10.67-4.37 23.98-21.31 23.67-32.83-.07-2.62-1.12-5.86-3.72-6.13-.16-.02-.31-.03-.46-.03-2.13 0-2.42 1.88-5.24 4.6-4.71 4.54-9.45 6.67-14.93 7.93V38.6c0-18.18-15.9-34.6-36.38-34.6z"/><g><defs><path id="b" d="M63.99 61.7c-9.51 0-18.34-.8-25.72-2.16-1.83-.34-3.45 1.27-3.07 3.09 2.45 11.99 14.25 21.84 28.78 21.84 15.9 0 26.6-10.17 28.82-21.88.34-1.81-1.27-3.39-3.08-3.05-7.37 1.36-16.21 2.16-25.73 2.16z"/></defs><clipPath id="c"><use overflow="visible" xlink:href="#b"/></clipPath><path fill="#242424" d="M63.99 61.7c-9.51 0-18.34-.8-25.72-2.16-1.83-.34-3.45 1.27-3.07 3.09 2.45 11.99 14.25 21.84 28.78 21.84 15.9 0 26.6-10.17 28.82-21.88.34-1.81-1.27-3.39-3.08-3.05-7.37 1.36-16.21 2.16-25.73 2.16z" clip-path="url(#c)"/><g clip-path="url(#c)" opacity=".2"><path d="M89.74 62.58c-1.09 5.04-3.96 9.64-8.11 13-4.74 3.85-10.84 5.88-17.65 5.88-12.26 0-23.21-8.08-25.72-18.88 7.69 1.38 16.57 2.11 25.73 2.11 9.17.01 18.06-.72 25.75-2.11m.47-3.09c-.16 0-.32.01-.49.05-7.37 1.37-16.22 2.16-25.73 2.16-9.51 0-18.34-.8-25.72-2.16-.17-.03-.33-.05-.49-.05-1.61 0-2.92 1.48-2.58 3.14 2.45 11.99 14.25 21.84 28.78 21.84 15.9 0 26.6-10.17 28.82-21.88.31-1.65-.99-3.1-2.59-3.1z"/></g><path fill="none" d="M63.99 61.7c-9.51 0-18.34-.8-25.72-2.16-1.83-.34-3.45 1.27-3.07 3.09 2.45 11.99 14.25 21.84 28.78 21.84 15.9 0 26.6-10.17 28.82-21.88.34-1.81-1.27-3.39-3.08-3.05-7.37 1.36-16.21 2.16-25.73 2.16z"/><g><defs><path id="d" d="M38.28 63.14v33.01h50.87V63.14c-7.57 1.31-16.23 2.01-25.16 2.01-8.91 0-17.57-.69-25.13-2"/></defs><clipPath id="e"><use overflow="visible" xlink:href="#d"/></clipPath><path fill="#e04c74" d="M66.99 95.88h-4.91c-6.43 0-11.64-5.21-11.64-11.64v-30.2h28.19v30.2c0 6.43-5.21 11.64-11.64 11.64z" clip-path="url(#e)"/><g clip-path="url(#e)" opacity=".3"><path fill="#ab3f2e" d="M75.78 56.88v27.36c0 4.85-3.94 8.79-8.79 8.79h-4.91c-4.85 0-8.79-3.94-8.79-8.79V56.88h22.49m2.85-2.84H50.44v30.2c0 6.43 5.21 11.64 11.64 11.64h4.91c6.43 0 11.64-5.21 11.64-11.64v-30.2z"/></g><line x1="64.54" x2="64.54" y1="54.04" y2="79.56" fill="none" stroke="#ab3f2e" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" clip-path="url(#e)" opacity=".3"/></g></g><g><circle cx="76.36" cy="41.86" r="15.81" fill="#fff"/><path fill="#a1a1a1" d="M76.36 30.06c6.51 0 11.81 5.3 11.81 11.81s-5.3 11.81-11.81 11.81c-6.51 0-11.81-5.3-11.81-11.81s5.3-11.81 11.81-11.81m0-4c-8.73 0-15.81 7.08-15.81 15.81s7.08 15.81 15.81 15.81 15.81-7.08 15.81-15.81-7.08-15.81-15.81-15.81z"/><path fill="#242424" d="M76.36 36.24c-3.06 0-5.53 1.81-5.53 5.62s2.48 5.62 5.53 5.62c3.06 0 5.53-1.81 5.53-5.62s-2.47-5.62-5.53-5.62z"/><g fill="#242424"><path d="M54.09 48.24s-.07-.03-.2-.09c-.06-.03-.14-.06-.23-.1-.06-.02-.14-.04-.22-.06-.15-.05-.41-.13-.69-.2-.27-.08-.6-.14-.96-.21-.72-.13-1.59-.21-2.54-.23-.95-.01-1.97.05-2.99.2-.19.03-.6.08-.79.12-.23.04-.46.08-.72.14-.49.11-.97.22-1.42.36-.91.28-1.72.59-2.38.91-.65.32-1.15.63-1.48.85-.16.11-.29.2-.37.27-.08.06-.13.1-.13.1l-.21.15c-.82.61-1.97.44-2.58-.38-.5-.67-.47-1.56 0-2.19 0 0 .05-.07.16-.21.1-.14.25-.35.47-.58.21-.24.48-.52.8-.8.32-.29.7-.59 1.13-.88.85-.6 1.91-1.15 3.09-1.6.59-.22 1.2-.43 1.84-.58.31-.08.65-.15.99-.22.38-.08.56-.1.95-.17 1.31-.17 2.64-.22 3.9-.11 1.25.11 2.42.35 3.41.69.49.16.94.35 1.33.54.4.18.7.37 1.01.56.15.09.28.18.39.26.08.06.15.12.2.16.11.09.17.13.17.13.8.65.93 1.82.28 2.62-.56.68-1.46.88-2.21.55z"/><path d="M53.59 47.57s-.06-.05-.16-.15c-.11-.12-.24-.21-.39-.34-.34-.28-.86-.7-1.52-1.19-.67-.48-1.47-1.04-2.36-1.61-.45-.28-.92-.57-1.39-.86-.47-.29-.99-.59-1.45-.84-.54-.31-1.01-.57-1.5-.83s-.98-.51-1.45-.75c-.95-.47-1.84-.88-2.59-1.2-.76-.32-1.38-.55-1.81-.7-.42-.13-.65-.21-.65-.21l-.19-.06c-.97-.31-1.5-1.36-1.19-2.33.26-.8 1.01-1.3 1.81-1.28 0 0 .09 0 .26.01.17 0 .42.01.72.04.61.06 1.45.19 2.41.45.96.25 2.04.61 3.15 1.07.55.24 1.13.48 1.68.76.57.28 1.16.6 1.67.87.59.34 1.11.66 1.64 1 .53.33 1.03.7 1.52 1.05.97.72 1.83 1.46 2.53 2.15.71.69 1.25 1.34 1.62 1.84.21.27.35.49.41.6.07.12.11.19.11.19.53.88.26 2.02-.62 2.56-.74.45-1.67.32-2.26-.24z"/></g></g></svg>