Skip to content

Commit

Permalink
chore(website): upgrade docusaurus to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Dec 12, 2023
1 parent b2001bb commit 47d99b9
Show file tree
Hide file tree
Showing 6 changed files with 3,983 additions and 2,669 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn.lock
dist
.env*
*.pem
.npmrc
/.npmrc

npm-debug.log*
yarn-debug.log*
Expand Down
1 change: 1 addition & 0 deletions website/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
23 changes: 9 additions & 14 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require("prism-react-renderer/themes/vsLight");
const darkCodeTheme = require("prism-react-renderer/themes/vsDark");
import { themes } from "prism-react-renderer";

/** @type {import('@docusaurus/types').Config} */
const config = {
export default {
title: "next-safe-action",
tagline: "Type safe Server Actions in your Next.js (App Router) project",
favicon: "img/favicon.ico",
Expand Down Expand Up @@ -36,7 +32,7 @@ const config = {
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
Expand All @@ -51,13 +47,13 @@ const config = {
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
},
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
{
// Replace with your project's social card
image: "img/social-card.png",
algolia: {
Expand Down Expand Up @@ -90,10 +86,9 @@ const config = {
copyright: `Copyleft <span class="copyleft">&copy;</span> ${new Date().getFullYear()} Edoardo Ranghieri`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["typescript"],
theme: themes.vsLight,
darkTheme: themes.vsDark,
},
}),
},
};

module.exports = config;
Loading

0 comments on commit 47d99b9

Please sign in to comment.