diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 00000000..56abb065 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +max_width = 80 # This matches the maximum line length used in Dart diff --git a/README.md b/README.md index cd5c0fbf..6dd3d226 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ![Preview](https://github.com/cunarist/rinf/assets/66480156/5c9a7fb6-e566-4c4e-bd77-d72c1c064d6c) -Rinf is a production-ready framework for creating beautiful and performant cross-platform apps using Flutter and Rust with batteries fully included. Simply add this framework to your app project, and you're all set to write Flutter and Rust together! +Rinf is a framework for creating beautiful and performant cross-platform apps using Flutter and Rust with batteries fully included. Simply add this framework to your app project, and you're all set to write Flutter and Rust together! ## 🎮 Demo diff --git a/documentation/docs/state-management.md b/documentation/docs/state-management.md index 718efbfc..cc644189 100644 --- a/documentation/docs/state-management.md +++ b/documentation/docs/state-management.md @@ -16,7 +16,7 @@ Several crates on `crates.io` provide building blocks for implementing the actor Here’s a basic example using the [`actix`](https://github.com/actix/actix) crate, a popular choice for the actor model: -```rust +```rust title="Rust" use actix::prelude::*; // this is our Message diff --git a/documentation/docs/stylesheets/extra.css b/documentation/docs/stylesheets/extra.css new file mode 100644 index 00000000..f6430a3e --- /dev/null +++ b/documentation/docs/stylesheets/extra.css @@ -0,0 +1,13 @@ +html { + overflow-y: scroll; +} + +.md-header { + background-color: transparent !important; + position: relative; + box-shadow: none; +} + +.md-search { + padding: 4px; +} diff --git a/documentation/mkdocs.yml b/documentation/mkdocs.yml index be803c04..9329f121 100644 --- a/documentation/mkdocs.yml +++ b/documentation/mkdocs.yml @@ -9,7 +9,7 @@ theme: palette: # Palette toggle for light mode - media: "(prefers-color-scheme: light)" - primary: grey + primary: white scheme: default toggle: icon: material/brightness-7 @@ -21,7 +21,6 @@ theme: icon: material/brightness-4 features: - navigation.instant - - navigation.top - navigation.tracking - navigation.path - navigation.footer @@ -59,4 +58,7 @@ extra: - icon: fontawesome/brands/twitter link: https://twitter.com/cunarist +extra_css: + - stylesheets/extra.css + copyright: Copyright © 2024 Cunarist diff --git a/documentation/overrides/home.html b/documentation/overrides/home.html index d597b887..4035ad35 100644 --- a/documentation/overrides/home.html +++ b/documentation/overrides/home.html @@ -1,8 +1,14 @@ -{% extends "main.html" %} +{% extends "base.html" %} {% block tabs %}