Improve Documentation Site (#41)

* update css and snippets

* Add banner

* improve home page

* Update Banner

* cleanup

* Update font to JetBrains Mono

* Add a quick look to Home

* Simplify Home Page

* Removed banner, removed copyright notice, reduced home page
This commit is contained in:
alicesaidhi 2024-11-03 18:32:19 +01:00 committed by GitHub
parent f7dac3f63a
commit f8e84f9f8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 255 additions and 184 deletions

View file

@ -13,7 +13,7 @@ Creates and runs a function in a new stable scope.
- **Type**
```lua
```luau
function root<T...>(fn: (() -> ()) -> T...): (() -> (), T...)
```
@ -30,7 +30,7 @@ Creates a new source with the given value.
- **Type**
```lua
```luau
function source<T>(value: T): Source<T>
type Source<T> =
@ -45,7 +45,7 @@ Creates a new source with the given value.
- **Example**
```lua
```luau
local count = source(0)
count() -- 0
@ -59,7 +59,7 @@ Runs a side-effect in a new reactive scope on source update.
- **Type**
```lua
```luau
function effect(callback: () -> ())
```
@ -72,7 +72,7 @@ Runs a side-effect in a new reactive scope on source update.
- **Example**
```lua
```luau
local num = source(1)
effect(function()
@ -92,7 +92,7 @@ Derives a new source in a new reactive scope from existing sources.
- **Type**
```lua
```luau
function derive<T>(source: () -> T): () -> T
```
@ -108,7 +108,7 @@ Derives a new source in a new reactive scope from existing sources.
- **Example**
```lua
```luau
local count = source(0)
local text = derive(function() return `count: {count()}` end)