Skip to content

Commit 5a298cc

Browse files
committed
vitepress
1 parent 7e2a1f3 commit 5a298cc

File tree

1 file changed

+5
-55
lines changed

1 file changed

+5
-55
lines changed

README.md

Lines changed: 5 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -13,65 +13,15 @@ npm install
1313

1414
### Deploy
1515

16-
Start a development server with hot reload on `localhost:8080/docs/`:
17-
```bash
18-
npx vuepress dev pages/
19-
```
20-
21-
Production build (destionation: `pages/.vuepress/dist`):
22-
```bash
23-
npx vuepress build pages/
24-
```
25-
26-
Build and deploy on GitHub Pages:
27-
28-
```bash
29-
npm run deploy
30-
```
16+
Push to the **main** branch.
3117

3218
### Development
3319

34-
```
35-
.
36-
├── pages
37-
│ ├── .vuepress (Optional)
38-
│ │ ├── components (Optional)
39-
│ │ ├── theme (Optional)
40-
│ │ │ └── Layout.vue
41-
│ │ ├── public (Optional)
42-
│ │ ├── styles (Optional)
43-
│ │ │ ├── index.styl
44-
│ │ │ └── palette.styl
45-
│ │ ├── templates (Optional, Danger Zone)
46-
│ │ │ ├── dev.html
47-
│ │ │ └── ssr.html
48-
│ │ ├── config.js (Optional)
49-
│ │ └── enhanceApp.js (Optional)
50-
│ │
51-
│ ├── README.md
52-
│ ├── manual
53-
│ │ └── README.md
54-
│ └── anotherpage.md
55-
56-
└── package.json
57-
```
58-
59-
- `pages/.vuepress`: It is used to store global configuration, components, static resources, etc.
60-
- `pages/.vuepress/components`: The Vue components in this directory will be automatically registered as global components.
61-
- `pages/.vuepress/theme`: Used to store local theme.
62-
- `pages/.vuepress/styles`: Stores style related files.
63-
- `pages/.vuepress/styles/index.styl`: Automatically applied global style files, generated at the ending of the CSS file, have a higher priority than the default style.
64-
- `pages/.vuepress/styles/palette.styl`: The palette is used to override the default color constants and to set the color constants of Stylus.
65-
- `pages/.vuepress/public`: Static resource directory.
66-
- `pages/.vuepress/templates`: Store HTML template files.
67-
- `pages/.vuepress/templates/dev.html`: HTML template file for development environment.
68-
- `pages/.vuepress/templates/ssr.html`: Vue SSR based HTML template file in the built time.
69-
- `pages/.vuepress/config.js`: Entry file of configuration, can also be yml or toml.
70-
- `pages/.vuepress/enhanceApp.js`: App level enhancement.
20+
Install node, then run:
7121

72-
Image assets using the $baseURL helper
73-
```html
74-
<img :src="$withBase('/foo.png')" alt="foo">
22+
```
23+
# npm i
24+
# npm run docs:dev
7525
```
7626

7727
### License

0 commit comments

Comments
 (0)