Skip to content

Commit

Permalink
docs preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspecky committed Jan 11, 2024
1 parent 02ee277 commit 03819d8
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 150 deletions.
36 changes: 24 additions & 12 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,36 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "LuauEvent",
description: "This is the description",
base: "/LuauEvent/",
lang: 'en-US',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
{ text: 'Into', link: '/intro/introduction' },
{ text: 'API Reference', link: '/classes/bindable' }
],

sidebar: [
{
text: 'Examples',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
],
sidebar: {
'/intro/': [
{
text: 'Introduction',
items: [
{ text: 'Description', link: '/intro/introduction' },
{ text: 'Features', link: '/intro/features' }
]
},
],
'/classes/': [
{
text: 'Classes',
items: [
{ text: 'Bindable', link: '/classes/bindable' },
{ text: 'Signal', link: '/classes/signal' },
{ text: 'Connection', link: '/classes/connection' },
]
},
],
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/Aspecky/LuauEvent' }
Expand Down
49 changes: 0 additions & 49 deletions docs/api-examples.md

This file was deleted.

29 changes: 29 additions & 0 deletions docs/classes/bindable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
outline: deep
---

# Bindable
```lua
type Event<T...> = {
Signal: Signal<T...>,
RBXScriptConnection: RBXScriptConnection?,

Fire: (self: Event<T...>, T...) -> (),
DisconnectAll: (self: Event<T...>) -> (),
Destroy: (self: Event<T...>) -> (),
}
```

## Properties

### Signal

### RBXScriptConnection

## Methods

### Fire

### DisconnectAll

### Destroy
23 changes: 23 additions & 0 deletions docs/classes/connection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
outline: deep
---

# Connection

```lua
type Connection<U...> = {
Connected: boolean,
Disconnect: (self: Connection<U...>) -> (),
Reconnect: (self: Connection<U...>) -> (),
}
```

## Properties

### Connected

## Methods

### Disconnect

### Reconnect
20 changes: 20 additions & 0 deletions docs/classes/signal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
outline: deep
---

# Signal
```lua
type Signal<T...> = {
Connect: <U...>(self: Signal<T...>, fn: (...unknown) -> (), U...) -> Connection<U...>,
Once: <U...>(self: Signal<T...>, fn: (...unknown) -> (), U...) -> Connection<U...>,
Wait: (self: Signal<T...>) -> T...,
}
```

## Methods

### Connect

### Once

### Wait
7 changes: 3 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
layout: home

hero:
name: "LuauEvent"
text: "LuauEvent"
tagline: My great project tagline
text: LuauEvent
tagline: A highly optimized Luau implementation of BindableEvent
actions:
- theme: brand
text: Markdown Examples
Expand All @@ -15,7 +14,7 @@ hero:
link: /api-examples

features:
- title: Feature A
- title: ⚡ Optimized
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
Expand Down
Empty file added docs/intro/features.md
Empty file.
1 change: 1 addition & 0 deletions docs/intro/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Why?
Empty file added docs/intro/performance.md
Empty file.
85 changes: 0 additions & 85 deletions docs/markdown-examples.md

This file was deleted.

0 comments on commit 03819d8

Please sign in to comment.