Skip to content

Commit c4a4200

Browse files
authored
build improvements (#2)
1 parent 04e1c89 commit c4a4200

File tree

7 files changed

+83
-50
lines changed

7 files changed

+83
-50
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: yarn install --frozen-lockfile
2727

2828
- name: Build documentation
29-
run: yarn docs:build
29+
run: yarn build
3030

3131
- name: Check for build errors
3232
if: failure()

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
build:
12+
name: Build Docusaurus
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Build website
26+
run: npm run build
27+
28+
- name: Upload Build Artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: build
32+
33+
deploy:
34+
name: Deploy to GitHub Pages
35+
needs: build
36+
37+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38+
permissions:
39+
pages: write # to deploy to Pages
40+
id-token: write # to verify the deployment originates from an appropriate source
41+
42+
# Deploy to the github-pages environment
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Generated files
55
.docusaurus
66
.cache-loader
7+
build
78

89
# Misc
910
.DS_Store

REDIRECTS.md

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

package.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"scripts": {
66
"clean": "rm -rf .turbo static/@devvit",
77
"clobber": "yarn clean && rm -rf node_modules",
8-
"docs:build": "yarn docs:clear && docusaurus build",
9-
"docs:clear": "docusaurus clear",
10-
"docs:deploy": "docusaurus deploy",
11-
"docs:serve": "docusaurus serve",
12-
"docs:start": "yarn docs:clear && docusaurus start",
13-
"docs:swizzle": "docusaurus swizzle",
14-
"docs:typecheck": "tsc",
15-
"docs:write-heading-ids": "docusaurus write-heading-ids",
16-
"docs:write-translations": "docusaurus write-translations",
8+
"build": "docusaurus build",
9+
"clear": "docusaurus clear",
10+
"deploy": "docusaurus deploy",
11+
"serve": "docusaurus serve",
12+
"start": "yarn docs:clear && docusaurus start",
13+
"swizzle": "docusaurus swizzle",
14+
"typecheck": "tsc",
15+
"write-heading-ids": "docusaurus write-heading-ids",
16+
"write-translations": "docusaurus write-translations",
1717
"docusaurus": "docusaurus",
1818
"test:types": "tsc --noEmit"
1919
},
@@ -36,13 +36,22 @@
3636
"redocusaurus": "2.5.0"
3737
},
3838
"devDependencies": {
39+
"@algolia/client-search": "^5.17.0",
3940
"@docusaurus/module-type-aliases": "3.8.1",
41+
"@docusaurus/theme-common": "3.8.1",
4042
"@docusaurus/tsconfig": "3.8.1",
4143
"@docusaurus/types": "3.8.1",
44+
"@docusaurus/utils": "3.8.1",
45+
"@types/react": "^19.0.0",
46+
"core-js": "^3.39.0",
47+
"mobx": "^6.13.5",
4248
"prettier": "3.3.3",
49+
"search-insights": "^2.17.3",
50+
"styled-components": "^6.1.13",
4351
"typedoc": "0.28.0",
4452
"typedoc-plugin-markdown": "4.5.0",
45-
"typescript": "5.8.3"
53+
"typescript": "5.8.3",
54+
"webpack": "^5.97.1"
4655
},
4756
"browserslist": {
4857
"production": [

redocly.yaml

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

yarn.lock

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"@algolia/requester-fetch" "5.42.0"
9595
"@algolia/requester-node-http" "5.42.0"
9696

97-
"@algolia/[email protected]":
97+
"@algolia/[email protected]", "@algolia/client-search@^5.17.0":
9898
version "5.42.0"
9999
resolved "https://registry.yarnpkg.com/@algolia/client-search/-/client-search-5.42.0.tgz#b4c9823af8621a17f1a9878242ac7518519ef0d8"
100100
integrity sha512-NZR7yyHj2WzK6D5X8gn+/KOxPdzYEXOqVdSaK/biU8QfYUpUuEA0sCWg/XlO05tPVEcJelF/oLrrNY3UjRbOww==
@@ -3414,7 +3414,7 @@
34143414
"@types/history" "^4.7.11"
34153415
"@types/react" "*"
34163416

3417-
"@types/react@*":
3417+
"@types/react@*", "@types/react@^19.0.0":
34183418
version "19.2.2"
34193419
resolved "https://registry.yarnpkg.com/@types/react/-/react-19.2.2.tgz#ba123a75d4c2a51158697160a4ea2ff70aa6bf36"
34203420
integrity sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA==
@@ -4494,7 +4494,7 @@ core-js-pure@^3.43.0:
44944494
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.46.0.tgz#9bb80248584c6334bb54cd381b0f41c619ef1b43"
44954495
integrity sha512-NMCW30bHNofuhwLhYPt66OLOKTMbOhgTTatKVbaQC3KRHpTCiRIBYvtshr+NBYSnBxwAFhjW/RfJ0XbIjS16rw==
44964496

4497-
core-js@^3.31.1:
4497+
core-js@^3.31.1, core-js@^3.39.0:
44984498
version "3.46.0"
44994499
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.46.0.tgz#323a092b96381a9184d0cd49ee9083b2f93373bb"
45004500
integrity sha512-vDMm9B0xnqqZ8uSBpZ8sNtRtOdmfShrvT6h2TuQGLs0Is+cR0DYbj/KWP6ALVNbWPpqA/qPLoOuppJN07humpA==
@@ -7617,7 +7617,7 @@ mobx-react@^9.1.1:
76177617
dependencies:
76187618
mobx-react-lite "^4.1.1"
76197619

7620-
mobx@^6.12.4:
7620+
mobx@^6.12.4, mobx@^6.13.5:
76217621
version "6.15.0"
76227622
resolved "https://registry.yarnpkg.com/mobx/-/mobx-6.15.0.tgz#78b9b82d383724eebb4b6e50c2eb4ae2da861cb5"
76237623
integrity sha512-UczzB+0nnwGotYSgllfARAqWCJ5e/skuV2K/l+Zyck/H6pJIhLXuBnz+6vn2i211o7DtbE78HQtsYEKICHGI+g==
@@ -9377,6 +9377,11 @@ schema-utils@^4.0.0, schema-utils@^4.0.1, schema-utils@^4.2.0, schema-utils@^4.3
93779377
ajv-formats "^2.1.1"
93789378
ajv-keywords "^5.1.0"
93799379

9380+
search-insights@^2.17.3:
9381+
version "2.17.3"
9382+
resolved "https://registry.yarnpkg.com/search-insights/-/search-insights-2.17.3.tgz#8faea5d20507bf348caba0724e5386862847b661"
9383+
integrity sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==
9384+
93809385
section-matter@^1.0.0:
93819386
version "1.0.0"
93829387
resolved "https://registry.yarnpkg.com/section-matter/-/section-matter-1.0.0.tgz#e9041953506780ec01d59f292a19c7b850b84167"
@@ -9889,7 +9894,7 @@ [email protected]:
98899894
dependencies:
98909895
inline-style-parser "0.2.6"
98919896

9892-
styled-components@^6.1.11:
9897+
styled-components@^6.1.11, styled-components@^6.1.13:
98939898
version "6.1.19"
98949899
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-6.1.19.tgz#9a41b4db79a3b7a2477daecabe8dd917235263d6"
98959900
integrity sha512-1v/e3Dl1BknC37cXMhwGomhO8AkYmN41CqyX9xhUDxry1ns3BFQy2lLDRQXJRdVVWB9OHemv/53xaStimvWyuA==
@@ -10522,7 +10527,7 @@ webpack-sources@^3.3.3:
1052210527
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.3.tgz#d4bf7f9909675d7a070ff14d0ef2a4f3c982c723"
1052310528
integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==
1052410529

10525-
webpack@^5.88.1, webpack@^5.95.0:
10530+
webpack@^5.88.1, webpack@^5.95.0, webpack@^5.97.1:
1052610531
version "5.102.1"
1052710532
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.102.1.tgz#1003a3024741a96ba99c37431938bf61aad3d988"
1052810533
integrity sha512-7h/weGm9d/ywQ6qzJ+Xy+r9n/3qgp/thalBbpOi5i223dPXKi04IBtqPN9nTd+jBc7QKfvDbaBnFipYp4sJAUQ==

0 commit comments

Comments
 (0)