diff --git a/makesite.py b/makesite.py index 408b9fa..fe4a8a3 100644 --- a/makesite.py +++ b/makesite.py @@ -45,50 +45,63 @@ def create_menu(page): """ Create the menu for the given page. """ - menu = [""] - - menu.append('Pages') - for title, target in NAV.items(): - if isinstance(target, str): - if target.startswith(("https://", "http://", "/")): - menu.append(f"{title}") + menu = "" + + if True: + menuitems = [] + menuitems.append('Pages') + for title, target in NAV.items(): + if isinstance(target, str): + if target.startswith(("https://", "http://", "/")): + menuitems.append(f"{title}") + else: + menuitems.append(f"{title}") + if target == page.name: + menuitems[-1] = menuitems[-1].replace("{title}") + if target.get("", None) == page.name: + menuitems[-1] = menuitems[-1].replace("{subtitle}") + else: + menuitems.append( + f"{subtitle}" + ) + if subtarget == page.name: + menuitems[-1] = menuitems[-1].replace("class='", "class='current ") else: - menu.append(f"{title}") - if target == page.name: - menu[-1] = menu[-1].replace("{title}") - if target.get("", None) == page.name: - menu[-1] = menu[-1].replace("{subtitle}") - else: - menu.append( - f"{subtitle}" - ) - if subtarget == page.name: - menu[-1] = menu[-1].replace("class='", "class='current ") - else: - raise RuntimeError(f"Unexpected NAV entry {type(target)}") + raise RuntimeError(f"Unexpected NAV entry {type(target)}") + + menu += "
-pygfx-org
+
+Pygfx+Pygfx (py-graphics) is built on WebGPU, enabling superior performance and reliability compared to OpenGL-based solutions. It is designed for simplicity and versatility: with its modular architecture, you can effortlessly assemble graphical scenes for diverse applications, from scientific visualization to video game rendering. +
+ + +๏ Source +๏พ Gallery +๏ญ Documentation +๏ Support & Sponsoring + +
+
-# Sponsoring Pygfx
+# Sponsoring / support contracts
-## ๐งโ๐คโ๐ง Keep Pygfx independent and active
+## ๏ Keep Pygfx independent
Maintaining and growing wgpu and Pygfx costs time and dedication. We rely on sponsors to maintain (and grow) the project further.
-If you represent a company / group that relies on Pygfx or wgpu-pu, we kindly ask for a sponsorship. That way we can keep replying to issues, review pull request, and move Pygfx further.
+If you represent a company / group that relies on Pygfx or wgpu-pu, please consider a sponsorship to help move Pygfx further, and get the support that you need.
-## ๐ What you get
+## ๏บ How funds are used
-* Most importantly, sponsors help ensure that Pygfx is actively maintained!
-* Sponsors also get priority on bug reports and feature requests.
-* An honorable mention on the front page of pygfx.org!
-* In the top tiers, one-on-one support to help you use Pygfx to the max.
+Funds for Pygfx are primarily used to fund our developer time. This includes the work on Pygfx itself, keeping wgpu-py up-to-date with the development of WebGPU, and maintaining other dependencies like the render canvas.
+Surplus funds are used as a buffer (to create some runway), onboarding additional developers, and maybe organize an event.
-We employ a few different [sponsorship tiers](https://github.com/sponsors/pygfx).
+## ๏ What you get
-## ๐งพ Ways to sponsor Pygfx
+A sponsorship represents a support contract that offers the following benefits:
-We provide a few ways to get funds to us. If you have questions, do not hesitate to reach out to [support@pygfx.com](mailto:support@pygfx.com)!
+* Ongoing development on the project.
+* Priority on bug reports and feature requests.
+* Company logo on the front page of pygfx.org.
+* In the top tiers: in-person support to help you use Pygfx to the max.
-### Directly
-The pygfx-org is a trademark of *Almar Klein scientific computing*, based in The Netherlands.
-We can provide an invoice and you pay by bank transfer.
-Incoming funds for Pygfx are received at a dedicated bank account, and insights into how the funds are spent are published on a yearly basis.
+## ๏ข Tiers
+