Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup docs site #3269

Merged
merged 54 commits into from Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
5372df4
Update deps
IvanGoncharov Dec 23, 2021
ef013f5
ignore temp
saihaj Aug 1, 2021
57ba703
feat: setup docusarus site
saihaj Aug 22, 2021
aee192d
attempt to generate tsdoc
saihaj Aug 25, 2021
25ad54e
trigger build
saihaj Aug 25, 2021
9e24999
build: add docusarus typedoc plugin
saihaj Aug 26, 2021
c16ecfa
build: upgrade docusarus and typedoc plugin
saihaj Sep 8, 2021
a114538
more docs
saihaj Sep 21, 2021
73760bc
fix: temp
saihaj Sep 21, 2021
c7906e2
scripts and prettier
saihaj Sep 21, 2021
ff83564
temp fix for api path
saihaj Sep 21, 2021
298e43c
update typedoc plugin and add slug
saihaj Oct 14, 2021
201a4bf
fix typos
saihaj Oct 14, 2021
1d71f57
restructure
saihaj Nov 13, 2021
a89dca4
remove readme
saihaj Nov 13, 2021
ef916ea
remove babel preset
saihaj Nov 13, 2021
d3d5d9d
eslint and prettier changes
saihaj Nov 13, 2021
a06f6a7
make cspell happy
saihaj Nov 13, 2021
13d4483
update ignore files
saihaj Nov 18, 2021
19271d0
update logo
saihaj Nov 18, 2021
06d4194
update footer text
saihaj Nov 18, 2021
7f44be5
update browserlist
saihaj Nov 18, 2021
e32f281
update prettierrc
saihaj Nov 18, 2021
f949c40
add cspell dict
saihaj Nov 18, 2021
626d795
move sidebar
saihaj Nov 18, 2021
185250b
remove cspell dict
saihaj Nov 22, 2021
23d1547
use exact versions
saihaj Nov 22, 2021
ae2ddbc
remove some files that should be ignored
saihaj Nov 22, 2021
051ef54
remove quotes
saihaj Nov 22, 2021
14895b9
reorder items in eslint
saihaj Nov 22, 2021
d814179
ci: build site
saihaj Nov 22, 2021
2c8e258
package-lock
saihaj Nov 22, 2021
996dc71
update browserlist
saihaj Nov 22, 2021
7f8aa4e
Update docusaurus.config.js
saihaj Nov 23, 2021
4472fba
isolate
saihaj Nov 23, 2021
d82ac08
udpate ignore files
saihaj Nov 23, 2021
54725c6
update linting configs
saihaj Nov 23, 2021
1d37f2b
react hooks plugin
saihaj Nov 23, 2021
4b0070d
Remove 'babel-eslint'
IvanGoncharov Nov 28, 2021
0e0847e
build docs into "docsDist"
IvanGoncharov Nov 28, 2021
9313017
Group eslint rules
IvanGoncharov Nov 28, 2021
c2f4a70
cleanup .gitignore
IvanGoncharov Dec 2, 2021
2d3c370
Update deps
IvanGoncharov Dec 2, 2021
10a04de
Sync ignore files
IvanGoncharov Dec 3, 2021
bf0fbeb
update deps
IvanGoncharov Dec 4, 2021
93a2b54
review changes
IvanGoncharov Dec 26, 2021
9d0e00d
update deps
IvanGoncharov Jan 23, 2022
84968d5
order imports
IvanGoncharov Jan 23, 2022
9cbffc6
docs: add 'hello.png'
IvanGoncharov Jan 23, 2022
f49175a
`docs/ => website/`
IvanGoncharov Jan 24, 2022
b9c8fed
Move 'tutorials' to 'docs/tutorials'
IvanGoncharov Jan 24, 2022
36ceb81
Switch react to 16.14.0 to solve conflict with @mdx-js/runtime
IvanGoncharov Jan 25, 2022
1eb8bd0
Update deps
IvanGoncharov Jan 26, 2022
2c153d3
ci: temporary disable check for conflicts in `package-lock.json`
IvanGoncharov Jan 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
@@ -1,9 +1,11 @@
# Copied from '.gitignore', please keep it in sync.
/.eslintcache
/.docusaurus
/node_modules
/coverage
/npmDist
/denoDist
/websiteDist

# Ignore TS files inside integration test
/integrationTests/ts/*.ts
29 changes: 28 additions & 1 deletion .eslintrc.yml
Expand Up @@ -12,7 +12,7 @@ plugins:
- simple-import-sort
settings:
node:
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts']
tryExtensions: ['.js', '.jsx', '.json', '.node', '.ts', '.d.ts']

rules:
##############################################################################
Expand Down Expand Up @@ -691,3 +691,30 @@ overrides:
import/no-nodejs-modules: off
import/no-commonjs: off
no-console: off
- files: '**/*.jsx'
parserOptions:
sourceType: module
ecmaFeatures:
jsx: true
rules:
node/no-unpublished-import: off
import/no-default-export: off
- files: 'website/**'
plugins:
- 'react'
extends:
- 'plugin:react/recommended'
- 'plugin:react-hooks/recommended'
settings:
react:
version: detect
rules:
node/no-unpublished-require: off
node/no-missing-import: off
import/no-default-export: off
import/no-commonjs: off
import/no-nodejs-modules: off
import/no-extraneous-dependencies: off
# Ignore docusarus related webpack aliases
import/no-unresolved:
['error', { 'ignore': ['^@theme', '^@docusaurus', '^@generated'] }]
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -70,8 +70,9 @@ jobs:
- name: Install Dependencies
run: npm ci --ignore-scripts

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

- name: Run npm install
run: npm install --force --package-lock-only --ignore-scripts --engine-strict --strict-peer-deps
Expand Down Expand Up @@ -298,3 +299,24 @@ jobs:
with:
src_dir: denoDist
target_branch: deno

build-website:
name: Build website
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v2
with:
cache: npm
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}

- name: Install Dependencies
run: npm ci --ignore-scripts

- name: Build Docs
run: npm run build:website
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -8,7 +8,9 @@
/diff-npm-package.html
/.eslintcache
/.cspellcache
/.docusaurus
/node_modules
/coverage
/npmDist
/denoDist
/websiteDist
2 changes: 2 additions & 0 deletions .prettierignore
@@ -1,7 +1,9 @@
# Copied from '.gitignore', please keep it in sync.
/diff-npm-package.html
/.eslintcache
/.docusaurus
/node_modules
/coverage
/npmDist
/denoDist
/websiteDist
11 changes: 10 additions & 1 deletion cspell.yml
Expand Up @@ -10,8 +10,17 @@ ignorePaths:
- benchmark/github-schema.graphql
- benchmark/github-schema.json
overrides:
- filename: '**/docs/APIReference-*.md'
- filename: '**/docs-old/APIReference-*.md'
ignoreRegExpList: ['/href="[^"]*"/']
- filename: 'website/**'
dictionaries:
- fullstack
words:
- clsx
- infima
- noopener
- noreferrer
- xlink

ignoreRegExpList:
- u\{[0-9a-f]{1,8}\}
Expand Down
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.