-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy vitepress example from vercel/vercel (#1041)
- Loading branch information
1 parent
8fb5a40
commit 4693b62
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vercel | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# VitePress | ||
|
||
This directory is a brief example of a [VitePress](https://vitepress.vuejs.org/) site that can be deployed to Vercel with zero-configuration. | ||
|
||
## Setup | ||
|
||
Install the dependencies | ||
|
||
```bash | ||
$ yarn install | ||
``` | ||
|
||
## Deploy Your Own | ||
|
||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/framework-boilerplates/vitepress&template=vitepress) | ||
|
||
_Live Example: https://vitepress-starter-template.vercel.app_ | ||
|
||
## Setup | ||
|
||
Install the dependencies: | ||
|
||
```bash | ||
$ yarn install | ||
``` | ||
|
||
### Development | ||
|
||
Start the development server | ||
|
||
```bash | ||
$ yarn dev | ||
``` | ||
|
||
### Build the project | ||
|
||
Build for production | ||
|
||
```bash | ||
$ yarn build | ||
``` | ||
|
||
### Deploy | ||
|
||
Deploy your VitePress application to Vercel | ||
|
||
```bash | ||
$ vercel | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# About | ||
|
||
Lorem ipsum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Hello VitePress | ||
|
||
Lorem ipsum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "vitepress-template", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"vitepress": "1.1.3" | ||
}, | ||
"scripts": { | ||
"dev": "vitepress dev docs", | ||
"build": "vitepress build docs", | ||
"serve": "vitepress serve docs" | ||
} | ||
} |