Skip to content

Commit

Permalink
add documents
Browse files Browse the repository at this point in the history
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
  • Loading branch information
llamerada-jp committed Jan 14, 2024
1 parent ba06f87 commit 7d966b3
Show file tree
Hide file tree
Showing 21 changed files with 169 additions and 28 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
Expand All @@ -28,3 +28,20 @@ jobs:
run: |
echo '{ "cookie_key_pair": "RmdxSzJhWUxEMmtpV0F3aHdqWStnQ0Yva0E3V0JrSGlDUGZCK3NWNTFKZz0=", "google_api_key":"DUMMY", "google_map_id":"DUMMY"}' > secrets.json
./ci.sh
test-docs:
name: Docs
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build docs
run: hugo --source docs --minify
29 changes: 12 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
# Oinari
# Oinari(オイナリ)

Oinari(オイナリ) is the PoC project using distributed algorithms. In this program, by connecting users' browsers and collaborating with each other, it is possible to diffuse the data with little use of the server.
## Overview
Oinari is a distributed operating system targeting XR (particularly MR) and IoT. Despite being referred to as an operating system, it does not require installation on specific devices; instead, it operates as a node in the system accessible through [www.oinari.io](https://www.oinari.io).

## Commands
Applications running on Oinari run on the Nodes that are part of the system, i.e., the user's device, rather than in close geographic proximity to the terminal, as in Fog computing or Edge computing. The output of the application is also reflected in other geographically nearby Nodes, specifically, objects are rendered in XR space. Therefore, Oinari's space is not limited by server resources and is scalable. Also, because programs run in geographic proximity, it is expected to improve the operational responsiveness of the application.

Prepare keys for embedding and build this project.
Applications on Oinari can continue to run on other Nodes even if some Nodes are down. Applications developed using the specialized API will have migration capabilities and will continue to run regardless of whether the Node is alive or dead. Applications are WebAssembly and language-independent (although currently only APIs for the Go language is only available).

```sh
$ cat secrets.json
{
"cookie_key_pair": "<random base64 encoded key for cookie>",
"github_client_id": "<client id of github oauth>",
"github_client_secret": "<client secret of GitHub application>",
"google_api_key": "<google api key of GitHub application>",
"google_map_id": "<ID of google map>"
}
## Getting Started

$ make setup
$ make build
```
You can try Oinari working as a web service by accessing [www.oinari.io](https://www.oinari.io). Please refer to the [User's Guide]() for login and simple usage. To develop and run an application using Oinari's features, please refer to the [Development Guide]().

## Documentation

Documentation can be browsed online [here](https://www.oinari.io/docs/).

## License

Apache License 2.0
Oinari is licensed under the Apache License 2.0. Check the [LICENSE](https://github.com/llamerada-jp/oinari/blob/main/LICENSE) for details.
7 changes: 7 additions & 0 deletions docs/assets/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ body::before {
z-index: 1;
}

.book-brand img {
-ms-interpolation-mode: nearest-neighbor;
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
}

.markdown a:visited {
color: #D9972F;
}
Expand Down
23 changes: 23 additions & 0 deletions docs/content/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Welcome
type: docs
---

# Oinari(オイナリ)

## Overview
Oinari is a distributed operating system targeting XR (particularly MR) and IoT. Despite being referred to as an operating system, it does not require installation on specific devices; instead, it operates as a node in the system accessible through [www.oinari.io](https://www.oinari.io).

Applications running on Oinari run on the Nodes that are part of the system, i.e., the user's device, rather than in close geographic proximity to the terminal, as in Fog computing or Edge computing. The output of the application is also reflected in other geographically nearby Nodes, specifically, objects are rendered in XR space. Therefore, Oinari's space is not limited by server resources and is scalable. Also, because programs run in geographic proximity, it is expected to improve the operational responsiveness of the application.

Applications on Oinari can continue to run on other Nodes even if some Nodes are down. Applications developed using the specialized API will have migration capabilities and will continue to run regardless of whether the Node is alive or dead. Applications are WebAssembly and language-independent (although currently only APIs for the Go language is only available).

For a more detailed description and technical background, please refer to the [concept]({{< relref "posts/concept.md" >}}) page.

## Getting Started

You can try Oinari working as a web service by accessing [www.oinari.io](https://www.oinari.io). Please refer to the [User tutorial]({{< relref "posts/user_tutorial.md" >}}) for login and simple usage. To develop and run an application using Oinari's features, please refer to the [Developer tutorial]({{< relref "posts/developer_tutorial.md" >}}).

## License

Oinari is licensed under the Apache License 2.0. Check the [LICENSE](https://github.com/llamerada-jp/oinari/blob/main/LICENSE) for details.
27 changes: 27 additions & 0 deletions docs/content/_index.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: ようこそ
type: docs
---

# Oinari(オイナリ)

## 概要

Oinari は XR (特に MR) や IoT をターゲットにした分散オペレーティングシステムです。
オペレーティングシステムといっても、具体的なデバイスにインストールする必要はなく、[www.oinari.io](https://www.oinari.io) へアクセスすることでシステムのノードとして動きます。

Oinari 上で動くアプリケーションは、Fog computing や Edge computing のように端末の近いところ、というよりシステムを構成する Node、つまり利用者のデバイス上で動きます。アプリケーションの実行結果は地理的に近いほかの Node にも結果が反映、具体的には XR 空間にオブジェクトがレンダリングされます。そのため、Oinari の空間はサーバリソースに制限を受けずに拡張可能です。またプログラムが地理的に近いところで動くため、アプリケーションの操作レスポンスの向上を期待しています。

Oinari 上のアプリケーションは特定の Node が停止しても他の Node で動き続けることができます。専用の API に沿って作られたアプリケーションにはマイグレーション機能が付与され、Node の生死に関わらず実行され続けます。アプリケーションは WebAssembly であり、プログラミング言語に依存しません(ただし、現在提供しているのは Go 言語向けの API だけです)。

より詳しい説明、技術的背景は[コンセプト]({{< relref "posts/concept.md" >}})のページを参照してください。

## 使い方

Web サービスとして稼働している Oinari は [www.oinari.io](https://www.oinari.io) へアクセスして試すことができます。ログインから簡単な使い方については[利用チュートリアル]({{< relref "posts/user_tutorial.md" >}})を参照してください。
Oinari の機能を利用したアプリケーションを開発、実際に動かすには[開発チュートリアル]({{< relref "posts/developer_tutorial.md" >}})を参照してください。

## ライセンス

Oinari は Apache License 2.0 で開発されています。
詳細は添付の [LICENSE](https://github.com/llamerada-jp/oinari/blob/main/LICENSE) を参照してください。
10 changes: 10 additions & 0 deletions docs/content/menu/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
headless: true
---

- [Concept]({{< relref "posts/concept.md" >}})
- [User tutorial]({{< relref "posts/user_tutorial.md" >}})
- [Developer tutorial]({{< relref "posts/developer_tutorial.md" >}})
- [API reference]({{< relref "posts/api_reference.md" >}})
- Internals
- [Crosslink]({{< relref "posts/internal/crosslink.md" >}})
10 changes: 10 additions & 0 deletions docs/content/menu/index.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
headless: true
---

- [コンセプト]({{< relref "posts/concept.md" >}})
- [利用チュートリアル]({{< relref "posts/user_tutorial.md" >}})
- [開発チュートリアル]({{< relref "posts/developer_tutorial.md" >}})
- [API reference(En)]({{< relref "posts/api_reference.md" >}})
- Internals(En)
- [Crosslink]({{< relref "posts/internal/crosslink.md" >}})
6 changes: 0 additions & 6 deletions docs/content/menu/index.md

This file was deleted.

6 changes: 6 additions & 0 deletions docs/content/posts/api_reference.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: API Reference
type: docs
---

TODO
1 change: 1 addition & 0 deletions docs/content/posts/api_reference.ja.md
6 changes: 6 additions & 0 deletions docs/content/posts/concept.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Concept
type: docs
---

TODO
6 changes: 6 additions & 0 deletions docs/content/posts/concept.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: コンセプト
type: docs
---

TODO
6 changes: 6 additions & 0 deletions docs/content/posts/developer_tutorial.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Application developer tutorial
type: docs
---

TODO
6 changes: 6 additions & 0 deletions docs/content/posts/developer_tutorial.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: アプリケーション開発者チュートリアル
type: docs
---

TODO
File renamed without changes.
1 change: 1 addition & 0 deletions docs/content/posts/internal/crosslink.ja.md
6 changes: 6 additions & 0 deletions docs/content/posts/user_tutorial.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: User tutorial
type: docs
---

TODO
6 changes: 6 additions & 0 deletions docs/content/posts/user_tutorial.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 利用チュートリアル
type: docs
---

TODO
22 changes: 18 additions & 4 deletions docs/hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
baseURL: 'https://www.oinari.app/'
baseURL: 'https://www.oinari.io/docs/'
title: 'Oinari'
theme: 'hugo-book'

enableGitInfo: true

languageCode: 'en-us'

menu:
after:
- name: 'Github'
Expand All @@ -15,5 +13,21 @@ menu:
params:
BookTheme: 'auto'
BookMenuBundle: '/menu'
BookLogo: 'logo.png'
BookRepo: https://github.com/llamerada-jp/oinari/docs
customCss: 'css/custom.css'
customCss: 'css/custom.css'

defaultContentLanguage: en
defaultContentLanguageInSubdir: false

languages:
en:
languageName: English
disabled: false
languageCode: 'en'
weight: 1
ja:
languageName: 日本語
disabled: false
languageCode: 'ja'
weight: 2
Binary file added docs/static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d966b3

Please sign in to comment.