Skip to content

Commit f1d64ce

Browse files
feat: setup docs site (graphql#3269)
Co-authored-by: Ivan Goncharov <[email protected]>
1 parent 643144d commit f1d64ce

35 files changed

+24765
-6410
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Copied from '.gitignore', please keep it in sync.
22
/.eslintcache
3+
/.docusaurus
34
/node_modules
45
/coverage
56
/npmDist
67
/denoDist
8+
/websiteDist
79

810
# Ignore TS files inside integration test
911
/integrationTests/ts/*.ts

.eslintrc.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins:
1212
- simple-import-sort
1313
settings:
1414
node:
15-
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts']
15+
tryExtensions: ['.js', '.jsx', '.json', '.node', '.ts', '.d.ts']
1616

1717
rules:
1818
##############################################################################
@@ -691,3 +691,30 @@ overrides:
691691
import/no-nodejs-modules: off
692692
import/no-commonjs: off
693693
no-console: off
694+
- files: '**/*.jsx'
695+
parserOptions:
696+
sourceType: module
697+
ecmaFeatures:
698+
jsx: true
699+
rules:
700+
node/no-unpublished-import: off
701+
import/no-default-export: off
702+
- files: 'website/**'
703+
plugins:
704+
- 'react'
705+
extends:
706+
- 'plugin:react/recommended'
707+
- 'plugin:react-hooks/recommended'
708+
settings:
709+
react:
710+
version: detect
711+
rules:
712+
node/no-unpublished-require: off
713+
node/no-missing-import: off
714+
import/no-default-export: off
715+
import/no-commonjs: off
716+
import/no-nodejs-modules: off
717+
import/no-extraneous-dependencies: off
718+
# Ignore docusarus related webpack aliases
719+
import/no-unresolved:
720+
['error', { 'ignore': ['^@theme', '^@docusaurus', '^@generated'] }]

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ jobs:
7070
- name: Install Dependencies
7171
run: npm ci --ignore-scripts
7272

73-
- name: Check that package-lock.json doesn't have conflicts
74-
run: npm ls --depth 999
73+
# Disabled due to https://github.com/milesj/docusaurus-plugin-typedoc-api/pull/19
74+
# - name: Check that package-lock.json doesn't have conflicts
75+
# run: npm ls --depth 999
7576

7677
- name: Run npm install
7778
run: npm install --force --package-lock-only --ignore-scripts --engine-strict --strict-peer-deps
@@ -298,3 +299,24 @@ jobs:
298299
with:
299300
src_dir: denoDist
300301
target_branch: deno
302+
303+
build-website:
304+
name: Build website
305+
runs-on: ubuntu-latest
306+
steps:
307+
- name: Checkout repo
308+
uses: actions/checkout@v2
309+
with:
310+
persist-credentials: false
311+
312+
- name: Setup Node.js
313+
uses: actions/setup-node@v2
314+
with:
315+
cache: npm
316+
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
317+
318+
- name: Install Dependencies
319+
run: npm ci --ignore-scripts
320+
321+
- name: Build Docs
322+
run: npm run build:website

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
/diff-npm-package.html
99
/.eslintcache
1010
/.cspellcache
11+
/.docusaurus
1112
/node_modules
1213
/coverage
1314
/npmDist
1415
/denoDist
16+
/websiteDist

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Copied from '.gitignore', please keep it in sync.
22
/diff-npm-package.html
33
/.eslintcache
4+
/.docusaurus
45
/node_modules
56
/coverage
67
/npmDist
78
/denoDist
9+
/websiteDist

cspell.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ ignorePaths:
1010
- benchmark/github-schema.graphql
1111
- benchmark/github-schema.json
1212
overrides:
13-
- filename: '**/docs/APIReference-*.md'
13+
- filename: '**/docs-old/APIReference-*.md'
1414
ignoreRegExpList: ['/href="[^"]*"/']
15+
- filename: 'website/**'
16+
dictionaries:
17+
- fullstack
18+
words:
19+
- clsx
20+
- infima
21+
- noopener
22+
- noreferrer
23+
- xlink
1524

1625
ignoreRegExpList:
1726
- u\{[0-9a-f]{1,8}\}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)