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