Skip to content

Commit

Permalink
feat: docusaurus에 각 라이브러리 ts-docs 문서를 자동으로 md 파일 작성하도록 적용
Browse files Browse the repository at this point in the history
- docusaurus ts-docs 세팅
- 각 라이브러리에서 ts-docs를 자동으로 md 파일을 작성하고 문서화하도록 적용
  • Loading branch information
saseungmin committed Jul 23, 2023
1 parent 91b0747 commit b9abbba
Show file tree
Hide file tree
Showing 42 changed files with 666 additions and 142 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</a>

<a href="https://github.com/mbti-nf-team/frontend-libraries/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/mbti-nf-team/frontend-libraries?style=flat-square">
<img src="https://img.shields.io/github/license/mbti-nf-team/frontend-libraries?style=flat-square" />
</a>

## 📚 Libraries
Expand Down
5 changes: 4 additions & 1 deletion apps/docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: [
require.resolve('@docusaurus/core/lib/babel/preset'),
['@babel/preset-react', { runtime: 'automatic' }],
],
};
12 changes: 0 additions & 12 deletions apps/docs/blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions apps/docs/blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions apps/docs/blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions apps/docs/blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions apps/docs/blog/authors.yml

This file was deleted.

1 change: 1 addition & 0 deletions apps/docs/docs/api/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: "API"
31 changes: 31 additions & 0 deletions apps/docs/docs/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
id: "index"
title: "Documentation"
sidebar_label: "Readme"
sidebar_position: 0
custom_edit_url: null
---

# 🚧 WIP 🚧 @nft-team frontend-libraries

<a href="https://github.com/mbti-nf-team/frontend-libraries/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc">
<img src="https://img.shields.io/github/issues/mbti-nf-team/frontend-libraries?style=flat-square" />
</a>

<a href="https://github.com/mbti-nf-team/frontend-libraries/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/mbti-nf-team/frontend-libraries?style=flat-square" />
</a>

## 📚 Libraries
- [@nft-team/react](https://github.com/mbti-nf-team/frontend-libraries/tree/main/packages/react)
- [npm](https://www.npmjs.com/package/@nft-team/react)
- [@nft-team/core](https://github.com/mbti-nf-team/frontend-libraries/tree/main/packages/core)
- [npm](https://www.npmjs.com/package/@nft-team/core)
- [@nft-team/eslint-config](https://github.com/mbti-nf-team/frontend-libraries/tree/main/packages/eslint)
- [npm](https://www.npmjs.com/package/@nft-team/eslint-config)

## 🐛 Bug reporting
[Issues](https://github.com/mbti-nf-team/frontend-libraries/issues)

## 🔒 LICENSE
This Project is [MIT licensed](https://github.com/mbti-nf-team/frontend-libraries/blob/main/LICENSE).
9 changes: 9 additions & 0 deletions apps/docs/docs/api/modules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
id: "modules"
title: "Documentation"
sidebar_label: "Table of Contents"
sidebar_position: 0.5
hide_table_of_contents: true
custom_edit_url: null
---

2 changes: 2 additions & 0 deletions apps/docs/docs/api/modules/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: "Modules"
position: 1
176 changes: 176 additions & 0 deletions apps/docs/docs/api/modules/nft_team_core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
---
id: "nft_team_core"
title: "Module: @nft-team/core"
sidebar_label: "@nft-team/core"
sidebar_position: 0
custom_edit_url: null
---

## Functions

### checkEmpty

**checkEmpty**<`T`\>(`value?`): `T`[]

#### Type parameters

| Name |
| :------ |
| `T` |

#### Parameters

| Name | Type |
| :------ | :------ |
| `value?` | `T`[] |

#### Returns

`T`[]

#### Defined in

[utils.ts:44](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L44)

___

### checkNumber

**checkNumber**(`value?`): `number`

#### Parameters

| Name | Type |
| :------ | :------ |
| `value?` | ``null`` \| `number` |

#### Returns

`number`

#### Defined in

[utils.ts:26](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L26)

___

### emptyAThenB

**emptyAThenB**(`b`, `a?`): `string`

#### Parameters

| Name | Type |
| :------ | :------ |
| `b` | `string` |
| `a?` | ``null`` \| `string` |

#### Returns

`string`

#### Defined in

[utils.ts:34](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L34)

___

### generateArrayOfNumber

**generateArrayOfNumber**(`length`): `number`[]

#### Parameters

| Name | Type |
| :------ | :------ |
| `length` | `number` |

#### Returns

`number`[]

#### Defined in

[utils.ts:64](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L64)

___

### isEmpty

**isEmpty**<`T`\>(`value?`): `boolean`

#### Type parameters

| Name |
| :------ |
| `T` |

#### Parameters

| Name | Type |
| :------ | :------ |
| `value?` | `T`[] |

#### Returns

`boolean`

#### Defined in

[utils.ts:52](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L52)

___

### removeNullable

**removeNullable**(`value?`, `replacementValue?`): `string`

**`Description`**

`null`이나 `undefined`값이 존재하는 경우 빈문자열로 대체하거나 새로운 문자열로 대체합니다. (오로지 `string` 타입으로 반환)

```ts
const value = undefined;
const result = removeNullable(value, 'newValue');
```

**`Example`**

```ts
console.log(result); // 'newValue';
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `value?` | ``null`` \| `string` | 첫 번째 인자 `string` \| `null` \| `undefined` |
| `replacementValue?` | `string` | 두 번째 인자에 값이 존재하는 경우 첫 번째 인자가 `null` 또는 `undefined`인 경우 두번째 인자로 문자열 대체 |

#### Returns

`string`

#### Defined in

[utils.ts:14](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L14)

___

### trueOrFalse

**trueOrFalse**(`value?`): `boolean`

#### Parameters

| Name | Type |
| :------ | :------ |
| `value?` | ``null`` \| `string` \| `number` \| `boolean` |

#### Returns

`boolean`

#### Defined in

[utils.ts:36](https://github.com/mbti-nf-team/frontend-libraries/blob/91b0747/packages/core/src/utils.ts#L36)
Loading

0 comments on commit b9abbba

Please sign in to comment.