Skip to content

Commit

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

#290

* chore: convert config files to esm

#290
  • Loading branch information
Bikossor authored Dec 17, 2023
1 parent 2206507 commit da53828
Show file tree
Hide file tree
Showing 6 changed files with 7,906 additions and 14,632 deletions.
115 changes: 0 additions & 115 deletions website/docusaurus.config.js

This file was deleted.

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

export default {
title: "Rudus",
tagline: "Parser combinator library for TypeScript",
url: "https://rudus.pages.dev",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "Bikossor", // Usually your GitHub org/user name.
projectName: "Rudus", // 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"],
},
presets: [
[
"classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
showLastUpdateTime: true,
showLastUpdateAuthor: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
themeConfig: {
navbar: {
title: "Rudus",
logo: {
alt: "Rudus Logo",
src: "img/Rudus-Logo.svg",
},
items: [
{
type: "doc",
docId: "intro",
position: "left",
label: "Documentation",
},
{
href: "https://npmjs.com/package/rudus",
label: "npm",
position: "right",
},
{
href: "https://github.com/Bikossor/Rudus",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Tutorial",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
{
label: "Stack Overflow",
href: "https://stackoverflow.com/questions/tagged/rudus",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/Bikossor/Rudus",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Bikossor. Built with Docusaurus.`,
},
prism: {
theme: themes.github,
darkTheme: themes.dracula,
},
},
} satisfies Config;
Loading

0 comments on commit da53828

Please sign in to comment.