progressing

This commit is contained in:
2024-11-28 22:57:45 +01:00
parent 0c52e4adf5
commit 80ca7b6db3
4 changed files with 24 additions and 49 deletions
-19
View File
@@ -1,19 +0,0 @@
# Installation
```bash
cargo add osui
```
# Hello World
```rust title='src/main.rs'
use osui::prelude::*;
fn main() {
launch!(app());
}
fn app() -> Element {
rsx! {
text { "Hello, World!" }
}
}
```
+23 -10
View File
@@ -25,7 +25,7 @@ const config: Config = {
docs: {
sidebarPath: './sidebars.json',
editUrl:
'https://github.com/osui-rs/docs/',
'https://github.com/osui-rs/docs/tree/master/',
},
blog: false,
// blog: {
@@ -85,8 +85,8 @@ const config: Config = {
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
label: 'Installation',
to: '/docs/',
},
],
},
@@ -104,18 +104,31 @@ const config: Config = {
],
},
{
title: 'More',
title: 'Resources',
items: [
{
label: 'Crossterm',
href: 'https://github.com/crossterm-rs/crossterm',
},
{
label: 'Rust-lang',
href: 'https://rust-lang.org/',
},
],
},
// {
// title: 'More',
// items: [
// {
// label: 'Blog',
// to: '/blog',
// },
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},
// {
// label: 'GitHub',
// href: 'https://github.com/facebook/docusaurus',
// },
// ],
// },
],
copyright: `Copyright © ${new Date().getFullYear()} OSUI, Inc. Built with Docusaurus.`,
},
+1 -1
View File
@@ -16,7 +16,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/docs">
Get started
</Link>
</div>
-19
View File
@@ -1,19 +0,0 @@
# Installation
```bash
cargo add osui
```
# Hello World
```rust title='src/main.rs'
use osui::prelude::*;
fn main() {
launch!(app());
}
fn app() -> Element {
rsx! {
text { "Hello, World!" }
}
}
```