Skip to content

Commit d90f42a

Browse files
committed
doc: setup docs pages
1 parent 775ee58 commit d90f42a

File tree

18 files changed

+11703
-919
lines changed

18 files changed

+11703
-919
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ updates:
1515
schedule:
1616
interval: daily
1717
time: "04:00"
18-
open-pull-requests-limit: 10
18+
open-pull-requests-limit: 10
19+
- package-ecoosystem: npm
20+
directory: "/docs"
21+
schedule:
22+
interval: "daily"

.github/workflows/pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Pages
2+
3+
on:
4+
push:
5+
branches: "main"
6+
paths:
7+
- "docs/**"
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: "20"
27+
- run: npm ci
28+
working-directory: docs
29+
- run: npm run build
30+
working-directory: docs
31+
env:
32+
BASE_PATH: /typhoon
33+
- uses: peaceiris/actions-gh-pages@v4
34+
if: github.ref == 'refs/heads/main'
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./docs/out
38+
keep_files: true
39+

docs/.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: ['next', 'next/core-web-vitals', 'plugin:prettier/recommended'],
4+
ignorePatterns: ['src/components/ui/**/*.ts', 'src/components/ui/**/*.tsx'],
5+
overrides: [
6+
{
7+
files: ['**/*.tsx'],
8+
rules: {
9+
'react/prop-types': 'off'
10+
}
11+
}
12+
],
13+
settings: {
14+
react: {
15+
version: 'detect' // Tells eslint-plugin-react to automatically detect the version of React to use
16+
}
17+
},
18+
globals: {
19+
Atomics: 'readonly',
20+
SharedArrayBuffer: 'readonly'
21+
},
22+
parserOptions: {
23+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
24+
sourceType: 'module', // Allows for the use of imports
25+
ecmaFeatures: {
26+
jsx: true // Allows for the parsing of JSX
27+
}
28+
},
29+
rules: {}
30+
}

docs/architecture.png

-63 KB
Binary file not shown.

docs/index.html

Lines changed: 0 additions & 913 deletions
This file was deleted.

docs/jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
roots: ['<rootDir>/src'],
3+
transform: {
4+
'^.+\\.tsx?$': 'ts-jest'
5+
},
6+
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
7+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
8+
}

docs/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

docs/next.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import nextra from 'nextra'
2+
3+
const withNextra = nextra({
4+
theme: 'nextra-theme-docs',
5+
themeConfig: './src/theme.config.tsx',
6+
latex: true,
7+
search: {
8+
codeblocks: false
9+
}
10+
})
11+
12+
export default withNextra({
13+
reactStrictMode: true,
14+
output: 'export',
15+
basePath: process.env.BASE_PATH ?? '',
16+
images: {
17+
unoptimized: true
18+
}
19+
})

0 commit comments

Comments
 (0)