Skip to content

Commit 701be4b

Browse files
committed
mo tweaks
1 parent d0cac98 commit 701be4b

File tree

6 files changed

+52
-46
lines changed

6 files changed

+52
-46
lines changed

makesite.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def _split(self):
344344
# Process header
345345
level = len(line.split(" ")[0])
346346
title = line.split(" ", 1)[1]
347-
title_short = title.split("(")[0].split("<")[0].strip().replace("`", "")
347+
title_short = "".join(c for c in title if ord(c) < 256).strip()
348+
title_short = title_short.split("(")[0].split("<")[0].strip().replace("`", "")
348349
headers.append((level, title_short))
349350
parts.append((level, title_short, title))
350351
else:
@@ -366,7 +367,7 @@ def to_html(self):
366367
.replace("`", "<code>", 1)
367368
.replace("`", "</code>", 1)
368369
)
369-
ts = title_short.lower()
370+
ts = title_short.lower().replace(" ", "-")
370371
if part[0] == 1:
371372
htmlparts.append(self.date_and_tags_html)
372373
htmlparts.append("<h1>%s</h1>" % title_html)

pages/index.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
<img src='pygfx.png' width='96px' height='96px' />
2-
<span style='font-size:64px; font-family:Consolas, "DejaVu Sans Mono", Monaco, "Courier New", Courier, monospace; position: relative; top: -20px; left: 10px;'>pygfx.org</span>
2+
<span style='font-size:64px; font-family:Consolas, "DejaVu Sans Mono", Monaco, "Courier New", Courier, monospace; position: relative; top: -20px; left: 10px;'>pygfx-org</span>
33

4+
*The collective behind the Pygfx render engine and associated projects.*
45

56
## 💫 Projects
67

78
<div class=projectbox>
8-
<h3>Pygfx</h3>
99
<img class='stars-badge' src='https://img.shields.io/github/stars/pygfx/pygfx'/>
10+
<h3>Pygfx</h3>
1011
<i>A powerful render engine for Python</i><br><br>
11-
Repo: <a href="https://github.com/pygfx/pygfx">github.com/pygfx/<b>pygfx</b></a><br>
12-
Docs: <a href="https://pygfx.readthedocs.io"><b>pygfx</b>.readthedocs.io</a><br>
12+
<img src='gh32.png' height=16 /> <a href="https://github.com/pygfx/pygfx">github.com/pygfx/<b>pygfx</b></a><br>
13+
<img src='rtd.png' height=16 /> <a href="https://pygfx.readthedocs.io"><b>pygfx</b>.readthedocs.io</a><br>
1314
</div>
1415

1516
<div class=projectbox>
16-
<h3>wgpu-py</h3>
1717
<img class='stars-badge' src='https://img.shields.io/github/stars/pygfx/wgpu-py'/>
18+
<h3>wgpu-py</h3>
1819
<i>WebGPU for Python</i><br><br>
19-
Repo: <a href="https://github.com/pygfx/wgpu">github.com/pygfx/<b>wgpu</b></a><br>
20-
Docs: <a href="https://wgpu-py.readthedocs.io"><b>wgpu-py</b>.readthedocs.io</a><br>
20+
<img src='gh32.png' height=16 /> <a href="https://github.com/pygfx/wgpu">github.com/pygfx/<b>wgpu</b></a><br>
21+
<img src='rtd.png' height=16 /> <a href="https://wgpu-py.readthedocs.io"><b>wgpu-py</b>.readthedocs.io</a><br>
2122
</div>
2223

2324
<div class=projectbox>
2425
<h3>Other</h3>
2526
<i>Projects that we also contribute to</i><br><br>
26-
<a href='https://github.com/gfx-rs/wgpu-native'>wgpu-native</a><br>
27-
<a href='https://github.com/vispy/jupyter_rfb'>jupyter_rfb</a><br>
28-
<a href='https://github.com/pygfx/pylinalg'>pylinalg</a>
27+
<img src='gh32.png' height=16 /> <a href='https://github.com/gfx-rs/wgpu-native'>wgpu-native</a><br>
28+
<img src='gh32.png' height=16 /> <a href='https://github.com/vispy/jupyter_rfb'>jupyter_rfb</a><br>
29+
<img src='gh32.png' height=16 /> <a href='https://github.com/pygfx/pylinalg'>pylinalg</a>
2930
</div>
3031

3132

3233
## 🚀 Mission
3334

3435
We are dedicated to bring powerful and reliable visualization to the Python world.
35-
36-
We believe that wgpu is the future for graphics and bring it to Python with the wgpu-py library. On top of that, we build pygfx: a modern, versatile, and Pythonic rendering engine.
37-
36+
We believe that WebGPU is the future for graphics and bring it to Python with the wgpu-py library. On top of that, we build Pygfx: a modern, versatile, and Pythonic rendering engine.
3837
Pygfx provides a basis on top of which a multitude of visualizations become possible. From applications to libraries, from games to plotting.
3938

4039

4140
<a name='sponsors' />
4241

4342
## ❤️ Current sponsors
4443

45-
Pygfx and wgpu are free. To develop these projects we rely on [funding from our sponsors](sponsor.html). The more groups "chip in", the more time we can spend on moving the projects forwards. Recurring funding is especially welcome.
44+
Pygfx and wgpu are open source and free to use. To develop these projects we rely on funding from our sponsors. The more groups "chip in", the more time we can spend on moving the projects forwards. Recurring funding is especially welcome. [Learn more ...](sponsor.html)
4645

4746
<div class=sponsorbox>
4847
<h3>Ramona optics</h3>

pages/sponsor.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# Sponsoring Pygfx
44

55

6-
## 🧑‍🤝‍🧑 Keep pygfx independent and active
6+
## 🧑‍🤝‍🧑 Keep Pygfx independent and active
77

8-
Maintaining and growing wgpu and pygfx costs time and dedication. We rely on sponsors to maintain (and grow) the project further.
9-
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.
8+
Maintaining and growing wgpu and Pygfx costs time and dedication. We rely on sponsors to maintain (and grow) the project further.
9+
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.
1010

1111

1212
## 🎁 What you get
1313

14-
* Most importantly, sponsors help ensure that pygfx is actively maintained!
14+
* Most importantly, sponsors help ensure that Pygfx is actively maintained!
1515
* Sponsors also get priority on bug reports and feature requests.
1616
* An honorable mention on the front page of pygfx.org!
1717
* In the top tiers, one-on-one support to help you use Pygfx to the max.
@@ -25,18 +25,19 @@ We provide a few ways to get funds to us. If you have questions, do not hesitate
2525

2626
### Directly
2727

28-
You can sponsor us directly via *Almar Klein scientific computing*, based in The Netherlands. We can provide an invoice and you pay by bank transfer.
29-
Incoming funds for Pygfx are received at a dedicated bank account, and insights into how the funds are spent will be published on a yearly basis.
28+
The pygfx-org is a trademark of *Almar Klein scientific computing*, based in The Netherlands.
29+
We can provide an invoice and you pay by bank transfer.
30+
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.
3031

3132

32-
### Via OpenCollective
33+
### Via Github
3334

34-
You can sponsor us via [https://opencollective.com/pygfx](https://opencollective.com/pygfx). These funds and how they are spent are publicly visible.
35+
You can also sponsor via Github's sponsor system: [https://github.com/sponsors/pygfx](https://github.com/sponsors/pygfx). These funds are payed out by GitHub to the same bank account as mentioned above.
3536

3637

37-
### Via Github
38+
### Via OpenCollective
3839

39-
You can also sponsor via Github's sponsor system: https://github.com/sponsors/pygfx
40+
You can sponsor us via [https://opencollective.com/pygfx](https://opencollective.com/pygfx). These funds and how they are spent are publicly visible.
4041

4142

4243
## 💰 How funds are spent

static/gh32.png

931 Bytes
Loading

static/rtd.png

28.4 KB
Loading

style.css

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ body {
4141
font-family: Ubuntu,"Helvetica Neue",Arial,sans-serif;
4242
color: #404040;
4343
font-weight: normal;
44-
background: #fcfcfc;
44+
background: #fafafa;
4545
}
4646
.content {
4747
box-sizing: border-box;
@@ -53,11 +53,10 @@ body {
5353
margin: 0;
5454
margin-top: 1em;
5555

56-
/*
57-
background: #fcfcfc;
58-
*/
59-
border-radius: 6px;
60-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
56+
background: #fff;
57+
border: 1px solid #aaa;
58+
border-radius: 8px;
59+
xx-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
6160
}
6261
p, li {
6362
line-height: 150%;
@@ -68,28 +67,34 @@ p, li {
6867
width: 100%;
6968
max-width: none;
7069

71-
background: #f8f8f8;
7270
padding: 0.5em 1em;
7371
overflow: hidden;
7472
white-space: nowrap;
7573

76-
border-radius: 6px;
77-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
74+
background: #fff;
75+
border: 1px solid #aaa;
76+
border-radius: 8px;
77+
xx-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
7878
}
7979

8080
.projectbox, .sponsorbox, .profilebox {
8181
box-sizing: border-box;
8282
display: inline-block;
8383
position: relative; /* so stuff can be abs-positined inside */
8484
width: 100%;
85-
background: #f1f1f1;
86-
padding: 1em 1em;
85+
line-height: 1.5;
86+
background: #fcfcfc;
87+
padding: 20px;
8788
margin: 0.5em;
88-
border-radius: 6px;
89+
border: 1px solid #ccc;
90+
border-radius: 8px;
8991
}
9092
.profilebox {
9193
text-align: center;
9294
}
95+
.projectbox, .sponsorbox {
96+
padding-top: 0;
97+
}
9398
.projectbox h3, .sponsorbox h3 {
9499
color:#444;
95100
font-size: 110%;
@@ -102,14 +107,14 @@ p, li {
102107
img.stars-badge {
103108
position: absolute;
104109
display: block;
105-
top: 7px;
106-
right: 7px;
110+
top: 10px;
111+
right: 10px;
107112
}
108113

109114
img.profile {
110-
width: 100px;
111-
height: 100px;
112-
border-radius: 50px;
115+
width: 80px;
116+
height: 80px;
117+
border-radius: 40px;
113118
}
114119

115120
@media screen and (min-width: 500px) {
@@ -120,7 +125,7 @@ img.profile {
120125
width: 450px;
121126
}
122127
.profilebox {
123-
width: 150px;
128+
width: 130px;
124129
}
125130
}
126131
@media screen and (min-width: 1300px) {
@@ -228,15 +233,15 @@ code {
228233
padding: 0em 1em;
229234
}
230235
h1, h2, h3, h4 {
231-
color: #999;
236+
color: #555;
232237
font-family: Consolas, "DejaVu Sans Mono", Monaco, "Courier New", Courier, monospace;
233238
}
234239
a.header:hover {
235240
color: #2A4;
236241
}
237242
h2 {
238243
margin-top: 1.3em;
239-
border-bottom: 1px solid rgba(20, 100, 40, 0.3);
244+
xx-border-bottom: 1px solid rgba(20, 100, 40, 0.3);
240245
}
241246
h2 code, h3 code, h4 code {
242247
color: #369;

0 commit comments

Comments
 (0)