Skip to content

Commit

Permalink
fix: base url
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 19, 2023
1 parent fcd3977 commit d848b86
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
favicon: "img/logo.png",

url: "https://yazi-rs.github.io",
baseUrl: "/docs/",
baseUrl: "/",

organizationName: "yazi-rs",
projectName: "docs",
Expand All @@ -35,13 +35,13 @@ const config = {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/yazi-rs/docs/tree/main/",
editUrl: "https://github.com/yazi-rs/tree/main/",
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/yazi-rs/docs/tree/main/",
editUrl: "https://github.com/yazi-rs/tree/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
Expand Down Expand Up @@ -85,11 +85,11 @@ const config = {
items: [
{
label: "Usage",
to: "/docs/usage/installation",
to: "/usage/installation",
},
{
label: "Showcase",
to: "/docs/showcase",
to: "/showcase",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function HomepageHeader() {
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link className="button button--secondary button--lg" to="/docs/usage/installation">
<Link className="button button--secondary button--lg" to="/usage/installation">
Try It Out 🚀
</Link>
</div>
Expand Down
16 changes: 8 additions & 8 deletions src/pages/showcase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ import styles from './styles.module.css';
const features = [
{
title: "Scrollable Preview",
video: "/docs/videos/scrollable-preview.mp4",
video: "/videos/scrollable-preview.mp4",
description: "Preview various types of files, and scroll while previewing.",
},
{
title: "Visual Mode & Batch Rename",
video: "/docs/videos/visual-mode_batch-rename.mp4",
video: "/videos/visual-mode_batch-rename.mp4",
description: "Batch select files in visual mode, and rename them.",
},
{
title: "Vim-like Input & Select Component",
video: "/docs/videos/input_select.mp4",
video: "/videos/input_select.mp4",
description: "Quickly edit filename in the Input, and choose how to open it in the Select.",
},
{
title: "Multi-Tab & fzf, zoxide",
video: "/docs/videos/multi-tab_zoxide.mp4",
video: "/videos/multi-tab_zoxide.mp4",
description: "Collaborate across multiple tabs, and use fzf, zoxide for quick jumps.",
},
{
title: "Multi-Select & Task Management",
video: "/docs/videos/multi-select_task-management.mp4",
video: "/videos/multi-select_task-management.mp4",
description: "Select multiple files individually, perform copy, cut, etc. Which are scheduled by the task system, providing real-time progress reports and task cancellation.",
},
{
title: "Incremental Find",
video: "/docs/videos/incremental-find.mp4",
video: "/videos/incremental-find.mp4",
description: "Find files incrementally in real-time, with the current position and number of all matches displayed.",
},
{
title: "Search",
video: "/docs/videos/search.mp4",
video: "/videos/search.mp4",
description: "Search by name using fd, by content using rg, and perform arbitrary operations on the results.",
},
]
Expand All @@ -50,7 +50,7 @@ function ShowcaseHeader() {
<section className="margin-top--lg margin-bottom--lg text--center">
<Heading as="h1">Yazi Showcase</Heading>
<p>List of features and plugins people are building with Yazi</p>
<Link className="button button--primary" to="https://github.com/yazi-rs/docs/issues/new">
<Link className="button button--primary" to="https://github.com/yazi-rs/yazi-rs.github.io/issues/new">
🐤 Add your plugin
</Link>
</section>
Expand Down

0 comments on commit d848b86

Please sign in to comment.