⬆️ Bumped up to v3.0

This commit is contained in:
2024-02-24 22:06:48 -05:00
parent 0116b98819
commit 3bec3f6b1a
3 changed files with 3966 additions and 2727 deletions

View File

@@ -1,39 +1,40 @@
// @ts-check // @ts-check
// Note: type annotations allow type checking and IDEs autocompletion // Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github'); // const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); // const darkCodeTheme = require("prism-react-renderer/themes/dracula");
import { themes } from "prism-react-renderer";
console.log("endha", themes);
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
title: 'ThreeTwo!', title: "ThreeTwo!",
tagline: 'Start Flipping!', tagline: "Start Flipping!",
url: 'https://rishighan.github.io', url: "https://rishighan.github.io",
baseUrl: '/threetwo-docs/', baseUrl: "/threetwo-docs/",
onBrokenLinks: 'throw', onBrokenLinks: "throw",
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: "warn",
favicon: 'img/favicon.ico', favicon: "img/favicon.ico",
organizationName: 'rishighan', // Usually your GitHub org/user name. organizationName: "rishighan", // Usually your GitHub org/user name.
projectName: 'threetwo-docs', // Usually your repo name. projectName: "threetwo-docs", // Usually your repo name.
presets: [ presets: [
[ [
'@docusaurus/preset-classic', "@docusaurus/preset-classic",
/** @type {import('@docusaurus/preset-classic').Options} */ /** @type {import('@docusaurus/preset-classic').Options} */
({ ({
docs: { docs: {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo. // Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/', editUrl: "https://github.com/facebook/docusaurus/edit/main/website/",
}, },
blog: { blog: {
showReadingTime: true, showReadingTime: true,
// Please change this to your repo. // Please change this to your repo.
editUrl: editUrl:
'https://github.com/facebook/docusaurus/edit/main/website/blog/', "https://github.com/facebook/docusaurus/edit/main/website/blog/",
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve("./src/css/custom.css"),
}, },
}), }),
], ],
@@ -43,61 +44,61 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
navbar: { navbar: {
title: 'ThreeTwo!', title: "ThreeTwo!",
logo: { logo: {
alt: 'My Site Logo', alt: "My Site Logo",
src: 'img/threetwo.png', src: "img/threetwo.png",
}, },
items: [ items: [
{ {
type: 'doc', type: "doc",
docId: 'intro', docId: "intro",
position: 'left', position: "left",
label: 'Quick Start', label: "Quick Start",
}, },
{to: '/blog', label: 'Blog', position: 'left'}, { to: "/blog", label: "Blog", position: "left" },
{ {
href: 'https://github.com/rishighan/threetwo', href: "https://github.com/rishighan/threetwo",
label: 'GitHub', label: "GitHub",
position: 'right', position: "right",
}, },
], ],
}, },
footer: { footer: {
style: 'dark', style: "dark",
links: [ links: [
{ {
title: 'Docs', title: "Docs",
items: [ items: [
{ {
label: 'Tutorial', label: "Tutorial",
to: '/docs/intro', to: "/docs/intro",
}, },
], ],
}, },
{ {
title: 'Community', title: "Community",
items: [ items: [
{ {
label: 'Github', label: "Github",
href: 'https://github.com/rishighan/threetwo', href: "https://github.com/rishighan/threetwo",
}, },
{ {
label: 'Discord', label: "Discord",
href: 'https://discord.gg/n4HZ4j33uT', href: "https://discord.gg/n4HZ4j33uT",
}, },
], ],
}, },
{ {
title: 'More', title: "More",
items: [ items: [
{ {
label: 'Blog', label: "Blog",
to: '/blog', to: "/blog",
}, },
{ {
label: 'Rishi Ghan', label: "Rishi Ghan",
href: 'https://rishighan.com', href: "https://rishighan.com",
}, },
], ],
}, },
@@ -105,11 +106,12 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Quasar Software, LLC. Built with Docusaurus.`, copyright: `Copyright © ${new Date().getFullYear()} Quasar Software, LLC. Built with Docusaurus.`,
}, },
colorMode: { colorMode: {
disableSwitch: true, disableSwitch: false,
respectPrefersColorScheme: false,
}, },
prism: { prism: {
theme: lightCodeTheme, theme: themes.github,
darkTheme: darkCodeTheme, darkTheme: themes.dracula,
}, },
}), }),
}; };

View File

@@ -15,21 +15,25 @@
"typecheck": "tsc" "typecheck": "tsc"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "^2.1.0", "@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^2.1.0", "@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^1.6.21", "@mdx-js/react": "^3.0.0",
"@svgr/webpack": "^5.5.0", "@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1", "clsx": "^1.1.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1", "prism-react-renderer": "^2.3.1",
"react": "^17.0.1", "react": "^18.2.0",
"react-dom": "^17.0.1", "react-dom": "^18.2.0",
"url-loader": "^4.1.1" "url-loader": "^4.1.1"
}, },
"devDependencies": { "devDependencies": {
"@docusaurus/module-type-aliases": "^2.1.0", "@docusaurus/module-type-aliases": "^3.1.1",
"@tsconfig/docusaurus": "^1.0.4", "@docusaurus/tsconfig": "^3.1.1",
"typescript": "^4.3.5" "@docusaurus/types": "^3.1.1",
"@types/react": "^18.2.29"
},
"engines": {
"node": ">=18.0"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

6579
yarn.lock

File diff suppressed because it is too large Load Diff