From 78836522b8222661761c9c154b63b0dcb3875af9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 24 Feb 2023 17:47:19 +0800 Subject: [PATCH] docs: remove yarn references --- docs/guide/deploying.md | 26 +++++++++++++------------- docs/guide/markdown.md | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/guide/deploying.md b/docs/guide/deploying.md index aeb0913f..4f5d76de 100644 --- a/docs/guide/deploying.md +++ b/docs/guide/deploying.md @@ -28,13 +28,13 @@ If your site is to be served at a subdirectory (`https://example.com/subdir/`), - You may run this command to build the docs: ```sh - $ yarn docs:build + $ npm run docs:build ``` - Once you've built the docs, you can test them locally by running: ```sh - $ yarn docs:preview + $ npm run docs:preview ``` The `preview` command will boot up a local static web server that will serve the files from `.vitepress/dist` at `http://localhost:4173`. It's an easy way to check if the production build looks fine in your local environment. @@ -55,7 +55,7 @@ If your site is to be served at a subdirectory (`https://example.com/subdir/`), Set up a new project and change these settings using your dashboard: -- **Build Command:** `yarn docs:build` +- **Build Command:** `npm run docs:build` - **Output Directory:** `docs/.vitepress/dist` - **Node Version:** `14` (or above, by default it usually will be 14 or 16, but on Cloudflare Pages the default is still 12, so you may need to [change that](https://developers.cloudflare.com/pages/platform/build-configuration/)) @@ -94,10 +94,10 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f - uses: actions/setup-node@v3 with: node-version: 16 - cache: yarn - - run: yarn install --frozen-lockfile + cache: npm + - run: npm install --frozen-lockfile - name: Build - run: yarn docs:build + run: npm run docs:build - uses: actions/configure-pages@v2 - uses: actions/upload-pages-artifact@v1 with: @@ -136,8 +136,8 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f paths: - node_modules/ script: - - yarn install - - yarn docs:build + - npm install + - npm run docs:build artifacts: paths: - public @@ -155,8 +155,8 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f before_script: - apk add git script: - - yarn install - - yarn docs:build + - npm install + - npm run docs:build artifacts: paths: - public @@ -172,7 +172,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f - **`app_location`**: `/` - **`output_location`**: `docs/.vitepress/dist` - - **`app_build_command`**: `yarn docs:build` + - **`app_build_command`**: `npm run docs:build` ## Firebase @@ -199,7 +199,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f } ``` -2. After running `yarn docs:build`, run this command to deploy: +2. After running `npm run docs:build`, run this command to deploy: ```sh firebase deploy @@ -207,7 +207,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f ## Surge -1. After running `yarn docs:build`, run this command to deploy: +1. After running `npm run docs:build`, run this command to deploy: ```sh npx surge docs/.vitepress/dist diff --git a/docs/guide/markdown.md b/docs/guide/markdown.md index 949b3e31..65541906 100644 --- a/docs/guide/markdown.md +++ b/docs/guide/markdown.md @@ -215,7 +215,7 @@ Wraps in a
- Install required deps with your preferred package manager: ```sh - $ yarn add -D postcss postcss-prefix-selector + $ npm install -D postcss postcss-prefix-selector ``` - Create a file named `docs/.postcssrc.cjs` and add this to it: