Skip to content

Commit 4bd4aa2

Browse files
Merge pull request #205 from sophie-h/sophie-h/overhaul
Overhaul website design and content
2 parents 617a9f8 + 3d07d82 commit 4bd4aa2

37 files changed

+736
-2152
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Site settings
2-
title: Gtk-rs
2+
title: gtk-rs
33
description: > # this means to ignore newlines until "baseurl:"
44
Rust bindings for GTK and GLib-based libraries
55
baseurl: "" # the subpath of your site, e.g. /blog/

_data/crates.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
[
22
{
3+
"section": "Core",
4+
35
"name": "cairo-rs",
4-
"max_version": "0.9.0"
5-
},
6-
{
7-
"name": "gdk",
8-
"max_version": "0.13.0"
9-
},
10-
{
11-
"name": "gdk-pixbuf",
12-
"max_version": "0.9.0"
13-
},
14-
{
15-
"name": "gdk-x11",
16-
"max_version": "0.9.0"
6+
"max_version": "0.14.0",
7+
"repo": "gtk-rs-core"
178
},
189
{
1910
"name": "gio",
20-
"max_version": "0.9.0"
11+
"max_version": "0.14.0",
12+
"repo": "gtk-rs-core"
2113
},
2214
{
2315
"name": "glib",
24-
"max_version": "0.10.0"
16+
"max_version": "0.14.0",
17+
"repo": "gtk-rs-core"
2518
},
2619
{
27-
"name": "gtk",
28-
"max_version": "0.9.0"
20+
"name": "pango",
21+
"max_version": "0.14.0",
22+
"repo": "gtk-rs-core"
2923
},
3024
{
31-
"name": "pango",
32-
"max_version": "0.9.0"
25+
"section": "GTK 3",
26+
27+
"name": "gtk",
28+
"max_version": "0.14.0",
29+
"repo": "gtk3-rs"
3330
},
3431
{
35-
"name": "sourceview",
36-
"max_version": "0.9.0"
32+
"section": "GTK 4",
33+
34+
"name": "gtk4",
35+
"max_version": "0.1.0",
36+
"repo": "gtk4-rs"
3737
}
3838
]

_includes/badges.html

-24
This file was deleted.

_includes/book.svg

+55
Loading

_includes/contact.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<ul class="contact">
2+
<li><a href="https://matrix.to/#/#rust:gnome.org"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Matrix</title><path d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"/></svg> #rust:gnome.org</a></li>
3+
4+
<li><a href="https://discourse.gnome.org/tag/rust"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Discourse</title><path d="M12.103 0C18.666 0 24 5.485 24 11.997c0 6.51-5.33 11.99-11.9 11.99L0 24V11.79C0 5.28 5.532 0 12.103 0zm.116 4.563c-2.593-.003-4.996 1.352-6.337 3.57-1.33 2.208-1.387 4.957-.148 7.22L4.4 19.61l4.794-1.074c2.745 1.225 5.965.676 8.136-1.39 2.17-2.054 2.86-5.228 1.737-7.997-1.135-2.778-3.84-4.59-6.84-4.585h-.008z"/></svg> discourse.gnome.org/tag/rust</a></li>
5+
6+
<li><a href="https://github.com/gtk-rs"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg> github.com/gtk-rs</a></li>
7+
8+
<li><a href="https://opencollective.com/gtk-rs"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Open Collective</title><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12c2.54 0 4.894-.79 6.834-2.135l-3.107-3.109a7.715 7.715 0 1 1 0-13.512l3.107-3.109A11.943 11.943 0 0 0 12 0zm9.865 5.166l-3.109 3.107A7.67 7.67 0 0 1 19.715 12a7.682 7.682 0 0 1-.959 3.727l3.109 3.107A11.943 11.943 0 0 0 24 12c0-2.54-.79-4.894-2.135-6.834z"/></svg> opencollective.com/gtk-rs</a></li>
9+
</ul>

_includes/crates.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<table>
2+
<thead>
3+
<tr><th>Project</th><th colspan="2">Crate</th><th>Docs</th></tr>
4+
</thead>
5+
<tbody>
6+
{% for crate in site.data.crates %}
7+
<tr>
8+
<td class="section">
9+
<a href="/{{crate.repo}}">{{crate.section}}</a>
10+
</td>
11+
<td>
12+
<a href="https://crates.io/crates/{{crate.name}}">
13+
{{crate.name}}
14+
</a>
15+
</td>
16+
<td>
17+
v{{crate.max_version}}
18+
</td>
19+
<td class="docs">
20+
<a href="/{{crate.repo}}/stable/latest/docs/{{ crate.name | replace: "-rs", "" }}">🕮</a>
21+
</td>
22+
</tr>
23+
{% endfor %}
24+
</tbody>
25+
</table>

_includes/footer.html

+5-48
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,10 @@
11
<footer class="site-footer">
22

33
<div class="wrapper">
4-
5-
<div class="footer-col-wrapper">
6-
<div class="footer-col footer-col-1">
7-
<ul class="contact-list">
8-
<li>{{ site.title }}</li>
9-
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
10-
</ul>
11-
</div>
12-
13-
<div class="footer-col footer-col-2">
14-
<ul class="social-media-list">
15-
{% if site.github_username %}
16-
<li>
17-
<a href="https://github.com/{{ site.github_username }}">
18-
<span class="icon icon--github">
19-
<svg viewBox="0 0 16 16">
20-
<path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
21-
</svg>
22-
</span>
23-
24-
<span class="username">{{ site.github_username }}</span>
25-
</a>
26-
</li>
27-
{% endif %}
28-
29-
{% if site.twitter_username %}
30-
<li>
31-
<a href="https://twitter.com/{{ site.twitter_username }}">
32-
<span class="icon icon--twitter">
33-
<svg viewBox="0 0 16 16">
34-
<path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
35-
c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
36-
</svg>
37-
</span>
38-
39-
<span class="username">{{ site.twitter_username }}</span>
40-
</a>
41-
</li>
42-
{% endif %}
43-
</ul>
44-
</div>
45-
46-
<div class="footer-col footer-col-3">
47-
<p class="text">{{ site.description }}</p>
48-
</div>
49-
</div>
50-
4+
{% include contact.html %}
5+
<a href="https://circle.gnome.org/">
6+
Proudly part of
7+
<img src="https://gitlab.gnome.org/Teams/Circle/-/raw/91de93edbb3e75eb0882d56bd466e58b525135d5/assets/button/circle-button-fullcolor.svg" alt="GNOME Circle Logo" />
8+
</a>
519
</div>
52-
5310
</footer>

_includes/head.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<head>
2-
<meta charset="utf-8">
2+
<meta charset="utf-8" />
33
<meta name="viewport" content="width=device-width initial-scale=1" />
4-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
55

66
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7-
<meta name="description" content="{{ site.description }}">
7+
<meta name="description" content="{{ site.description }}" />
88

9-
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
9+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
10+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}" />
11+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
1112
</head>

_includes/header.html

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<header class="site-header">
22

3-
<div class="wrapper">
4-
5-
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
63

4+
<div class="wrapper">
75
<nav class="site-nav">
86
<a href="#" class="menu-icon">
97
<svg viewBox="0 0 18 15">
@@ -15,17 +13,13 @@
1513

1614
<div class="trigger">
1715
<a class="page-link" href="/blog">Blog</a>
18-
<a class="page-link" href="/docs-src">Gtk-rs documentation</a>
19-
<a class="page-link" href="/docs-src/tutorial">Tutorial</a>
20-
<a class="page-link" href="/docs-src/faq">F.A.Q.</a>
21-
<a class="page-link" href="/docs-src/useful-links">Useful links</a>
22-
<a class="page-link" href="/docs-src/contact">Contact us</a>
16+
<a class="page-link" href="/faq">FAQ</a>
17+
<a class="page-link" href="/contact">Contact</a>
2318
</div>
2419
</nav>
25-
<a id="support-button" href="https://opencollective.com/gtk-rs">
26-
<svg viewBox="0 0 12 16" width="12" height="16" aria-hidden="true">
27-
<path fill-rule="evenodd" d="M9 2c-.97 0-1.69.42-2.2 1-.51.58-.78.92-.8 1-.02-.08-.28-.42-.8-1-.52-.58-1.17-1-2.2-1-1.632.086-2.954 1.333-3 3 0 .52.09 1.52.67 2.67C1.25 8.82 3.01 10.61 6 13c2.98-2.39 4.77-4.17 5.34-5.33C11.91 6.51 12 5.5 12 5c-.047-1.69-1.342-2.913-3-3z"></path>
28-
</svg> Support our work!</a>
20+
21+
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
22+
2923
</div>
3024

3125
</header>

_includes/projects.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
* [Banner Viewer](https://gitlab.gnome.org/World/design/banner-viewer)
2+
* [BrewStillery](https://gitlab.com/MonkeyLog/BrewStillery)
3+
* [Cigale](https://github.com/emmanueltouzery/cigale)
4+
* [color_blinder_gtk](https://gitlab.com/dns2utf8/color_blinder_gtk)
5+
* [Contrast](https://gitlab.gnome.org/World/design/contrast)
6+
* [Cookbook](https://github.com/MacKarp/Cookbook)
7+
* [Czkawka](https://github.com/qarmin/czkawka)
8+
* [Epicwar Downloader](https://github.com/ab0v3g4me/epicwar-downloader)
9+
* [Font Finder](https://github.com/mmstick/fontfinder)
10+
* [Fractal](https://gitlab.gnome.org/GNOME/fractal)
11+
* [Garta](https://github.com/zaari/garta)
12+
* [Gattii](https://gitlab.com/susurrus/gattii)
13+
* [GNvim](https://github.com/vhakulinen/gnvim)
14+
* [gled](https://gitlab.com/pentagonum/gled)
15+
* [glide](https://github.com/philn/glide)
16+
* [gpsami](https://gitlab.gnome.org/hub/gpsami)
17+
* [gtktranslate](https://github.com/skylinecc/gtktranslate)
18+
* [Icon Library](https://gitlab.gnome.org/World/design/icon-library)
19+
* [Iridium](https://github.com/matze/iridium)
20+
* [lognplot](https://github.com/windelbouwman/lognplot)
21+
* [Marmoset](https://github.com/sprang/marmoset)
22+
* [mcmmtk](https://github.com/pwil3058/mcmmtk)
23+
* [media-toc](https://github.com/fengalin/media-toc)
24+
* [Myxer](https://github.com/Aurailus/Myxer)
25+
* [neovim-gtk](https://github.com/daa84/neovim-gtk)
26+
* [noaa-apt](https://github.com/martinber/noaa-apt)
27+
* [pcatk](https://github.com/pwil3058/pcatk)
28+
* [Pika Backup](https://gitlab.gnome.org/World/pika-backup)
29+
* [PNMixer-rs](https://github.com/hasufell/pnmixer-rust)
30+
* [Podcasts](https://gitlab.gnome.org/World/podcasts)
31+
* [Popsicle](https://github.com/pop-os/popsicle/)
32+
* [process-viewer](https://github.com/GuillaumeGomez/process-viewer)
33+
* [Projectpad](https://github.com/emmanueltouzery/projectpad2)
34+
* [relm](https://github.com/antoyo/relm)
35+
* [rrun](https://github.com/buster/rrun)
36+
* [Shortwave](https://gitlab.gnome.org/World/Shortwave)
37+
* [Social](https://gitlab.gnome.org/World/Social)
38+
* [SolidOak](https://github.com/oakes/SolidOak)
39+
* [systemd-manager](https://gitlab.com/mmstick/systemd-manager)
40+
* [Tau](https://gitlab.gnome.org/World/Tau)
41+
* [tv-renamer](https://github.com/mmstick/tv-renamer)
42+
* [Whatschanging](https://github.com/mothsART/whatschanging)
43+

_layouts/wide.html renamed to _layouts/no-wrapper.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88
{% include header.html %}
99

10-
<div class="page-content">
11-
<div class="wrapper wide-wrapper">
10+
<div class="page-content no-wrapper">
1211
{{ content }}
13-
</div>
1412
</div>
1513

1614
{% include footer.html %}

0 commit comments

Comments
 (0)