Skip to content

Commit 9c55e3f

Browse files
author
grizzlechips
committed
refactor: update sidebar sorting and improve documentation clarity
- Changed import path for sidebar sorting utility from `sitebar-semver-sort.js` to `sidebar-semver-sort.js`. - Removed outdated `sitebar-semver-sort` TypeScript definition and JavaScript implementation. - Updated various documentation files for consistency, including fixing minor grammatical issues and improving formatting for better readability. - Adjusted links in the Docusaurus configuration to point to the new overview page for managing storage arrays.
1 parent 41581ba commit 9c55e3f

8 files changed

Lines changed: 18 additions & 18 deletions

File tree

.remarkrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function normalizeDirectiveFences(value) {
195195

196196
// Filter out any null/undefined entries (unmatched closers) before joining
197197
// so we don't introduce blank lines into the output.
198-
return normalized.filter(Boolean).join("\n");
198+
return normalized.filter(v => v != null).join("\n");
199199
}
200200

201201
function stripDanglingDirectiveClosings() {

docs/unraid-os/system-administration/advanced-tools/command-line-interface.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ Unraid includes **Midnight Commander** (`mc`), a text-based, dual-pane file mana
488488
protected with `chmod 600`.
489489

490490
4. Use the MC panes to transfer files between `/work` (the network share) and any `/mnt/user/` or `/mnt/diskX` share.
491-
5. Clean up afterwards:
491+
5. Clean up afterward:
492492

493493
```bash
494494
umount /work

docs/unraid-os/troubleshooting/licensing-faq.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ For bulk OEM/reseller pricing (10 licenses or more), [contact Unraid](https://un
116116

117117
You can upgrade your license at any time from within the %%WebGUI|web-gui%% (***Tools → Registration***) or [via the account portal](https://account.unraid.net/keys) (by clicking **••• More** and selecting **Upgrade Key**).
118118

119-
<div style={{ display: 'flex', justifyContent: 'center', margin: '20px 0' }}>
119+
<div style={{ display: "flex", justifyContent: "center", margin: "20px 0" }}>
120120

121121
| Upgrade Path | One-Time Upgrade Fee | New Device Limit¹ |
122122
| -------------------- | -------------------- | ----------------- |
@@ -195,7 +195,7 @@ You continue to own your license even if you stop paying for updates.
195195

196196
Here are the current limits:
197197

198-
<div style={{ display: 'flex', justifyContent: 'center', margin: '20px 0' }}>
198+
<div style={{ display: "flex", justifyContent: "center", margin: "20px 0" }}>
199199

200200
| License Tier | %%Parity\|parity%%-Protected %%Array\|array%% | Named Pools | Devices per Pool | Total Storage Devices |
201201
| ------------ | --------------------------------------------- | ----------- | ---------------- | --------------------- |

docs/unraid-os/using-unraid-to/manage-storage/array/adding-disks-to-array.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ For a more thorough approach, the pre-clear operation – available through plug
4747
alignItems: "center",
4848
}}
4949
>
50-
| | Clear | Pre-Clear |
51-
|----------------|-------------------------------|----------------------------------------------|
52-
| **Purpose** | Ensures basic disk compatibility | Tests drive health and
53-
prepares for use | | **Speed** | Fast | Significantly slower | | **Array
54-
Impact** | Background operation | Disk offline required | | **Best for** |
55-
Quick expansions | Preparing/checking new drives |
50+
| | Clear | Pre-Clear |
51+
|---|---|---|
52+
| **Purpose** | Ensures basic disk compatibility | Tests drive health and prepares for use |
53+
| **Speed** | Fast | Significantly slower |
54+
| **Array Impact** | Background operation | Disk offline required |
55+
| **Best for** | Quick expansions | Preparing/checking new drives |
5656
</div>
5757

5858
**Clear** quickly prepares a disk for use, making it compatible with your system and allowing you to add storage in just a few hours.

docs/unraid-os/using-unraid-to/manage-storage/array/replacing-disks-in-array.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ Use a parity swap when your replacement data drive is larger than your current p
212212

213213
:::important[Prerequisites]
214214

215-
- Before starting, ensure the data drive you want to replace is disabled. If the drive has failed (shows a red indicator), it is already disabled. If the drive is healthy but you want to replace it, unassign the drive and start the array once without it to force Unraid to mark it as disabled.
216-
- If your replacement data drive is not larger than your parity drive, use the standard [Replacing failed/disabled disks](#replacing-faileddisabled-disks) procedure instead.
217-
- This procedure is only needed for replacing data drives in an Unraid array with a disk larger than the current parity drive. If you only need to upgrade your parity drive, simply remove the old parity drive, add the new one, and start the array. Parity will rebuild automatically.
215+
- Before starting, ensure the data drive you want to replace is disabled. Failed drives (showing a red indicator) are already disabled. For healthy drives you want to replace, unassign the drive and start the array once without it to force Unraid to mark it as disabled.
216+
- When your replacement data drive is not larger than your parity drive, use the standard [Replacing failed/disabled disks](#replacing-faileddisabled-disks) procedure instead.
217+
- This procedure is only needed for replacing data drives in an Unraid array with a disk larger than the current parity drive. For parity drive upgrades only, simply remove the old parity drive, add the new one, and start the array. Parity will rebuild automatically.
218218

219219
:::
220220

docusaurus.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import remarkLintNoHeadingPunctuation from "remark-lint-no-heading-punctuation";
2222
import remarkLintNoMultipleToplevelHeadings from "remark-lint-no-multiple-toplevel-headings";
2323
import remarkLintNoShellDollars from "remark-lint-no-shell-dollars";
2424
import jsxContentSpacing from "./remark-jsx-spacing.js";
25-
import { sortSidebarItems } from "./sitebar-semver-sort.js";
25+
import { sortSidebarItems } from "./sidebar-semver-sort.js";
2626

2727
const __dirname = path.dirname(fileURLToPath(import.meta.url));
2828

@@ -331,7 +331,7 @@ const config: Config = {
331331
},
332332
{
333333
from: "/legacy/FAQ/Parity/",
334-
to: "/unraid-os/using-unraid-to/manage-storage/array/",
334+
to: "/unraid-os/using-unraid-to/manage-storage/array/overview/",
335335
},
336336
{
337337
from: "/legacy/FAQ/parity-swap-procedure/",
@@ -551,7 +551,7 @@ const config: Config = {
551551
},
552552
{
553553
from: "/unraid-os/manual/storage-management/",
554-
to: "/unraid-os/using-unraid-to/manage-storage/array/",
554+
to: "/unraid-os/using-unraid-to/manage-storage/array/overview/",
555555
},
556556
{ from: "/unraid-os/manual/tools/", to: "/category/advanced-tools/" },
557557
{
@@ -850,7 +850,7 @@ const config: Config = {
850850
},
851851
{
852852
from: "/go/parity/",
853-
to: "/unraid-os/using-unraid-to/manage-storage/array/",
853+
to: "/unraid-os/using-unraid-to/manage-storage/array/overview/",
854854
},
855855
{
856856
from: "/go/quick-install-guide-assigning-devices/",
@@ -899,7 +899,7 @@ const config: Config = {
899899
},
900900
{
901901
from: "/go/storage-management/",
902-
to: "/unraid-os/using-unraid-to/manage-storage/array/",
902+
to: "/unraid-os/using-unraid-to/manage-storage/array/overview/",
903903
},
904904
{
905905
from: "/go/syslog-server/",

0 commit comments

Comments
 (0)