Skip to content

Commit

Permalink
Fix prism themes
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-cheney committed Nov 8, 2024
1 parent e4f3bfb commit b8a9b4f
Show file tree
Hide file tree
Showing 5 changed files with 337 additions and 350 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ js
test
_site
vitest.config.ts
docusaurus.config.ts
125 changes: 0 additions & 125 deletions apps/website/docusaurus.config.js

This file was deleted.

119 changes: 119 additions & 0 deletions apps/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
import type { Config } from '@docusaurus/types';

import { themes } from 'prism-react-renderer';

const { github: lightCodeTheme, dracula: darkCodeTheme } = themes;

export default {
title: 'Shuffle.js',
tagline: 'Categorize, sort, and filter a responsive grid of items',
url: 'https://vestride.github.io/',
baseUrl: '/Shuffle/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'Vestride',
projectName: 'Shuffle',
trailingSlash: false,

presets: [
[
'classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/Vestride/Shuffle/tree/main/apps/website/docs/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: {
trackingID: 'UA-39355642-1',
},
},
],
],

themeConfig: {
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'Shuffle.js',
logo: {
alt: 'Shuffle.js Logo',
src: 'img/favicon.svg',
width: 24,
height: 24,
},
items: [
{
type: 'doc',
docId: 'install',
position: 'left',
label: 'Docs',
},
{
href: 'https://www.buymeacoffee.com/glen.cheney',
label: 'Buy me a coffee',
position: 'right',
},
{
href: 'https://github.com/Vestride/Shuffle',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Installation',
to: '/docs/install',
},
{
label: 'FAQs',
to: '/docs/faqs',
},
],
},
{
title: 'Community',
items: [
{
label: 'Twitter',
href: 'https://twitter.com/Vestride',
},
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/search?q=shuffle+js',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/Vestride/Shuffle',
},
{
label: 'CodePen template',
href: 'http://codepen.io/pen?template=qrjOpX',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Glen Cheney. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
image: 'img/shuffle-open-graph.png',
},
} satisfies Config;
6 changes: 3 additions & 3 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.6.0",
"@docusaurus/preset-classic": "^3.6.0",
"@docusaurus/types": "^3.6.0",
"@docusaurus/core": "^3.6.1",
"@docusaurus/preset-classic": "^3.6.1",
"@docusaurus/types": "^3.6.1",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.4.0",
Expand Down
Loading

0 comments on commit b8a9b4f

Please sign in to comment.