Skip to content

Commit

Permalink
update docs css and other issues
Browse files Browse the repository at this point in the history
  • Loading branch information
2jammers committed Jun 11, 2024
1 parent 8cb5215 commit 6dd7ef9
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 43 deletions.
17 changes: 17 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap');

:root {
--vp-c-bg: #e6e6e6;
--vp-c-bg-alt: #d2d2d2;
--vp-c-brand-1: #4da134;
--vp-c-brand-2: #69a856;
--vp-c-brand-3: #75b861;
}

.dark {
--vp-c-bg: #121212;
--vp-c-bg-alt: #161616;
--vp-c-brand-1: #8fda78;
--vp-c-brand-2: #69a856;
--vp-c-brand-3: #75b861;
}
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import Theme from 'vitepress/theme'
import './style.css'
import './custom.css'

export default {
extends: Theme,
Expand Down
8 changes: 4 additions & 4 deletions docs/api/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ The framework's client-sided interface.

## Properties

### Player <Badge type="tip" text="read only" />
### `Player` <Badge type="tip" text="read only" />

A simple reference to the [Players.LocalPlayer](https://create.roblox.com/docs/reference/engine/classes/Players#LocalPlayer)

* [**Player**](https://create.roblox.com/docs/reference/engine/classes/Player)

---

### PlayerGui <Badge type="tip" text="read only" />
### `PlayerGui` <Badge type="tip" text="read only" />

A simple reference to the [Player.PlayerGui](https://create.roblox.com/docs/reference/engine/classes/Player#PlayerGui)

* [**PlayerGui**](https://create.roblox.com/docs/reference/engine/classes/PlayerGui)

---

### Network <Badge type="tip" text="read only" />
### `Network` <Badge type="tip" text="read only" />

A simple reference to the network contstructor.

* [**Network**](/api/network/)

## Functions

### Character
### `Character`

Gets the players current character model; if it doesn't exist the thread will yield until it does.

Expand Down
12 changes: 6 additions & 6 deletions docs/api/index.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# LuminFramework (Root)
# LuminFramework

The main class of LuminFramework.

## Properties

### Promise <Badge type="tip" text="read only" />
### `Promise` <Badge type="tip" text="read only" />

A reference to evaera's Promise module.

* [**Promise**](https://eryn.io/roblox-lua-promise/)

## Functions

### Server <Badge type="danger" text="server" />
### `Server` <Badge type="danger" text="server" />

Gets the server-sided interface of LuminFramework.

Expand All @@ -22,7 +22,7 @@ Gets the server-sided interface of LuminFramework.

---

### Client <Badge type="danger" text="client" /> <Badge type="warning" text="yields" />
### `Client` <Badge type="danger" text="client" /> <Badge type="warning" text="yields" />

Gets the client-sided interface of LuminFramework.

Expand All @@ -32,7 +32,7 @@ Gets the client-sided interface of LuminFramework.

---

### Load
### `Load`

Imports any modules of the parent provided. Non-modules will be filtered out automatically.

Expand All @@ -50,7 +50,7 @@ Allows you to filter through a module, return `false` for it to not be imported

---

### Signal
### `Signal`

Creates/references a signal of the given name, create a new anonymous signal by leaving the name blank.

Expand Down
8 changes: 4 additions & 4 deletions docs/api/network/client/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ A client-sided network event.

## Properties

### Reliable <Badge type="tip" text="read only" />
### `Reliable` <Badge type="tip" text="read only" />

Whether or not the network event uses a reliable remote event.

* **boolean**

## Methods

### Fire
### `Fire`

Fires an event which sends data to the server, equivalent to [RemoteEvent:FireServer](https://create.roblox.com/docs/reference/engine/classes/RemoteEvent#FireServer)

Expand All @@ -27,7 +27,7 @@ The data that should be sent to the server

---

### FireNow
### `FireNow`

Same as `Fire` but does not batch the call / wait until the next frame

Expand All @@ -42,7 +42,7 @@ The data that should be sent to the server

---

### Listen
### `Listen`

Listens for the network controller to be fired by the server, then runs the provided function. Note that this can only be run once, it will error if run more than once.

Expand Down
4 changes: 2 additions & 2 deletions docs/api/network/client/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ A client-sided network function.

## Properties

### Reliable <Badge type="tip" text="read only" />
### `Reliable` <Badge type="tip" text="read only" />

Whether or not the network function uses a reliable remote event.

* **boolean**

## Methods

### InvokeAsync
### `InvokeAsync`

Invokes the server, equivalent to [RemoteFunction:InvokeServer](https://create.roblox.com/docs/reference/engine/classes/RemoteFunction#InvokeServer). Returns a future (promise).

Expand Down
4 changes: 2 additions & 2 deletions docs/api/network/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The library to create network events and functions.

## Functions

### Event
### `Event`

The contstructor for creating new network events.

Expand All @@ -22,7 +22,7 @@ Whether or not the object created is reliable. Defaults to true

---

### Function
### `Function`

The contstructor for creating new network functions.

Expand Down
16 changes: 8 additions & 8 deletions docs/api/network/server/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ A server-sided network event.

## Properties

### Reliable <Badge type="tip" text="read only" />
### `Reliable` <Badge type="tip" text="read only" />

Whether or not the network event uses a reliable remote event.

* **boolean**

## Methods

### Fire
### `Fire`

Fires an event which sends data to the client, equivalent to [RemoteEvent:FireClient](https://create.roblox.com/docs/reference/engine/classes/RemoteEvent#FireClient).

Expand All @@ -38,7 +38,7 @@ The data that should be sent to the client

---

### FireNow
### `FireNow`

Same as `Fire` but does not batch the call / wait until the next frame

Expand All @@ -56,7 +56,7 @@ The data that should be sent to the client

---

### FireAll
### `FireAll`

Fires an event which sends data to every client connected to the server, equivalent [RemoteEvent:FireAllClients](https://create.roblox.com/docs/reference/engine/classes/RemoteEvent#FireAllClients).

Expand All @@ -71,7 +71,7 @@ The data that should be sent to each player

---

### FireExcept
### `FireExcept`

Fires an event which sends data to every client connected to the server, except for players defined in the `except` parameter.

Expand All @@ -89,7 +89,7 @@ The data that should be sent to each player except `except`

---

### FireFilter
### `FireFilter`

Fires an event with a filter function, and runs the provided filter on every player in the server.

Expand All @@ -107,7 +107,7 @@ The data that should be sent to each player that meets the threshold for `filter

---

### Listen
### `Listen`

Listens for the network controller to be fired by the client, then runs the provided function.

Expand All @@ -125,7 +125,7 @@ A table of the valid types that should be recieved by the client. This is option

---

### SetRateLimit
### `SetRateLimit`

Sets a rate limit that is applied when firing a network event from the client.

Expand Down
6 changes: 3 additions & 3 deletions docs/api/network/server/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ A server-sided network function.

## Properties

### Reliable <Badge type="tip" text="read only" />
### `Reliable` <Badge type="tip" text="read only" />

Whether or not the network function uses a reliable remote event.

* **boolean**

## Methods

### OnInvoke
### `OnInvoke`

Recieves an invoke from the client, and runs the callback function which returns some data. Equivalent to [RemoteFunction.OnServerInvoke](https://create.roblox.com/docs/reference/engine/classes/RemoteFunction#OnServerInvoke).

Expand All @@ -27,7 +27,7 @@ The callback function to run on invoke, must return at least 1 value.

---

### SetRateLimit
### `SetRateLimit`

Sets a rate limit that is applied when invoking the network function from the client.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The framework's server-sided interface.

## Properties

### Network <Badge type="tip" text="read only" />
### `Network` <Badge type="tip" text="read only" />

A simple reference to the network contstructor.

Expand Down
4 changes: 2 additions & 2 deletions docs/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ From here, you can access run context specific items like the player gui.

To start a successful project, we recommend using:

`jsdotlua/react-lua`
`jsdotlua/react-roblox`
`jsdotlua/react-lua`\
`jsdotlua/react-roblox`\
`sleitnick/trove`

... and of course Lumin Framework.
19 changes: 10 additions & 9 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ hero:
tagline: A lightning fast & amazing game framework
actions:
- theme: brand
text: Documentation
text: Guide
link: /guides/
- theme: alt
text: API Reference
link: /api/

features:
- icon:
src: https://avatars.githubusercontent.com/u/118916772?v=4
title: AridAjd, 4.5⭐
details: <i>'Using the framework, you literally have no worries. The internal is heavily type-checked and also gives you the ability to keep your code to be strict on types. No bloat, lightweight on performance, straightforward API and does proper implementation of promises to improve development experience. Overall, a solid framework!'</i>
- icon:
src: https://avatars.githubusercontent.com/u/110689336?v=4
title: GameboyTheDev, 4⭐
details: <i>'Lumin Framework is the best I have seen so far in making networking as simple and straightforward as possible! No need for having to create, locate and store remotes to network as Lumin Framework handles all of that for you! Makes the development process more convenient and fun to work with! Would recommend!'</i>
- icon:
title: Efficient
details: Does nothing else in the background and allocates as much resources as possible to more important jobs
- icon: 🦺
title: Strict typing
details: Everything is strictly typed internally, which means that it is less error prone and more reliable
- icon: 🎨
title: Customizable
details: Allows for any programming configuration, architecture, and allows for more customizable networking
---

2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installation

### GitHub
### GitHub / Roblox

1. Navigate to the latest release of Lumin Framework on [GitHub](https://github.com/lumin-dev/LuminFramework/releases/)
2. Download `Standalone.rbxm`
Expand Down

0 comments on commit 6dd7ef9

Please sign in to comment.