-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from semaphore-protocol/chore/version-upgrade
Upgrade Docusaurus to V3
- Loading branch information
Showing
15 changed files
with
3,266 additions
and
1,621 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import type * as Preset from "@docusaurus/preset-classic" | ||
import type { Config } from "@docusaurus/types" | ||
import { themes } from "prism-react-renderer" | ||
|
||
const lightCodeTheme = themes.github | ||
const darkCodeTheme = themes.dracula | ||
|
||
const config: Config = { | ||
title: "Semaphore", | ||
tagline: "Documentation and Guides", | ||
url: "https://docs.semaphore.pse.dev/", | ||
baseUrl: "/", | ||
favicon: "/img/favicon.ico", | ||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "warn", | ||
organizationName: "semaphore-protocol", | ||
projectName: "semaphore", | ||
trailingSlash: false, | ||
plugins: ["docusaurus-plugin-sass"], | ||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en", "es"] | ||
}, | ||
presets: [ | ||
[ | ||
"classic", | ||
{ | ||
docs: { | ||
routeBasePath: "/", | ||
sidebarPath: require.resolve("./sidebars.js"), | ||
editUrl: "https://github.com/semaphore-protocol/website/edit/main/", | ||
includeCurrentVersion: false | ||
}, | ||
theme: { | ||
customCss: [require.resolve("./src/css/custom.scss")] | ||
} | ||
} satisfies Preset.Options | ||
] | ||
], | ||
themeConfig: { | ||
// announcementBar: { | ||
// id: "semaphore-v4-alpha", | ||
// content: | ||
// '<b>We are pleased to announce the release of Semaphore V4-alpha 🎉</b>', | ||
// backgroundColor: "#DAE0FF", | ||
// textColor: "#000000" | ||
// }, | ||
navbar: { | ||
logo: { | ||
alt: "Semaphore Logo", | ||
src: "img/semaphore-logo.svg" | ||
}, | ||
items: [ | ||
{ | ||
label: "Whitepaper", | ||
to: "https://docs.semaphore.pse.dev/whitepaper-v1.pdf", | ||
position: "right", | ||
className: "V1" | ||
}, | ||
{ | ||
label: "Github", | ||
href: "https://github.com/semaphore-protocol", | ||
position: "right" | ||
}, | ||
{ | ||
type: "localeDropdown", | ||
position: "right" | ||
} | ||
] | ||
}, | ||
colorMode: { | ||
defaultMode: "dark", | ||
// Should we use the prefers-color-scheme media-query, | ||
// using user system preferences, instead of the hardcoded defaultMode | ||
respectPrefersColorScheme: true | ||
}, | ||
prism: { | ||
theme: lightCodeTheme, | ||
darkTheme: darkCodeTheme, | ||
additionalLanguages: ["solidity", "bash", "typescript"] | ||
}, | ||
algolia: { | ||
appId: "6P229KVKCB", | ||
apiKey: "879bb5b002b6370f181f0f79f5c2afe2", | ||
indexName: "semaphoreliedzkp", | ||
contextualSearch: true | ||
} | ||
} satisfies Preset.ThemeConfig | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version-V1/mySidebar": [ | ||
"mySidebar": [ | ||
{ | ||
"type": "autogenerated", | ||
"dirName": "." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version-V2/mySidebar": [ | ||
"mySidebar": [ | ||
{ | ||
"type": "autogenerated", | ||
"dirName": "." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version-V3/mySidebar": [ | ||
"mySidebar": [ | ||
{ | ||
"type": "autogenerated", | ||
"dirName": "." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"name": "semaphore-website", | ||
"version": "2.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
|
Oops, something went wrong.