Files
archived-pcsx2-net-www/docusaurus.config.js
Tyler Wilding 3030d7933b Updating dependencies, specifically NextUI (#358)
* build(deps): bump the frontend-deps group across 1 directory with 14 updates

Bumps the frontend-deps group with 14 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) | `3.4.0` | `3.5.2` |
| [@docusaurus/plugin-client-redirects](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-client-redirects) | `3.4.0` | `3.5.2` |
| [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic) | `3.4.0` | `3.5.2` |
| [@mdx-js/react](https://github.com/mdx-js/mdx/tree/HEAD/packages/react) | `3.0.1` | `3.1.0` |
| [@nextui-org/react](https://github.com/nextui-org/nextui/tree/HEAD/packages/core/react) | `1.0.0-beta.13` | `2.4.8` |
| [autoprefixer](https://github.com/postcss/autoprefixer) | `10.4.19` | `10.4.20` |
| [luxon](https://github.com/moment/luxon) | `3.4.4` | `3.5.0` |
| [postcss](https://github.com/postcss/postcss) | `8.4.39` | `8.4.47` |
| [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) | `2.3.1` | `2.4.0` |
| [react-icons](https://github.com/react-icons/react-icons) | `5.2.1` | `5.3.0` |
| [recharts](https://github.com/recharts/recharts) | `2.12.7` | `2.13.0` |
| [yaml](https://github.com/eemeli/yaml) | `2.4.5` | `2.6.0` |
| [@docusaurus/module-type-aliases](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-module-type-aliases) | `3.4.0` | `3.5.2` |
| [glob](https://github.com/isaacs/node-glob) | `10.4.1` | `11.0.0` |



Updates `@docusaurus/core` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus)

Updates `@docusaurus/plugin-client-redirects` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-plugin-client-redirects)

Updates `@docusaurus/preset-classic` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-preset-classic)

Updates `@mdx-js/react` from 3.0.1 to 3.1.0
- [Release notes](https://github.com/mdx-js/mdx/releases)
- [Changelog](https://github.com/mdx-js/mdx/blob/main/changelog.md)
- [Commits](https://github.com/mdx-js/mdx/commits/3.1.0/packages/react)

Updates `@nextui-org/react` from 1.0.0-beta.13 to 2.4.8
- [Release notes](https://github.com/nextui-org/nextui/releases)
- [Changelog](https://github.com/nextui-org/nextui/blob/canary/packages/core/react/CHANGELOG.md)
- [Commits](https://github.com/nextui-org/nextui/commits/@nextui-org/react@2.4.8/packages/core/react)

Updates `autoprefixer` from 10.4.19 to 10.4.20
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.19...10.4.20)

Updates `luxon` from 3.4.4 to 3.5.0
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moment/luxon/compare/3.4.4...3.5.0)

Updates `postcss` from 8.4.39 to 8.4.47
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.39...8.4.47)

Updates `prism-react-renderer` from 2.3.1 to 2.4.0
- [Release notes](https://github.com/FormidableLabs/prism-react-renderer/releases)
- [Commits](https://github.com/FormidableLabs/prism-react-renderer/compare/prism-react-renderer@2.3.1...prism-react-renderer@2.4.0)

Updates `react-icons` from 5.2.1 to 5.3.0
- [Release notes](https://github.com/react-icons/react-icons/releases)
- [Commits](https://github.com/react-icons/react-icons/compare/v5.2.1...v5.3.0)

Updates `recharts` from 2.12.7 to 2.13.0
- [Release notes](https://github.com/recharts/recharts/releases)
- [Changelog](https://github.com/recharts/recharts/blob/3.x/CHANGELOG.md)
- [Commits](https://github.com/recharts/recharts/compare/v2.12.7...v2.13.0)

Updates `yaml` from 2.4.5 to 2.6.0
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.4.5...v2.6.0)

Updates `@docusaurus/module-type-aliases` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-module-type-aliases)

Updates `glob` from 10.4.1 to 11.0.0
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.1...v11.0.0)

---
updated-dependencies:
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: "@docusaurus/plugin-client-redirects"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: "@mdx-js/react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: "@nextui-org/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-deps
- dependency-name: autoprefixer
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: frontend-deps
- dependency-name: luxon
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: postcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: frontend-deps
- dependency-name: prism-react-renderer
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: react-icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: recharts
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: "@docusaurus/module-type-aliases"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: frontend-deps
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: frontend-deps
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: start migrating next-ui to V2

* next-ui2: home page mostly rendering

* fix css collision with docusaurus

* pretty much done fixing the homepage

* most of the compatibility page finished

* compatibility page largely completed

* download buttons working again, cleaned up navbar

* fix blog and documentation components and styling

* lint: formatting

* fix subheading color on compat page

* finish compat page and fix some mobile issues

* light theme adjustments

* just pagination on download page to go

* downloads page finished hopefully

* fix build issue

* fix footer color and previous versions link

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-15 20:32:20 -05:00

369 lines
9.8 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const themes = require("prism-react-renderer").themes;
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
const redirects = require("./redirects");
function tailwindPlugin(context, options) {
return {
name: "tailwind-plugin",
configurePostCss(postcssOptions) {
postcssOptions.plugins = [
require("postcss-import"),
require("tailwindcss"),
require("autoprefixer"),
];
return postcssOptions;
},
};
}
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "PCSX2",
tagline: "An Open-Source PS2 Emulator",
url: "https://pcsx2.net",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.webp",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "PCSX2", // Usually your GitHub org/user name.
projectName: "pcsx2-net-www", // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
headTags: [
{
tagName: "link",
attributes: {
rel: "preload",
href: "/fonts/Inter/static/Inter-Bold.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
},
},
{
tagName: "link",
attributes: {
rel: "preload",
href: "/fonts/Inter/static/Inter-Medium.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
},
},
{
tagName: "link",
attributes: {
rel: "preload",
href: "/fonts/Inter/static/Inter-Regular.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
},
},
{
tagName: "link",
attributes: {
rel: "preload",
href: "/fonts/Roboto_Mono/static/RobotoMono-Bold.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
},
},
{
tagName: "link",
attributes: {
rel: "preload",
href: "/fonts/Roboto_Mono/static/RobotoMono-Regular.ttf",
as: "font",
type: "font/ttf",
crossorigin: "anonymous",
},
},
],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: "docs",
sidebarPath: require.resolve("./sidebars.js"),
showLastUpdateAuthor: true,
editUrl: "https://github.com/PCSX2/pcsx2-net-www/tree/main/",
},
blog: {
onUntruncatedBlogPosts: "ignore",
path: "blog",
blogSidebarCount: 0,
showReadingTime: true,
editUrl: "https://github.com/PCSX2/pcsx2-net-www/tree/main/",
feedOptions: {
type: "all",
copyright: `Copyright © ${new Date().getFullYear()} PCSX2.`,
limit: 3,
},
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// announcementBar: {
// id: "announcementBar-1", // Increment on change (2.0 was 0, next announcement should be 1)
// content: `<a class="no-underline font-medium" href="/blog/2024/pcsx2-2-release/">PCSX2 2.0 is finally here, check out our new blog post!</a>`,
// backgroundColor: "#4765c8",
// textColor: "#fafbfc",
// isCloseable: true,
// },
algolia: {
// The application ID provided by Algolia
appId: "TR9JNR7TSP",
// Public API key: it is safe to commit it
apiKey: "a63d89935faca83290750981be9a313c",
indexName: "pcsx2",
// Optional: see doc section below
contextualSearch: true,
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: "search",
//... other Algolia params
},
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: true,
},
image: "img/logo.webp",
metadata: [
{ name: "twitter:card", content: "summary" },
{ name: "darkreader-lock" },
],
navbar: {
title: "PCSX2",
logo: {
alt: "PCSX2 Logo",
src: "img/logo.webp",
},
items: [
{ to: "/downloads", label: "Download", position: "left" },
{ to: "/compat", label: "Compatibility", position: "left" },
{
type: "doc",
docId: "index",
label: "Documentation",
position: "left",
},
{
to: "/blog",
label: "Blog",
position: "left",
items: [
{
label: "Progress Reports",
to: "/blog/tags/progress-report",
},
{
label: "Developer Blogs",
to: "/blog/tags/devblog",
},
],
},
{
to: "https://github.com/sponsors/PCSX2",
label: "Donate",
position: "right",
},
{
type: "search",
position: "right",
},
{
to: "https://forums.pcsx2.net/",
label: "Forums",
position: "right",
},
{ to: "https://wiki.pcsx2.net/", label: "Wiki", position: "right" },
{
href: "https://pcsx2.net/discord",
position: "right",
className: "header-discord-link",
"aria-label": "Discord",
target: "_blank",
},
{
href: "https://github.com/PCSX2/pcsx2",
position: "right",
className: "header-github-link",
"aria-label": "GitHub",
target: "_blank",
},
{
href: "https://mastodon.social/@PCSX2",
position: "right",
rel: "me",
className: "header-mastodon-link",
"aria-label": "Mastodon",
target: "_blank",
},
{
href: "https://x.com/PCSX2",
position: "right",
className: "header-twitter-link",
"aria-label": "Twitter",
target: "_blank",
},
{
href: "https://www.youtube.com/user/PCSX2team",
position: "right",
className: "header-youtube-link",
"aria-label": "YouTube",
target: "_blank",
},
{
href: "https://pcsx2.net/blog/rss.xml",
position: "right",
className: "header-rss-link",
"aria-label": "RSS",
target: "_blank",
},
],
},
footer: {
links: [
{
title: "Links",
items: [
{
label: "Downloads",
to: "/downloads",
},
{
label: "Compatibility",
to: "/compat",
},
{
label: "Documentation",
to: "/docs",
},
{
label: "Blog",
to: "/blog",
},
{
label: "Wiki",
href: "https://forums.pcsx2.net/",
},
{
label: "Status",
href: "https://stats.uptimerobot.com/GAg8AuBByx",
},
],
},
{
title: "Contribute",
items: [
{
label: "Donate",
href: "https://github.com/sponsors/PCSX2",
},
{
label: "GitHub",
href: "https://github.com/PCSX2/pcsx2",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://pcsx2.net/discord",
},
{
label: "Forums",
href: "https://forums.pcsx2.net/",
},
{
label: "Mastodon",
href: "https://mastodon.social/@PCSX2",
},
{
label: "Twitter",
href: "https://x.com/PCSX2",
},
{
label: "YouTube",
href: "https://www.youtube.com/user/PCSX2team",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy",
to: "/privacy",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} PCSX2. All Rights Reserved.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
redirects: redirects,
},
],
() => ({
name: "custom-webpack-config",
configureWebpack: () => {
return {
module: {
rules: [
{
test: /\.yaml$/,
use: [
{
loader: "file-loader",
options: { name: "assets/files/[name]-[hash].[ext]" },
},
],
},
],
},
};
},
}),
tailwindPlugin,
],
};
module.exports = config;