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: { docs: {
sidebarPath: './sidebars.json', sidebarPath: './sidebars.json',
editUrl: editUrl:
'https://github.com/osui-rs/docs/', 'https://github.com/osui-rs/docs/tree/master/',
}, },
blog: false, blog: false,
// blog: { // blog: {
@@ -85,8 +85,8 @@ const config: Config = {
title: 'Docs', title: 'Docs',
items: [ items: [
{ {
label: 'Tutorial', label: 'Installation',
to: '/docs/intro', to: '/docs/',
}, },
], ],
}, },
@@ -104,18 +104,31 @@ const config: Config = {
], ],
}, },
{ {
title: 'More', title: 'Resources',
items: [ items: [
{
label: 'Crossterm',
href: 'https://github.com/crossterm-rs/crossterm',
},
{
label: 'Rust-lang',
href: 'https://rust-lang.org/',
},
],
},
// {
// title: 'More',
// items: [
// { // {
// label: 'Blog', // label: 'Blog',
// to: '/blog', // to: '/blog',
// }, // },
{ // {
label: 'GitHub', // label: 'GitHub',
href: 'https://github.com/facebook/docusaurus', // href: 'https://github.com/facebook/docusaurus',
}, // },
], // ],
}, // },
], ],
copyright: `Copyright © ${new Date().getFullYear()} OSUI, Inc. Built with 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}> <div className={styles.buttons}>
<Link <Link
className="button button--secondary button--lg" className="button button--secondary button--lg"
to="/docs/intro"> to="/docs">
Get started Get started
</Link> </Link>
</div> </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!" }
}
}
```