-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to docusaurus v3 (#15)
- Loading branch information
Showing
24 changed files
with
4,785 additions
and
5,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
{"language":"en","version":"0.2","flagWords":[],"words":["linemode","Hyprland","ueberzug","yazi","sxyazi","Discardable","Sixel","downscaling","downscales"]} | ||
{ | ||
"language": "en", | ||
"version": "0.2", | ||
"flagWords": [], | ||
"words": ["linemode", "Hyprland", "ueberzug", "yazi", "sxyazi", "Discardable", "Sixel", "downscaling", "downscales"] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
import { themes as prismThemes } from "prism-react-renderer" | ||
import type { Config } from "@docusaurus/types" | ||
import type * as Preset from "@docusaurus/preset-classic" | ||
|
||
const config: Config = { | ||
title: "Yazi", | ||
tagline: "⚡️ Blazing fast terminal file manager written in Rust, based on async I/O.", | ||
favicon: "img/logo.png", | ||
|
||
url: "https://yazi-rs.github.io", | ||
baseUrl: "/", | ||
|
||
organizationName: "yazi-rs", | ||
projectName: "yazi-rs.github.io", | ||
|
||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "warn", | ||
|
||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en"], | ||
}, | ||
|
||
presets: [ | ||
[ | ||
"classic", | ||
{ | ||
docs: { | ||
path: "docs", | ||
routeBasePath: "docs", | ||
sidebarPath: "./sidebars.ts", | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: "https://github.com/yazi-rs/yazi-rs.github.io/edit/main/", | ||
}, | ||
blog: { | ||
showReadingTime: true, | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: "https://github.com/yazi-rs/yazi-rs.github.io/edit/main/", | ||
}, | ||
theme: { | ||
customCss: "./src/css/custom.css", | ||
}, | ||
} satisfies Preset.Options, | ||
], | ||
], | ||
|
||
themeConfig: { | ||
// Replace with your project's social card | ||
image: "img/docusaurus-social-card.jpg", | ||
navbar: { | ||
title: "Yazi", | ||
logo: { | ||
alt: "Yazi file manager", | ||
src: "img/logo.png", | ||
}, | ||
items: [ | ||
{ | ||
type: "docSidebar", | ||
sidebarId: "docsSidebar", | ||
position: "left", | ||
label: "Docs", | ||
}, | ||
{ to: "/showcase", label: "Showcase", position: "left" }, | ||
{ to: "/blog", label: "Blog", position: "left" }, | ||
{ | ||
href: "https://github.com/sxyazi/yazi", | ||
label: "GitHub", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: "dark", | ||
links: [ | ||
{ | ||
title: "Docs", | ||
items: [ | ||
{ | ||
label: "Docs", | ||
to: "/docs/installation", | ||
}, | ||
{ | ||
label: "Showcase", | ||
to: "/showcase", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "Community", | ||
items: [ | ||
{ | ||
label: "Discord (English mainly)", | ||
href: "https://discord.gg/qfADduSdJu", | ||
}, | ||
{ | ||
label: "Telegram (Chinese mainly)", | ||
href: "https://t.me/yazi_rs", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "More", | ||
items: [ | ||
{ | ||
label: "GitHub", | ||
href: "https://github.com/sxyazi/yazi", | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © ${new Date().getFullYear()} Yazi. Built with ❤️️.`, | ||
}, | ||
prism: { | ||
theme: prismThemes.github, | ||
darkTheme: prismThemes.dracula, | ||
additionalLanguages: ["lua", "toml", "diff", "bash"], | ||
}, | ||
} satisfies Preset.ThemeConfig, | ||
|
||
markdown: { | ||
format: "mdx", | ||
}, | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.