diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 5284d95974d..17e2a506703 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -10,14 +10,20 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + run_install: false + - name: Setup Node.js uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' - cache: npm + cache: pnpm + cache-dependency-path: pnpm-lock.yaml - name: Install dependencies - run: npm ci + run: pnpm install --frozen-lockfile --prefer-offline - name: Run lint - run: npm run lint + run: pnpm lint diff --git a/.gitignore b/.gitignore index 1a6f6d82e12..b5d3accf7e5 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,6 @@ tmp/docusaurus-lint .env.production.local npm-debug.log* +pnpm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/README.md b/README.md index baa77e0df63..ad4341134d8 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,8 @@ Follow these steps to work on the docs locally. ### Prerequisites -* Node.js 18 or newer (see the `package.json` `engines` field) -* npm (ships with Node.js) +* Node.js 22 or newer (see the `package.json` `engines` field) +* pnpm via [Corepack](https://nodejs.org/api/corepack.html) * Recommended: [nvm](https://github.com/nvm-sh/nvm) for managing Node versions Install or update Node with nvm: @@ -123,7 +123,8 @@ nvm use 2. Install dependencies ```bash - npm install + corepack enable + pnpm install ```

(back to top)

@@ -134,7 +135,7 @@ nvm use Spin up a local Docusaurus dev server: ```bash -npm run start +pnpm start ``` The local docs dev server listens on `http://localhost:3001` by default. This keeps local iframe/embed testing aligned with [`iframe-test.html`](iframe-test.html) and other localhost examples in the repo. @@ -142,23 +143,23 @@ The local docs dev server listens on `http://localhost:3001` by default. This ke Preview specific locales (one at a time): ```bash -npm run start -- --locale zh -npm run start -- --locale es +pnpm start -- --locale zh +pnpm start -- --locale es ``` Run Docusaurus lint/build checks: ```bash -npm run lint +pnpm lint ``` Additional project scripts: -* Type check TypeScript: `npm run typecheck` -* Unit tests (watch): `npm run test` -* Single test run (CI): `npm run test:run` -* Build production site: `npm run build` -* Preview production build: `npm run serve` +* Type check TypeScript: `pnpm typecheck` +* Unit tests (watch): `pnpm test` +* Single test run (CI): `pnpm test:run` +* Build production site: `pnpm build` +* Preview production build: `pnpm serve`

(back to top)

@@ -171,7 +172,7 @@ Once you're comfortable with the guidelines, typical workflow looks like: 1. Fork the project 2. Create a feature branch (`git checkout -b docs/your-change`) -3. Run `npm run lint` before committing +3. Run `pnpm lint` before committing 4. Commit with a clear message (`git commit -m "docs: describe change"`) 5. Push to your fork and open a pull request against `main` diff --git a/docs/unraid-os/getting-started/set-up-unraid/internal-boot-faq.mdx b/docs/unraid-os/getting-started/set-up-unraid/internal-boot-faq.mdx index 009dfa423d1..821a03928f6 100644 --- a/docs/unraid-os/getting-started/set-up-unraid/internal-boot-faq.mdx +++ b/docs/unraid-os/getting-started/set-up-unraid/internal-boot-faq.mdx @@ -4,6 +4,8 @@ sidebar_label: Internal Boot FAQ toc_max_heading_level: 3 --- +import ResponsiveEmbed from "@site/src/components/ResponsiveEmbed"; + # Internal Boot FAQ This page contains frequently asked questions about internal boot in Unraid OS. For general licensing questions, see the [Licensing FAQ](../../troubleshooting/licensing-faq.mdx). For TPM-based licensing questions, see the [TPM Licensing FAQ](../../troubleshooting/tpm-licensing-faq.mdx). @@ -19,32 +21,18 @@ If you'd rather watch a step-by-step walkthrough, these videos cover both common

New server setup

-
-