Skip to content

Commit bd48859

Browse files
authored
Migrate to docusaurus 3.x (#19)
* Migrate to docu 3x, followed directions, didn't see any changes to require playwright test * PR uses build action, merge to main uses deploy action
1 parent 01d9fdc commit bd48859

File tree

4 files changed

+14416
-18385
lines changed

4 files changed

+14416
-18385
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Build
4+
5+
# Controls when the workflow will run
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches: ["main"]
10+
pull_request:
11+
branches: ["main"]
12+
permissions:
13+
contents: write
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "build"
18+
build:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: website
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+
- uses: actions/checkout@v6
29+
- uses: actions/setup-node@v6
30+
with:
31+
node-version: 22
32+
33+
- name: Versions
34+
run: |
35+
node -v
36+
npm -v
37+
38+
- name: Install dependencies
39+
run: npm install
40+
41+
# Runs a set of commands using the runners shell
42+
- name: Run a multi-line script
43+
run: |
44+
npm run build
45+
46+
- name: Run Prettier
47+
#fix markdown files in /blog
48+
run: npm run prettier:fix

website/docusaurus.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
const lightCodeTheme = require('prism-react-renderer/themes/github');
2-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
1+
const {themes} = require('prism-react-renderer');
2+
3+
const lightCodeTheme = themes.github;
4+
const darkCodeTheme = themes.dracula;
35
const site = require('./site.config');
46

57

0 commit comments

Comments
 (0)