Skip to content

Commit

Permalink
build: upgrade docusaurus to v3 (#193)
Browse files Browse the repository at this point in the history
* build: upgrade docusaurus to v3

#192

* chore: convert config files to esm

#192
  • Loading branch information
Bikossor authored Dec 17, 2023
1 parent 32d9852 commit 6febef8
Show file tree
Hide file tree
Showing 6 changed files with 5,661 additions and 3,653 deletions.
123 changes: 0 additions & 123 deletions website/docusaurus.config.js

This file was deleted.

110 changes: 110 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import { Config } from "@docusaurus/types";
import { themes } from "prism-react-renderer";

export default {
title: "Catchphrase",
tagline: "Functional internationalization library for the web",
favicon: "img/favicon.ico",
// Set the production url of your site here
url: "https://catchphrase.dev/",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// 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"],
},
presets: [
[
"classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
themeConfig: {
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
navbar: {
title: "Catchphrase",
logo: {
alt: "Catchphrase Logo",
src: "img/logo.svg",
},
items: [
{
type: "doc",
docId: "intro",
position: "left",
label: "Documentation",
},
{
href: "https://www.npmjs.com/org/catchphrase",
label: "npm",
position: "right",
},
{
href: "https://github.com/Bikossor/catchphrase",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Documentation",
to: "/docs/intro",
},
{
label: "Examples",
href: "https://github.com/Bikossor/catchphrase/tree/main/examples",
},
],
},
{
title: "Community",
items: [
{
label: "Stack Overflow",
href: "https://stackoverflow.com/questions/tagged/catchphrase",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/Bikossor/catchphrase",
},
{
label: "npm",
href: "https://www.npmjs.com/org/catchphrase",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} André Lichtenthäler. Built with Docusaurus.`,
},
prism: {
theme: themes.vsDark,
darkTheme: themes.vsDark,
},
},
} satisfies Config;
Loading

0 comments on commit 6febef8

Please sign in to comment.