Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ dist/
.direnv/
.idea/
packages/*/docs

## Jekyll Docs
docs/vendor
docs/_site
docs/.bundle
docs/Gemfile.lock

27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,3 +586,30 @@ class MyService extends Effect.Service<MyService>()("MyService", {
})
}) {}
```


# Documentation

## Installation

Docs are generated with docgen, and require jekyll to be run locally:

Ensure jekyll and bundler is avaliable on your system. First, run
```bash
gem install bundler jekyll
```

or to install this in the gem user space:

```bash
gem install bundler jekyll --user-install
```

Next, navigate to the docs directory at `docs/` and run:

```bash
bundle install
bundle exec jekyll serve --livereload
```

The docs will be available at `http://localhost:4000`.
3 changes: 3 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
gem "just-the-docs"
6 changes: 3 additions & 3 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ remote_theme: mikearnaldi/just-the-docs
search_enabled: true
aux_links:
"Docs":
- "//tim-smart.github.io/effect-rx"
- "//tim-smart.github.io/effect-atom"
"API Reference":
- "//tim-smart.github.io/effect-rx/docs/rx"
- "//tim-smart.github.io/effect-atom/docs/atom"
"GitHub":
- "//github.com/tim-smart/effect-rx"
- "//github.com/tim-smart/effect-atom"
1 change: 1 addition & 0 deletions docs/atom-livestore/AtomLivestore.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: AtomLivestore.ts
nav_order: 1
parent: "@effect-atom/atom-livestore"
grand_parent: "Reference"
---

## AtomLivestore overview
Expand Down
3 changes: 2 additions & 1 deletion docs/atom-livestore/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "@effect-atom/atom-livestore"
has_children: true
permalink: /docs/atom-livestore
nav_order: 3
nav_order: 2
parent: "Reference"
---
1 change: 1 addition & 0 deletions docs/atom-livestore/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: index.ts
nav_order: 2
parent: "@effect-atom/atom-livestore"
grand_parent: "Reference"
---

## index overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom-react/Hooks.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Hooks.ts
nav_order: 1
parent: "@effect-atom/atom-react"
grand_parent: "Reference"
---

## Hooks overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom-react/ReactHydration.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: ReactHydration.ts
nav_order: 3
parent: "@effect-atom/atom-react"
grand_parent: "Reference"
---

## ReactHydration overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom-react/RegistryContext.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: RegistryContext.ts
nav_order: 4
parent: "@effect-atom/atom-react"
grand_parent: "Reference"
---

## RegistryContext overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom-react/ScopedAtom.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: ScopedAtom.ts
nav_order: 5
parent: "@effect-atom/atom-react"
grand_parent: "Reference"
---

## ScopedAtom overview
Expand Down
3 changes: 2 additions & 1 deletion docs/atom-react/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "@effect-atom/atom-react"
has_children: true
permalink: /docs/atom-react
nav_order: 4
nav_order: 3
parent: "Reference"
---
1 change: 1 addition & 0 deletions docs/atom-react/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: index.ts
nav_order: 2
parent: "@effect-atom/atom-react"
grand_parent: "Reference"
---

## index overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom-solid/Hooks.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Hooks.ts
nav_order: 1
parent: "@effect-atom/atom-solid"
grand_parent: "Reference"
---

## Hooks overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom-solid/RegistryContext.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: RegistryContext.ts
nav_order: 3
parent: "@effect-atom/atom-solid"
grand_parent: "Reference"
---

## RegistryContext overview
Expand Down
3 changes: 2 additions & 1 deletion docs/atom-solid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "@effect-atom/atom-solid"
has_children: true
permalink: /docs/atom-solid
nav_order: 5
nav_order: 4
parent: "Reference"
---
1 change: 1 addition & 0 deletions docs/atom-solid/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: index.ts
nav_order: 2
parent: "@effect-atom/atom-solid"
grand_parent: "Reference"
---

## index overview
Expand Down
3 changes: 2 additions & 1 deletion docs/atom-vue/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "@effect-atom/atom-vue"
has_children: true
permalink: /docs/atom-vue
nav_order: 6
nav_order: 5
parent: "Reference"
---
1 change: 1 addition & 0 deletions docs/atom-vue/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: index.ts
nav_order: 1
parent: "@effect-atom/atom-vue"
grand_parent: "Reference"
---

## index overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/Atom.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Atom.ts
nav_order: 1
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## Atom overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/AtomHttpApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: AtomHttpApi.ts
nav_order: 2
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## AtomHttpApi overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/AtomRef.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: AtomRef.ts
nav_order: 3
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## AtomRef overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/AtomRpc.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: AtomRpc.ts
nav_order: 4
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## AtomRpc overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/Hydration.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Hydration.ts
nav_order: 5
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## Hydration overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/Registry.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Registry.ts
nav_order: 7
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## Registry overview
Expand Down
1 change: 1 addition & 0 deletions docs/atom/Result.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Result.ts
nav_order: 8
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## Result overview
Expand Down
3 changes: 2 additions & 1 deletion docs/atom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "@effect-atom/atom"
has_children: true
permalink: /docs/atom
nav_order: 2
nav_order: 1
parent: "Reference"
---
1 change: 1 addition & 0 deletions docs/atom/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: index.ts
nav_order: 6
parent: "@effect-atom/atom"
grand_parent: "Reference"
---

## index overview
Expand Down
Loading