Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Apr 11, 2024
1 parent 9618abc commit 9105fc5
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 41 deletions.
Binary file modified docs/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@grapp/nextra-theme": "^0.3.2"
"@grapp/nextra-theme": "^0.3.8"
}
}
6 changes: 0 additions & 6 deletions docs/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,5 @@
"theme": {
"typesetting": "article"
}
},
"sponsor_link": {
"type": "page",
"title": "Sponsor ↗",
"href": "https://github.com/sponsors/mobily",
"newWindow": true
}
}
5 changes: 5 additions & 0 deletions docs/pages/docs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"title": "More"
},
"showcase": "",
"sponsor_link": {
"title": "Sponsor ↗",
"href": "https://github.com/sponsors/mobily",
"newWindow": true
},
"github_link": {
"title": "GitHub ↗",
"href": "https://github.com/grapp-dev/nui-components.nvim",
Expand Down
13 changes: 8 additions & 5 deletions docs/pages/docs/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Tabs } from 'nextra/components'

## Installation

To install NuiComponents, you should use your preferred plugin manager.

[Lazy](https://github.com/folke/lazy.nvim)

<Tabs items={['Lazy', 'Packer']}>
<Tabs.Tab>
```lua
{
"grapp-dev/nui-components.nvim",
Expand All @@ -12,9 +14,8 @@ To install NuiComponents, you should use your preferred plugin manager.
}
}
```

[Packer](https://github.com/wbthomason/packer.nvim)

</Tabs.Tab>
<Tabs.Tab>
```lua
use {
"grapp-dev/nui-components.nvim",
Expand All @@ -23,6 +24,8 @@ use {
}
}
```
</Tabs.Tab>
</Tabs>

## Your first UI implementation

Expand Down
49 changes: 24 additions & 25 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,28 @@ import { Homepage, Hero, Features, Feature } from '@grapp/nextra-theme';
}
/>
}
features={
<Features>
<Feature
title="Reactive UI"
description="The library automatically handles UI updates based on input and events received."
/>
<Feature
title="Flexbox"
description="NuiComponents supports a simple flexbox layout system, which provides a more flexible way to layout UIs."
/>
<Feature
title="State Management"
description="The library provides a state management system that allows managing data and UI state with ease."
/>
>
<Features>
<Feature
title="Reactive UI"
description="The library automatically handles UI updates based on input and events received."
/>
<Feature
title="Flexbox"
description="NuiComponents supports a simple flexbox layout system, which provides a more flexible way to layout UIs."
/>
<Feature
title="State Management"
description="The library provides a state management system that allows managing data and UI state with ease."
/>

<Feature
title="Extensibility"
description="Create your custom components by using Component API."
/>
<Feature
title="Reusability"
description="Reuse components between different parts of UI, reduce the amount of code you need to write."
/>
</Features>
}
/>
<Feature
title="Extensibility"
description="Create your custom components by using Component API."
/>
<Feature
title="Reusability"
description="Reuse components between different parts of UI, reduce the amount of code you need to write."
/>
</Features>
</Homepage>
3 changes: 1 addition & 2 deletions docs/theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ export default getDefaultConfig({
discord: 'https://discord.gg/Rj2V3keVS4',
docs: 'https://nui-components.grapp.dev',
logo: () => {
return <Logo image={NuiComponentsLogo} title="Nui.Components" />;
return <Logo image={NuiComponentsLogo} title="nui-components.nvim" />;
},
footer: () => {
return (
<Footer
github="https://github.com/grapp-dev/nui-components.nvim"
sections={[
{
title: 'FAQ',
Expand Down
7 changes: 5 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"extends": "@grapp/nextra-theme/default.json",
"extends": "@grapp/nextra-theme/tsconfig.json",
"include": [
"next-env.d.ts",
"./docs/**/*.ts",
"./docs/**/*.tsx"
]
],
"compilerOptions": {
"incremental": true
}
}

0 comments on commit 9105fc5

Please sign in to comment.