progressing
This commit is contained in:
@@ -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
@@ -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: 'Blog',
|
|
||||||
// to: '/blog',
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
label: 'GitHub',
|
label: 'Crossterm',
|
||||||
href: 'https://github.com/facebook/docusaurus',
|
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',
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
],
|
],
|
||||||
copyright: `Copyright © ${new Date().getFullYear()} OSUI, Inc. Built with Docusaurus.`,
|
copyright: `Copyright © ${new Date().getFullYear()} OSUI, Inc. Built with Docusaurus.`,
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -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>
|
||||||
|
|||||||
@@ -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!" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user