You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/bundler.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,16 @@ When using the [vuepress](https://www.npmjs.com/package/vuepress) package, Vite
9
9
If you want to use Webpack bundler instead, you can remove it and install the [vuepress-webpack](https://www.npmjs.com/package/vuepress-webpack) package instead:
Copy file name to clipboardExpand all lines: docs/guide/deployment.md
+42-40Lines changed: 42 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The following guides are based on some shared assumptions:
4
4
5
5
- You are placing your Markdown source files inside the `docs` directory of your project;
6
6
- You are using the default build output location (`.vuepress/dist`);
7
-
- You are using [yarn classic](https://classic.yarnpkg.com/en/) as package manager, while npm is also supported;
7
+
- You are using as [pnpm](https://pnpm.io)package manager, while npm and yarn are also supported;
8
8
- VuePress is installed as a local dependency in your project, and you have setup the following script in `package.json`:
9
9
10
10
```json
@@ -19,13 +19,13 @@ The following guides are based on some shared assumptions:
19
19
20
20
1. Set the correct [base](../reference/config.md#base) config.
21
21
22
-
If you are deploying to `https://<USERNAME>.github.io/`, you can omit this step as `base` defaults to `"/"`.
22
+
If you are deploying to `https://<USERNAME>.github.io/`, you can omit this step as `base` defaults to `"/"`.
23
23
24
-
If you are deploying to `https://<USERNAME>.github.io/<REPO>/`, for example your repository is at `https://github.com/<USERNAME>/<REPO>`, then set `base` to `"/<REPO>/"`.
24
+
If you are deploying to `https://<USERNAME>.github.io/<REPO>/`, for example your repository is at `https://github.com/<USERNAME>/<REPO>`, then set `base` to `"/<REPO>/"`.
25
25
26
26
2. Choose your preferred CI tools. Here we take [GitHub Actions](https://github.com/features/actions) as an example.
27
27
28
-
Create `.github/workflows/docs.yml` to set up the workflow.
28
+
Create `.github/workflows/docs.yml` to set up the workflow.
29
29
30
30
::: details Click to expand sample config
31
31
```yaml
@@ -43,36 +43,30 @@ jobs:
43
43
runs-on: ubuntu-latest
44
44
45
45
steps:
46
-
- uses: actions/checkout@v2
46
+
- uses: actions/checkout@v3
47
47
with:
48
48
# fetch all commits to get last updated time or other git log info
@@ -97,35 +91,43 @@ Please refer to [GitHub Pages official guide](https://pages.github.com/) for mor
97
91
98
92
1. Set the correct [base](../reference/config.md#base) config.
99
93
100
-
If you are deploying to `https://<USERNAME>.gitlab.io/`, you can omit `base` as it defaults to `"/"`.
94
+
If you are deploying to `https://<USERNAME>.gitlab.io/`, you can omit `base` as it defaults to `"/"`.
101
95
102
-
If you are deploying to `https://<USERNAME>.gitlab.io/<REPO>/`, for example your repository is at `https://gitlab.com/<USERNAME>/<REPO>`, then set `base` to `"/<REPO>/"`.
96
+
If you are deploying to `https://<USERNAME>.gitlab.io/<REPO>/`, for example your repository is at `https://gitlab.com/<USERNAME>/<REPO>`, then set `base` to `"/<REPO>/"`.
103
97
104
98
2. Create `.gitlab-ci.yml` to set up [GitLab CI](https://about.gitlab.com/stages-devops-lifecycle/continuous-integration/) workflow.
-**Step 7**: Serve the documentation site in the local server
97
114
98
115
<CodeGroup>
99
-
<CodeGroupItemtitle="YARN"active>
116
+
<CodeGroupItemtitle="PNPM"active>
117
+
118
+
```bash
119
+
pnpm docs:dev
120
+
```
121
+
122
+
</CodeGroupItem>
123
+
124
+
<CodeGroupItemtitle="YARN">
100
125
101
126
```bash
102
127
yarn docs:dev
@@ -113,6 +138,6 @@ npm run docs:dev
113
138
</CodeGroupItem>
114
139
</CodeGroup>
115
140
116
-
VuePress will start a hot-reloading development server at [http://localhost:8080](http://localhost:8080). When you modify your markdown files, the content in the browser will be auto updated.
141
+
VuePress will start a hot-reloading development server at [http://localhost:8080](http://localhost:8080). When you modify your markdown files, the content in the browser will be auto updated.
117
142
118
143
By now, you should have a basic but functional VuePress documentation site. Next, learn about the basics of [configuration](./configuration.md) in VuePress.
0 commit comments