diff --git a/.gitignore b/.gitignore index 132fbb944..92dd792f3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ _site .sass-cache Gemfile.lock **.DS_Store +.bundle +vendor diff --git a/_config.yml b/_config.yml index 3c860e564..8925a539b 100644 --- a/_config.yml +++ b/_config.yml @@ -14,6 +14,7 @@ exclude: - README.md - "Gemfile*" - "*.sh" + - vendor # Build settings markdown: kramdown diff --git a/css/main.scss b/css/main.scss index 0c5dc93c8..6f0e2b1f5 100755 --- a/css/main.scss +++ b/css/main.scss @@ -61,4 +61,17 @@ div.footer > div { width: 33.3%; text-align: center; min-height: 5px; -} \ No newline at end of file +} + +table { + width: 100%; + text-align: left; + border-collapse: collapse; +} +th { + text-align: center; +} +th, td { + border: 1px solid #ddd; + padding: 2px 8px; +} diff --git a/index.md b/index.md index 6edb83a85..647c85273 100644 --- a/index.md +++ b/index.md @@ -5,7 +5,7 @@ layout: wide
-### [Rust] bindings for [GTK+ 3][GTK], [Cairo], [GtkSourceView] and other [GLib]-compatible libraries +## [Rust] bindings for [GTK+ 3][GTK], [Cairo], [GtkSourceView] and other [GLib]-compatible libraries [![GTK screenshot](gtk.png)](gtk.png) @@ -33,11 +33,26 @@ layout: wide
+| Crate | Minimum supported version | +|-------|---------------------------| +| [atk](https://crates.io/crates/atk) | 2.30 | +| [cairo](https://crates.io/crates/cairo) | 1.14 | +| [gdk](https://crates.io/crates/gdk) | 3.16 | +| [gdk-pixbuf](https://crates.io/crates/gdk-pixbuf) | 2.32 | +| [gio](https://crates.io/crates/gio) | 2.44 | +| [glib](https://crates.io/crates/glib) | 2.44 | +| [gtk](https://crates.io/crates/gtk) | 3.16 | +| [pango](https://crates.io/crates/pango) | 1.38 | +| [pangocairo](https://crates.io/crates/pangocairo) | 1.0 | +| [sourceview](https://crates.io/crates/sourceview) | 3.0 | + +
+ ## Using -Prepare your system: [Requirements](http://gtk-rs.org/docs-src/requirements.html) +First, prepare your system by taking a look at the [requirements](http://gtk-rs.org/docs-src/requirements.html). -Include `gtk` and `gio` in your `Cargo.toml` and set the minimal GTK version required by your project: +Then include `gtk` and `gio` in your `Cargo.toml` and set the minimal GTK version required by your project: {% assign gtk = site.data.crates | where: "name", "gtk" %} ~~~toml @@ -68,8 +83,10 @@ Create an application, etc. use gtk::{Application, ApplicationWindow, Button}; fn main() { - let application = Application::new(Some("com.github.gtk-rs.examples.basic"), Default::default()) - .expect("failed to initialize GTK application"); + let application = Application::new( + Some("com.github.gtk-rs.examples.basic"), + Default::default(), + ).expect("failed to initialize GTK application"); application.connect_activate(|app| { let window = ApplicationWindow::new(app);