-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added doc-website ui and initial demo contents
- Loading branch information
Showing
8 changed files
with
174 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# API index | ||
# API References | ||
|
||
## Introduction | ||
|
||
Welcome to the `Akar.js`. This page will walk you through the available API references of this library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Welcome! | ||
|
||
::: info | ||
This package is almost ready for its first release `v1.0.0-beta`. | ||
It is still in `development` and very soon will be available in npm. | ||
::: | ||
|
||
If you consider this project useful or worth the attentions of developers, then please give its GitHub repository a star. Also, you can contribute to this open-source project. Follow the guidelines to contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Get Started | ||
|
||
## Introduction | ||
|
||
Welcome to the `Akar.js`. This page will walk you through the step-by-step process of installing an npm package and provide a sample usage with a theme-based table of contents. | ||
|
||
## Table of Contents | ||
|
||
- [Installation](#installation) | ||
- [Sample Usage](#sample-usage) | ||
- [Conclusion](#conclusion) | ||
|
||
## Installation | ||
|
||
To install the npm package, follow these steps: | ||
|
||
1. Open your terminal. | ||
2. Run the following command to install the package: | ||
|
||
<Tabs> | ||
<TabItem value="npm" label="npm"> | ||
|
||
```sh | ||
npm install akar | ||
``` | ||
|
||
</TabItem> | ||
|
||
<TabItem value="yarn" label="yarn"> | ||
|
||
```sh | ||
yarn add akar | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
3. Verify the installation by checking the package version: | ||
|
||
```sh | ||
npm list akar | ||
``` | ||
|
||
## Sample Usage | ||
|
||
After installing the package, you can use it in your project as follows: | ||
|
||
1. Import the package in your JavaScript file: | ||
|
||
```ts | ||
import Akar from "akar" | ||
// or | ||
import { a } from "akar" | ||
``` | ||
|
||
2. Use the package in your code: | ||
|
||
```ts | ||
const objectSchema = a.object({ message: a.string().min(3) }) | ||
console.log(objectSchema.parse({ message: "Hello!" })) | ||
// output :=> | ||
/* | ||
{ | ||
value: { | ||
message: "Hello!" | ||
} | ||
} | ||
*/ | ||
``` | ||
|
||
## Conclusion | ||
|
||
You have successfully installed and used the npm package. Refer to the package documentation for more detailed information and advanced usage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# Guide index | ||
# Welcome to the Guide | ||
|
||
## Requirements | ||
|
||
We recommend `Node.js` >= `20.x` as the runtime to use our library without any unknown errors or bugs. We support ESM by default, but it is compatiable with CJS too. | ||
|
||
## Conclusion | ||
|
||
This pkg was developed in Node.js runtime. Still it can be used in other `node.js` like runtimes such as `bun` or `deno2` _(coming soon)_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Define Schema | ||
|
||
## Summary | ||
|
||
We need to define schema for the validation process and each schema will contain its own rules, types-casts and other utilities. | ||
|
||
## Table of Contents | ||
|
||
- [Hello Schema](#hello-schema) | ||
- [Array](#array) | ||
- [Object](#object) | ||
- [String](#string) | ||
- [Number](#number) | ||
- [Enum](#enum) | ||
- [Boolean](#boolean) | ||
- [Conclusion](#conclusion) | ||
|
||
## Hello Schema | ||
|
||
## Array | ||
|
||
## Object | ||
|
||
## String | ||
|
||
## Number | ||
|
||
## Enum | ||
|
||
## Boolean | ||
|
||
## Conclusion |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters