From 68e63dba6275218691280df238e42633c933a1b1 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Sat, 18 Jan 2025 09:21:28 +1000
Subject: [PATCH] docs: open collective, sponsors

- drop open collective banner height, sometimes cuts off image

- use grid cards for sponsors

- hide navigation on both for more screen space
---
 dev/treefmt.nix                               |   1 +
 ....png => logo_namespace_filled_lightbg.png} | Bin
 docs/open-collective.md                       |  10 +++---
 docs/sponsors.md                              |  31 +++++++++++++++---
 mkdocs.yml                                    |   2 ++
 5 files changed, 34 insertions(+), 10 deletions(-)
 rename docs/{Logo_namespace_filled_lightbg.png => logo_namespace_filled_lightbg.png} (100%)

diff --git a/dev/treefmt.nix b/dev/treefmt.nix
index 866dbe7..58bbb95 100644
--- a/dev/treefmt.nix
+++ b/dev/treefmt.nix
@@ -63,6 +63,7 @@
       ];
       excludes = [
         "config.yaml"
+        "docs/sponsors.md"
         "*secrets.yaml"
         "modules/secrets/*.yaml"
       ];
diff --git a/docs/Logo_namespace_filled_lightbg.png b/docs/logo_namespace_filled_lightbg.png
similarity index 100%
rename from docs/Logo_namespace_filled_lightbg.png
rename to docs/logo_namespace_filled_lightbg.png
diff --git a/docs/open-collective.md b/docs/open-collective.md
index 9adec02..808f319 100644
--- a/docs/open-collective.md
+++ b/docs/open-collective.md
@@ -1,8 +1,8 @@
-<style>
-div.opencollective-banner > iframe {
-    height: 700px;
-}
-</style>
+---
+hide:
+  - navigation
+---
+
 <noscript>
   <a href="https://opencollective.com/nix-community">https://opencollective.com/nix-community</a>
 </noscript>
diff --git a/docs/sponsors.md b/docs/sponsors.md
index c6c23bf..dd762ff 100644
--- a/docs/sponsors.md
+++ b/docs/sponsors.md
@@ -1,7 +1,28 @@
+---
+hide:
+  - navigation
+---
+
 Thanks to all our sponsors.
 
-<!-- prettier-ignore-start -->
-|[<img src="https://raw.githubusercontent.com/cachix/docs.cachix.org/master/source/logo.png" width="200" alt="Cachix">](https://cachix.org)|[<img src="https://raw.githubusercontent.com/Gandi/.github/b1f21a402d9223c672476b41148429f538be5303/logos/black.svg" width="200" alt="Gandi">](https://www.gandi.net/)|[<img src="../Logo_namespace_filled_lightbg.png" width="200" alt="Namespace">](https://cloud.namespace.so)|
-|:-:|:-:|:-:|
-|Cachix provides us with 1TB of free cache.|Gandi provides us with a free domain and a virtual private server.|Namespace provides us with faster GitHub runners, including ARM64.|
-<!-- prettier-ignore-end -->
+<div style="text-align:center" class="grid cards" markdown>
+
+-   [<img src="https://raw.githubusercontent.com/cachix/docs.cachix.org/master/source/logo.png" width="250" alt="Cachix">](https://cachix.org)
+
+    ---
+
+    Cachix provides us with 1TB of free cache.
+
+-   [<img src="https://raw.githubusercontent.com/Gandi/.github/b1f21a402d9223c672476b41148429f538be5303/logos/black.svg" width="250" alt="Gandi">](https://www.gandi.net/)
+
+    ---
+
+    Gandi provides us with a free domain and a virtual private server.
+
+-   [<img src="../logo_namespace_filled_lightbg.png" width="250" alt="Namespace">](https://cloud.namespace.so)
+
+    ---
+
+    Namespace provides us with faster GitHub runners, including ARM64.
+
+</div>
diff --git a/mkdocs.yml b/mkdocs.yml
index 6203d2c..c6dbda7 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -35,6 +35,8 @@ theme:
     repo: fontawesome/brands/github
 
 markdown_extensions:
+  - attr_list
+  - md_in_html
   - toc:
       toc_depth: 0