Skip to content

Commit

Permalink
Merge pull request #12 from kidsoncomputers/mason/upgrade-to-v3
Browse files Browse the repository at this point in the history
upgrade docusaurus to v3
  • Loading branch information
masonj5n authored May 2, 2024
2 parents 05916dd + 2956edc commit c43fe75
Show file tree
Hide file tree
Showing 6 changed files with 4,017 additions and 23,889 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 19
node-version: 22

- name: Enable corepack
run: corepack enable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
cache: yarn

- name: Install dependencies
Expand Down
9 changes: 4 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
import {themes as prismThemes} from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Kids on Computers',
tagline: 'Bringing technology to underprivileged kids worldwide',
url: 'https://kidsoncomputers.github.io',
baseUrl: '/',
baseUrl: '/website/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
Expand Down Expand Up @@ -149,8 +148,8 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Kids on Computers`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: prismThemes.palenight,
darkTheme: prismThemes.dracula,
},
}),
};
Expand Down
Loading

0 comments on commit c43fe75

Please sign in to comment.