Skip to content

Commit

Permalink
docs: haracho.approver.dev の monorepo 化 (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sho Sakuma authored Aug 4, 2023
1 parent 734a50b commit 555cf37
Show file tree
Hide file tree
Showing 98 changed files with 10,756 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/content_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ドキュメント
description: ドキュメントに関するIssueを提出します。
labels: ["T-Documents"]
body:
- type: checkboxes
id: terms
attributes:
label: 提出する前に - 確認事項
description: 提出する前に確認する事項です。
options:
- label: 同一Issueはないか確認しましたか?
required: true
- type: textarea
id: description
attributes:
label: 提出内容
description: >
提出する内容を入力してください。
validations:
required: true
1 change: 1 addition & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
paths:
- src
- docs
paths-ignore:
- '**/*.md'
6 changes: 6 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
C-GitHub Actions:
- .github/workflows/*.yml

T-OreOreBot2:
- src/**

T-Documents:
- docs/**
8 changes: 8 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# OreOreBot2 ラベルファイル
# ラベル等の編集はこのファイルを編集してください。 main ブランチ更新後 CI が動き出し同期を開始します。

# T - Type
- name: 'T-OreOreBot2'
description: 'Type: OreOreBot2'
color: '8597FF'
- name: 'T-Documents'
description: 'Type: Documents'
color: 'F0FF77'

# C - Category
- name: 'C-bug'
description: 'Category: bug'
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/docs_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# OreOreBot2 Documents をビルドします。

name: Build

on:
push:
branches:
- main
paths:
- 'docs/**'
pull_request:
branches:
- main
paths:
- 'docs/**'

jobs:
build:
name: Build (haracho.approvers.dev)
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: yarn

- name: Install packages
run: yarn install --immutable
- name: Build (haracho.approvers.dev)
run: yarn run build
36 changes: 36 additions & 0 deletions .github/workflows/docs_eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# OreOreBot2 Documents に対して eslint を実行します。

name: eslint

on:
push:
branches:
- main
paths:
- 'docs/**'
pull_request:
branches:
- main
paths:
- 'docs/**'

jobs:
eslint:
name: eslint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: yarn

- name: Install packages
run: yarn install --immutable
- name: eslint
run: yarn run lint
50 changes: 47 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -54,6 +55,9 @@ web_modules/
# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand All @@ -69,9 +73,12 @@ web_modules/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# dotenv environment variable files
.env
.env.test
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand All @@ -94,6 +101,12 @@ dist
# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

Expand All @@ -109,12 +122,43 @@ dist
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

### NextJS template
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# local env files
.env*.local

# vercel
.vercel

# typescript
next-env.d.ts


# yarn v3
.pnp.*
.yarn/*
docs/.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!docs/.yarn/releases
!.yarn/sdks
!.yarn/versions

Expand Down
14 changes: 14 additions & 0 deletions docs/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
env:
node: true
es2021: true
extends:
- 'next/core-web-vitals'
- 'prettier'
- plugin:mdx/recommended
plugins:
- '@typescript-eslint'
rules:
'max-params': 'error'
settings:
'mdx/code-blocks': true
root: true
10 changes: 10 additions & 0 deletions docs/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"singleQuote": true,
"semi": true,
"trailingComma": "none",
"importOrder": ["^[./]"],
"importOrderParserPlugins": ["importAssertions", "typescript", "jsx"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
873 changes: 873 additions & 0 deletions docs/.yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-3.4.1.cjs
34 changes: 34 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# OreOreBot2 Documents

新生はらちょドキュメントサイト

## Getting Started

### Prerequisites

- [Node.js](https://nodejs.org/) v16.x or later
- [Yarn](https://yarnpkg.com/) v3

---

1. このリポジトリをクローンします。
([approvers](https://github.com/approvers) のメンバーではない場合は最初に Fork してください)

```shell
git clone https://github.com/approvers/OreOreBot2.git
```

2. **OreOreBot2 Documents** の依存関係をインストールします。

**OreOreBot2** の依存関係とは全く無関係のため、注意してください。

```shell
cd docs
yarn
```

3. 開発サーバーを起動します。

```shell
yarn dev
```
13 changes: 13 additions & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// @ts-checks

const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx'
});

module.exports = {
...withNextra(),
images: {
unoptimized: true
}
};
40 changes: 40 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "haracho.approvers.dev",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/approvers/OreOreBot2",
"author": "approvers <[email protected]>",
"description": "新生はらちょドキュメントサイト",
"license": "MIT",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --ignore-path .gitignore -w **/*.{js,ts,jsx,tsx,md,mdx}"
},
"dependencies": {
"next": "^13.1.6",
"nextra": "^2.2.14",
"nextra-theme-docs": "^2.2.14",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/node": "18.13.0",
"@types/react": "18.0.28",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"eslint": "8.33.0",
"eslint-config-next": "13.1.6",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-mdx": "^2.0.5",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.4",
"typescript": "4.9.5"
},
"packageManager": "[email protected]"
}
Empty file added docs/public/.nojekyll
Empty file.
Binary file added docs/public/assets/haracho-transmission.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/public/assets/haracho.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/public/images/bold-old.jpg
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/public/images/bold-oldharacho.jpg
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/public/images/bold.jpg
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/public/images/gif/emoji-id.gif
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/public/images/meme.jpg
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/public/images/sponsor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/src/atoms/badge.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.badge {
border: 1px;
border-radius: 0.4rem;
font-size: 75%;
padding: 0.25rem 0.5rem;
}
11 changes: 11 additions & 0 deletions docs/src/atoms/badge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { ReactNode } from 'react';

import style from './badge.module.css';

export interface BadgeProps {
children: ReactNode;
}

export const Badge = ({ children }: BadgeProps): JSX.Element => {
return <span className={style.badge}>{children}</span>;
};
15 changes: 15 additions & 0 deletions docs/src/molecules/command-arg-list.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.args {
padding-left: 1rem;
}

.args > li {
list-style: disc;
}

.parameter {
padding-left: 2rem;
}

.parameter > li {
list-style: circle;
}
Loading

0 comments on commit 555cf37

Please sign in to comment.