Skip to content

Commit 47ec027

Browse files
committed
set up docs workspace
1 parent ad2bd5b commit 47ec027

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ jobs:
3838

3939
- name: Integration Test
4040
run: bun integration
41+
42+
- name: Build Docs
43+
run: bun docs:build

.github/workflows/docs.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,8 @@ jobs:
3131
- name: Install Dependencies
3232
run: bun install
3333

34-
- name: Build Plugin
35-
run: bun run build
36-
37-
- name: Install Docs Dependencies
38-
run: bun install
39-
working-directory: docs
40-
4134
- name: Build Docs
4235
run: bun docs:build
43-
working-directory: docs
4436

4537
- name: Setup Pages
4638
uses: actions/configure-pages@v5

bun.lockb

429 KB
Binary file not shown.

docs/bun.lockb

-472 KB
Binary file not shown.

docs/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "docs",
33
"private": true,
44
"scripts": {
5-
"docs:start": "docusaurus start",
6-
"docs:build": "tsc && bun generate && docusaurus build",
7-
"generate": "jsdoc2md --files ../dist/plugin.cjs --partial partials/main.hbs --partial partials/scope.hbs -c jsdoc.conf > docs/configuration.md"
5+
"build": "tsc && bun generate && docusaurus build",
6+
"generate": "jsdoc2md --files ../dist/plugin.cjs --partial partials/main.hbs --partial partials/scope.hbs -c jsdoc.conf > docs/configuration.md",
7+
"start": "docusaurus start"
88
},
99
"devDependencies": {
1010
"@docusaurus/core": "3.3.2",
@@ -13,6 +13,7 @@
1313
"@docusaurus/tsconfig": "3.3.2",
1414
"@docusaurus/types": "3.3.2",
1515
"@mdx-js/react": "3.0.1",
16+
"ajv": "8.14.0",
1617
"clsx": "2.1.1",
1718
"jsdoc-to-markdown": "8.0.1",
1819
"prism-react-renderer": "2.3.1",

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
},
3939
"scripts": {
4040
"build": "tsup src/plugin.ts --clean --dts --external graphql",
41+
"docs:build": "bun run build && bun --filter docs build",
42+
"docs:start": "bun --filter docs start",
4143
"format": "prettier --write .",
4244
"format-check": "prettier --check .",
4345
"integration": "bun run build && graphql-codegen && ./gradlew graphqlGenerateSDL && bun test ./test/integration.test.ts",
@@ -46,5 +48,8 @@
4648
"prepare": "husky",
4749
"unit": "bun test ./test/plugin.test.ts"
4850
},
49-
"type": "module"
51+
"type": "module",
52+
"workspaces": [
53+
"docs"
54+
]
5055
}

0 commit comments

Comments
 (0)