Skip to content

Commit

Permalink
Setup blog
Browse files Browse the repository at this point in the history
  • Loading branch information
mziyut committed Nov 9, 2023
1 parent 5cf6160 commit 97a45e3
Show file tree
Hide file tree
Showing 13 changed files with 1,327 additions and 24 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/blog_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Blog - Test

on:
push:
paths:
- 'blog/**'
- '.github/workflows/blog_test.yml'

permissions:
contents: read
packages: read
issues: read

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
textlint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'yarn'
- run: yarn install
- run: yarn workspace blog textlint

prettier:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'yarn'
- run: yarn install
- run: yarn workspace blog prettier
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
blog/_book/
blog/contents/SUMMARY.md
qiita/public/.remote
tmp
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
[![Qiita - Test](https://github.com/mziyut/articles/actions/workflows/qiita_test.yml/badge.svg?branch=main)](https://github.com/mziyut/articles/actions/workflows/qiita_test.yml)
[![Qiita - pull articles](https://github.com/mziyut/articles/actions/workflows/qiita_pull_articles.yml/badge.svg?branch=main)](https://github.com/mziyut/articles/actions/workflows/qiita_pull_articles.yml)

https://qiita.com/mziyut
https://qiita.com/mziyut
1 change: 1 addition & 0 deletions blog/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_book
2 changes: 2 additions & 0 deletions blog/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_book/
contents/SUMMARY.md
9 changes: 9 additions & 0 deletions blog/.textlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": {},
"filters": {
"comments": true
},
"rules": {
"no-todo": true
}
}
36 changes: 36 additions & 0 deletions blog/book.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"root": "./contents",
"title": "mziyut's Blog",
"author": "Yuta Mizui",
"plugins": [
"@honkit/honkit-plugin-ga",
"back-to-top-button",
"breadcrumbs",
"collapsible-chapters",
"copy-code-button",
"intopic-toc",
"prism",
"sitemap",
"summary-pro",
"-highlight"
],
"pluginsConfig": {
"breadcrumbs": {
"home": "HOME"
},
"ga": {
"trackingID": "G-7SYKLZ9JCP"
},
"prism": {
"css": ["prismjs/themes/prism-tomorrow.css"]
},
"sitemap": {
"hostname": "https://mziyut.com/"
},
"summary-pro": {
"firstpage": {
"title": "Top"
}
}
}
}
8 changes: 8 additions & 0 deletions blog/contents/2023/11/09/re-created-blog-with-honkit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# HonKit で Blog を作り直した

Honkit で Blog を作り直した。
元々、 Hugo や Gatsby で作っていたがオーバースペックだったので HonKit に置き換えた。

HonKit の Plugin をいくつかメンテナンスしなければならないのも理由の1つ。

過去記事はタイミングを見て移行する。
1 change: 1 addition & 0 deletions blog/contents/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# mziyut's Blog
7 changes: 7 additions & 0 deletions blog/contents/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- [Top](README.md)

## 2023

- [11]()
- [09]()
- [Re Created Blog With Honkit](2023/11/09/re-created-blog-with-honkit.md)
40 changes: 40 additions & 0 deletions blog/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "blog",
"version": "0.1.0",
"description": "mziyut's blog",
"main": "index.js",
"scripts": {
"serve": "honkit serve",
"build": "honkit build",
"format": "run-s prettier",
"format:fix": "run-s prettier:fix",
"prettier": "prettier --check .",
"prettier:fix": "prettier --write .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Yuta Mizui <[email protected]>",
"license": "MIT",
"dependencies": {
"@honkit/honkit-plugin-ga": "^1.0.1",
"gitbook-plugin-back-to-top-button": "^0.1.4",
"gitbook-plugin-collapsible-chapters": "^0.1.8",
"gitbook-plugin-copy-code-button": "^0.0.2",
"gitbook-plugin-intopic-toc": "^1.1.1",
"gitbook-plugin-sitemap": "^1.2.0",
"gitbook-plugin-summary-pro": "^1.0.0",
"honkit": "^5.1.1",
"honkit-plugin-breadcrumbs": "^0.0.2",
"honkit-plugin-prism": "^2.5.1"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"textlint": "^13.3.3",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-rule-no-todo": "^2.0.1"
},
"prettier": {
"singleQuote": true
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"homepage": "https://github.com/mziyut/articles#readme",
"private": true,
"workspaces": [
"blog",
"devto",
"qiita"
],
Expand Down
Loading

0 comments on commit 97a45e3

Please sign in to comment.