Skip to content

Commit 7f86dde

Browse files
authored
Update docusaurus to 3.7.0 (latest) (#34)
* Update docusaurus to 3.7.0 (latest) * Update github actions node version to 22
1 parent 78d2e31 commit 7f86dde

File tree

7 files changed

+13730
-17896
lines changed

7 files changed

+13730
-17896
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: "16"
24+
node-version: "22"
2525
cache: npm
2626
cache-dependency-path: package-lock.json
2727
- name: Setup Pages

docusaurus.config.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
4+
const lightCodeTheme = require('prism-react-renderer').themes.github;
5+
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
@@ -27,6 +27,7 @@ const config = {
2727
sidebarPath: require.resolve('./sidebars.js'),
2828
// Please change this to your repo.
2929
// editUrl: 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
30+
breadcrumbs: false,
3031
},
3132
blog: false,
3233
theme: {
@@ -39,7 +40,11 @@ const config = {
3940
themeConfig:
4041
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
4142
({
42-
hideableSidebar: true,
43+
docs : {
44+
sidebar : {
45+
hideable: true,
46+
}
47+
},
4348
navbar: {
4449
title: 'Miking',
4550
// TODO Add Miking logo
@@ -118,6 +123,7 @@ const config = {
118123
copyright: `Copyright © ${new Date().getFullYear()} David Broman`,
119124
},
120125
prism: {
126+
additionalLanguages: ['bash'],
121127
theme: lightCodeTheme,
122128
darkTheme: darkCodeTheme,
123129
},

0 commit comments

Comments
 (0)