Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotaro666-dev authored Nov 11, 2022
0 parents commit 75f0a29
Show file tree
Hide file tree
Showing 15 changed files with 3,907 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Please update your resume【{{ date | date('YYYY/MM/DD') }}】
labels: enhancement
---

The quarter has passed.
Please describe your accomplishments during this period in your resume.
39 changes: 39 additions & 0 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build pdf

on:
push:
tags:
- 'v*'

jobs:
build:
name: build pdf and upload release
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- run: npm install
- name: build pdf
run: npm run build:pdf
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./docs/README.pdf
asset_name: resume.pdf
asset_content_type: application/pdf
15 changes: 15 additions & 0 deletions .github/workflows/create-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: create issue

on:
schedule:
- cron: '0 0 1 */3 *'

jobs:
build:
name: create issue
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/lint-text.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: lint text

on: [push, pull_request]

jobs:
build:
name: lint text
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- run: npm install
- name: lint text
run: npm run lint
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.DS_Store
**/*.pdf
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"

npm run lint
131 changes: 131 additions & 0 deletions .textlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"rules": {
"preset-ja-technical-writing": {
"sentence-length": {
"max": 120,
"severity": "warning"
},
"max-comma": {
"max": 3
},
"max-ten": {
"max": 3
},
"max-kanji-continuous-len": {
"max": 6
},
"arabic-kanji-numbers": true,
"no-mix-dearu-desumasu": {
"preferInHeader": "",
"preferInBody": "ですます",
"preferInList": "である",
"strict": false
},
"ja-no-mixed-period": {
"periodMark": "。",
"severity": "warning"
},
"no-double-negative-ja": true,
"no-dropping-the-ra": true,
"no-doubled-conjunctive-particle-ga": {
"severity": "warning"
},
"no-doubled-conjunction": true,
"no-doubled-joshi": {
"min_interval": 1,
"severity": "warning"
},
"no-nfd": true,
"no-invalid-control-character": false,
"no-exclamation-question-mark": false,
"no-hankaku-kana": true,
"ja-no-weak-phrase": {
"severity": "warning"
},
"ja-no-successive-word": true,
"ja-no-abusage": true,
"ja-no-redundant-expression": {
"severity": "warning"
},
"ja-unnatural-alphabet": {
"allow": [
"/[A-Z]/"
],
"allowCommonCase": true
},
"no-unmatched-pair": true
},
"preset-jtf-style": {
"1.1.1.本文": true,
"1.1.2.見出し": true,
"1.1.3.箇条書き": true,
"1.1.5.図表のキャプション": true,
"1.2.1.句点(。)と読点(、)": true,
"1.2.2.ピリオド(.)とカンマ(,)": true,
"2.1.2.漢字": false,
"2.1.5.カタカナ": false,
"2.1.6.カタカナの長音": false,
"2.1.8.算用数字": true,
"2.1.9.アルファベット": true,
"2.1.10.算用数字の位取りの表記": true,
"2.2.1.ひらがなと漢字の使い分け": false,
"2.2.2.算用数字と漢数字の使い分け": true,
"2.2.3.一部の助数詞の表記": true,
"3.1.1.全角文字と半角文字の間": false,
"3.1.2.全角文字どうし": false,
"3.2.カタカナ語間のスペースの有無": true,
"3.3.かっこ類と隣接する文字の間のスペースの有無": true,
"4.1.1.句点(。)": true,
"4.1.3.ピリオド(.)、カンマ(,)": true,
"4.2.1.感嘆符(!)": true,
"4.2.2.疑問符(?)": true,
"4.2.4.中黒(・)": true,
"4.2.5.波線(〜)": true,
"4.2.6.ハイフン(-)": true,
"4.2.7.コロン(:)": true,
"4.2.8.セミコロン(;)": true,
"4.2.9.ダッシュ(-)": true,
"4.3.1.丸かっこ()": true,
"4.3.2.大かっこ[]": true,
"4.3.3.かぎかっこ「」": true,
"4.3.4.二重かぎかっこ『』": true,
"4.3.5.二重引用符": true,
"4.3.6.中かっこ{ }": true,
"4.3.7.山かっこ<>": true,
"4.3.8.一重引用符": true
},
"preset-ja-spacing": {
"ja-space-between-half-and-full-width": {
"space": "always"
},
"ja-space-around-code": false,
"ja-no-space-between-full-width": true,
"ja-nakaguro-or-halfwidth-space-between-katakana": true,
"ja-no-space-around-parentheses": true,
"ja-space-after-exclamation": false,
"ja-space-after-question": false,
"ja-no-space-between-full-width": false
},
"spellcheck-tech-word": true,
"period-in-list-item": {
"periodMark": "",
"periodMarks": [
".",
"。",
"."
],
"ignoreLinkEnd": true,
"allowPeriodMarks": [],
"allowEmoji": false,
"forceAppendPeriod": false
},
"ja-hiragana-keishikimeishi": true,
"ja-hiragana-fukushi": true,
"ja-hiragana-hojodoushi": true,
"@textlint-ja/textlint-rule-no-insert-dropping-sa": true,
"prefer-tari-tari": false,
"abbr-within-parentheses": true,
"no-mixed-zenkaku-and-hankaku-alphabet": true,
"footnote-order": true
}
}
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# { name } resume

## Sample

https://github.com/kawamataryo/resume

## Features

### 💅 Lint text

Automatic proofreading with [textlint](https://github.com/textlint/textlint).

```
$ yarn lint --fix
```
It is also automatically executed when pre-commit by [husky](https://github.com/typicode/husky).
proofreading rules are set with `.textlintrc`.



### 📝 Convert MD to PDF

You can generate PDF with [md-to-pdf](https://www.npmjs.com/package/md-to-pdf).


```
$ yarn build:pdf
```

The output PDF can be styled as you like with CSS. Edit the `pdf-configs/style.css`.

### 🛠 Create release

When you push with a `v**` tag, GitHub Actions will run the build, generate the PDF, create a Release, and register the PDF to Assets.

```
$ git commit -m "add job"
$ git tag v1.0
$ git push origin --tags
```

### 📆 Remind update

Automatically generate issues every three months with GitHub Actions Schedules triggers to prompt you to update your resume.

To change the duration or stop the job, edit `.github/workflows/create-issue.yml`.
To change the issue contents, edit `.github/ISSUE_TEMPLATE.md`.
48 changes: 48 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 職務経歴書

## 基本情報

|key|value|
|---|---|
|氏名||
|生年月日||
|Twitter||
|Qiita||
|note||
|Zenn||
|SpeakerDeck||

---

## 保有スキル

-


---

## 技術スタック

### 言語

-

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

-

---

## 職務経歴詳細

### A株式会社(2020/04〜現在)

-

### B株式会社(2015/04〜2020/03)

-

## 業務外活動

-
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "resume-template",
"version": "1.0.0",
"description": "resume template",
"scripts": {
"lint": "textlint docs/README.md",
"build:pdf": "md-to-pdf docs/README.md --config-file ./pdf-configs/config.js"
},
"keywords": [],
"devDependencies": {
"husky": "^5.0.0-alpha.6",
"@textlint-ja/textlint-rule-no-insert-dropping-sa": "^1.0.1",
"md-to-pdf": "^3.1.1",
"textlint": "^11.6.3",
"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-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-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"
}
}
16 changes: 16 additions & 0 deletions pdf-configs/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
stylesheet: "./pdf-configs/style.css",
body_class: "markdown-body",
marked_options: {
headerIds: false,
smartypants: true,
},
pdf_options: {
"format": "A4",
"margin": "30mm 20mm",
"printBackground": true,
"headerTemplate": "<style>\n section {\n margin: 0 auto;\n font-size: 9px;\n }\n</style>",
"footerTemplate": "<section>\n <div>\n <span class=\"pageNumber\"></span>\n / <span class=\"totalPages\"></span>\n </div>\n</section>"
},
stylesheet_encoding: "utf-8",
};
Loading

0 comments on commit 75f0a29

Please sign in to comment.