Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ const config: Config = {
style: { width: "30px" },
},
items: [
{
to: "/guides/",
label: "Guides",
position: "left",
},
{
items: [
{ href: "https://unraid.net", label: "Unraid Home" },
Expand Down Expand Up @@ -260,6 +265,22 @@ const config: Config = {

plugins: [
"docusaurus-plugin-image-zoom",
[
"@docusaurus/plugin-content-docs",
{
id: "guides",
path: "guides",
routeBasePath: "guides",
sidebarPath: "./sidebarsGuides.js",
editUrl: ({ locale, versionDocsDirPath, docPath }) => {
if (locale !== DEFAULT_LOCALE) {
return `https://translate.unraid.net/unraid-docs/${locale}`;
}
const branch = process.env.GITHUB_BRANCH || "main";
return `https://github.com/unraid/docs/edit/${branch}/${versionDocsDirPath}/${docPath}`;
},
},
],
[
"@docusaurus/plugin-ideal-image",
{
Expand Down
9 changes: 9 additions & 0 deletions guides/intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
title: Welcome to Guides
slug: /
---

# Unraid Guides

Welcome to the Unraid Guides section. Here you'll find step-by-step tutorials and how-to guides for common Unraid tasks.
6 changes: 6 additions & 0 deletions sidebarsGuides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
guidesSidebar: [{ type: 'autogenerated', dirName: '.' }],
};

module.exports = sidebars;
Loading