Skip to content

Commit

Permalink
start-blog
Browse files Browse the repository at this point in the history
  • Loading branch information
O-h-y-o committed Jun 23, 2023
1 parent f2224f6 commit 9b15c1a
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ko/posts/vuepress/start-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ initialize repo

프로젝트가 만들어졌으면, 깃허브 홈페이지로 들어가서 `username.github.io` 라는 이름으로 github public repo 를 만들어줍니다.

vuepress로 만든 프로젝트에서 터미널을 열어주고 깃 저장소에 연결하겠습니다..
::: info

repo 를 만들고 Settings 탭 => Actions => General 로 들어가서 Workflow permissions의 옵션 중 Read and write permissions 로 바꿔주고 Save를 해줍니다.

:::

vuepress로 만든 프로젝트에서 터미널을 열어주고 깃 저장소에 연결하겠습니다.

```sh
$ git init
Expand Down
88 changes: 88 additions & 0 deletions src/posts/vuepress/start-blog.md
Original file line number Diff line number Diff line change
@@ -1 +1,89 @@
# Vuepress Theme 로 블로그 만들기

Let's create a development blog with the Vuepress Hope theme.

::: code-tabs#shell

@tab:active pnpm

```bash
pnpm create vuepress-theme-hope [dir]
```

@tab yarn

```bash
yarn create vuepress-theme-hope [dir]
```

@tab npm

```bash
npm init vuepress-theme-hope [dir]
```

:::

- In [dir], you must put the name of the actual folder you want to create.

```
language
package manager
Project Name
Project version
Project description
license
multiple languages
github workflow
type of project
initialize repo
```

- You have to make about 10 choices.

<br/>
<br/>

When the project is created, go to the GitHub homepage and create a github public repo with the name `username.github.io`.

::: info

Create a repo, go to Settings tab => Actions => General, change the Workflow permissions option to `Read and write permissions` and click Save.

:::

I'll open a terminal in the project created with vuepress and connect to the git repository.

```sh
$ git init
$ git remote add origin [url]
$ git branch -m master main
$ git add .
$ git commit -m "message"
$ git push
```

If you get a branch error in git push, please enter the following command.

```sh
$ git push --set-upstream origin main
```

vuepress hope provides a github actions template by default.

```
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
```

There is something called `Install pnpm` in the middle, and you need to put the version as follows.

```
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
```

0 comments on commit 9b15c1a

Please sign in to comment.