Skip to content

Commit

Permalink
Merge pull request #37 from kawamataryo/add-vitepress
Browse files Browse the repository at this point in the history
feat: migrate jekyll to vitepress
  • Loading branch information
kawamataryo authored Jul 29, 2024
2 parents f088397 + fd1036c commit 182a7f7
Show file tree
Hide file tree
Showing 11 changed files with 2,677 additions and 1,007 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ jobs:
name: build pdf and upload release
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
- uses: actions/checkout@v4
with:
node-version: '14'
- run: npm install
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: build pdf
run: npm run build:pdf
run: yarn run build:pdf
- name: create release
id: create_release
uses: actions/create-release@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: create issue
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy VitePress site to Pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build with VitePress
run: yarn run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
11 changes: 6 additions & 5 deletions .github/workflows/lint-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
name: lint text
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14'
- run: npm install
node-version-file: 'package.json'
cache: 'yarn'
- run: yarn install
- name: lint text
run: npm run lint
run: yarn run lint
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ node_modules
.DS_Store
**/*.pdf
.idea
.vscode
docs/.vitepress/cache
docs/.vitepress/dist
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

- [GitHub Pages](https://kawamataryo.github.io/resume/)
- [PDF](https://github.com/kawamataryo/resume/releases)
- [File](https://github.com/kawamataryo/resume/blob/master/docs/README.md)
- [File](https://github.com/kawamataryo/resume/blob/master/docs/index.md)
## Features

### 💅 Lint text
Expand Down Expand Up @@ -53,5 +53,3 @@ Automatically generate issues every three months with GitHub Actions Schedules t

To change the duration or stop the job, edit `.github/workflows/create-issue.yml`.
To change the issue contents, edit `.github/ISSUE_TEMPLATE.md`.


21 changes: 21 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "CV of kawamataRyo",
description: "Kawamata Ryoの職務経歴書",
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
],

sidebar: [],

socialLinks: [
{ icon: 'github', link: 'https://github.com/kawamataryo/resume' }
],
editLink: {
pattern: 'https://github.com/kawamataryo/resume/edit/main/docs/:path'
}
}
})
1 change: 0 additions & 1 deletion docs/_config.yml

This file was deleted.

24 changes: 14 additions & 10 deletions docs/README.md → docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
layout: doc
---

# 職務経歴書

## 基本情報
Expand All @@ -13,12 +17,12 @@

## 各種アカウント

<p>
<a href="https://github.com/kawamataryo" target="_blank"><img alt="Github" src="https://img.shields.io/badge/kawamataryo-%2312100E.svg?&style=flat-square&logo=Github&logoColor=white" /></a>
<a href="https://twitter.com/KawamataRyo" target="_blank"><img alt="Twitter" src="https://img.shields.io/badge/@KawamataRyo-%231DA1F2.svg?&style=flat-square&logo=twitter&logoColor=white" /></a>
<a href="https://qiita.com/ryo2132" target="_blank"><img alt="Medium" src="https://img.shields.io/badge/ryo2132-55C500.svg?&style=flat-square&logo=qiita&logoColor=white" /></a>
<a href="https://zenn.dev/ryo_kawamata" target="_blank"><img alt="Zenn" src="https://img.shields.io/badge/ryo_kawamata-3EA8FF.svg?&style=flat-square&logo=Zenn&logoColor=white" /></a>
<a href="https://speakerdeck.com/kawamataryo" target="_blank"><img alt="SpeakerDeck" src="https://img.shields.io/badge/kawamataryo-009287.svg?&style=flat-square&logo=SpeakerDeck&logoColor=white" /></a>
<p style="display: flex; gap: 8px; flex-wrap: wrap;">
<a href="https://github.com/kawamataryo" target="_blank"><img alt="Github" src="https://img.shields.io/badge/kawamataryo-%2312100E.svg?&style=flat-square&logo=Github&logoColor=white" /></a>
<a href="https://twitter.com/KawamataRyo" target="_blank"><img alt="Twitter" src="https://img.shields.io/badge/@KawamataRyo-%231DA1F2.svg?&style=flat-square&logo=twitter&logoColor=white" /></a>
<a href="https://qiita.com/ryo2132" target="_blank"><img alt="Medium" src="https://img.shields.io/badge/ryo2132-55C500.svg?&style=flat-square&logo=qiita&logoColor=white" /></a>
<a href="https://zenn.dev/ryo_kawamata" target="_blank"><img alt="Zenn" src="https://img.shields.io/badge/ryo_kawamata-3EA8FF.svg?&style=flat-square&logo=Zenn&logoColor=white" /></a>
<a href="https://speakerdeck.com/kawamataryo" target="_blank"><img alt="SpeakerDeck" src="https://img.shields.io/badge/kawamataryo-009287.svg?&style=flat-square&logo=SpeakerDeck&logoColor=white" /></a>
</p>

---
Expand All @@ -39,7 +43,7 @@

### 言語

<p>
<p style="display: flex; gap: 8px; flex-wrap: wrap;">
<img alt="TypeScript" src="https://img.shields.io/badge/-TypeScript-007ACC?style=flat-square&logo=typescript&logoColor=white" />
<img alt="JavaScript" src="https://img.shields.io/badge/-JavaScript-F7DF1E?style=flat-square&logo=JavaScript&logoColor=white" />
<img alt="Ruby" src="https://img.shields.io/badge/-Ruby-CC342D?style=flat-square&logo=Ruby&logoColor=white" />
Expand All @@ -51,7 +55,7 @@

### フレームワーク・その他

<p>
<p style="display: flex; gap: 8px; flex-wrap: wrap;">
<img alt="Vue" src="https://img.shields.io/badge/-Vue.js-4FC08D?style=flat-square&logo=Vue.js&logoColor=white" />
<img alt="React" src="https://img.shields.io/badge/-React-45b8d8?style=flat-square&logo=react&logoColor=white" />
<img alt="Ruby-on-Rails" src="https://img.shields.io/badge/-Rails-CC0000?style=flat-square&logo=Ruby-on-Rails&logoColor=white" />
Expand Down Expand Up @@ -340,7 +344,7 @@ AI ヘッドハンティングサービス LAPRAS SCOUT の開発。

## 希望条件

- 地方在住なのでフルリモートワークでの勤務を希望します(月数回の出社等は可)
- 地方在住なのでフルリモートワークでの勤務が前提となります(月数回の出社等は可)
- 少人数チームで小さく素早くリリースし、フィードバックを受けながら改善のサイクルを回していくアジャイルな開発スタイルを好みます
- ユーザーファーストなプロダクトを作っていく過程が好きです。言われたとおりにただ作るのではなく、機能要件に対しても一緒に考えていけるチームだと良いです
- ユーザーファーストなプロダクトを作っていく過程が好きです。言われたとおりにただ作るのではなく、機能要件に対しても一緒に考えていけるチームだとより良いです
- 新しい挑戦(技術的なもの・制度的なもの)に積極的に取り組める環境が好きです
35 changes: 21 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "kawamataryoの職務経歴書",
"scripts": {
"lint": "textlint docs/README.md",
"build:pdf": "md-to-pdf docs/README.md --config-file ./pdf-configs/config.js"
"build:pdf": "md-to-pdf docs/index.md --config-file ./pdf-configs/config.js",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"repository": {
"type": "git",
Expand All @@ -13,27 +16,31 @@
"keywords": [],
"author": "Ryo Kawamata <ba068082@gmail.com>",
"devDependencies": {
"husky": "^5.0.0-alpha.6",
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "^1.0.1",
"md-to-pdf": "^5.0.0",
"textlint": "^11.6.3",
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "^2.0.1",
"husky": "^5.0.0",
"md-to-pdf": "^5.2.4",
"textlint": "^14.0.4",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-filter-rule-whitelist": "^2.0.0",
"textlint-rule-abbr-within-parentheses": "^1.0.2",
"textlint-rule-footnote-order": "^1.0.3",
"textlint-rule-general-novel-style-ja": "^1.3.0",
"textlint-rule-ja-hiragana-fukushi": "^1.2.0",
"textlint-rule-ja-hiragana-hojodoushi": "^1.0.4",
"textlint-rule-ja-hiragana-keishikimeishi": "^1.0.2",
"textlint-rule-ja-hiragana-fukushi": "^1.3.0",
"textlint-rule-ja-hiragana-hojodoushi": "^1.1.0",
"textlint-rule-ja-hiragana-keishikimeishi": "^1.1.0",
"textlint-rule-ja-unnatural-alphabet": "^2.0.1",
"textlint-rule-ng-word": "^1.0.0",
"textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet": "^1.0.1",
"textlint-rule-period-in-list-item": "^0.3.2",
"textlint-rule-period-in-list-item": "^1.0.1",
"textlint-rule-prefer-tari-tari": "^1.0.3",
"textlint-rule-preset-ja-spacing": "^2.0.2",
"textlint-rule-preset-ja-technical-writing": "^3.1.3",
"textlint-rule-preset-jtf-style": "^2.3.4",
"textlint-rule-prh": "^5.3.0",
"textlint-rule-spellcheck-tech-word": "^5.0.0"
"textlint-rule-preset-ja-spacing": "^2.4.3",
"textlint-rule-preset-ja-technical-writing": "^10.0.1",
"textlint-rule-preset-jtf-style": "^2.3.14",
"textlint-rule-prh": "^6.0.0",
"textlint-rule-spellcheck-tech-word": "^5.0.0",
"vitepress": "^1.3.1"
},
"engines": {
"node": "20.x"
}
}
Loading

0 comments on commit 182a7f7

Please sign in to comment.