-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
263 additions
and
303 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
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 @@ | ||
module.exports = { | ||
host: "https://mizchi.dev", | ||
siteName: "mizdev", | ||
author: "mizchi", | ||
authorLink: "https://twitter.com/mizchi", | ||
lang: "ja", | ||
gtag: "UA-165420141-1", | ||
repository: "mizchi/amdx", | ||
socialShare: { | ||
twitter: true, | ||
hatena: true, | ||
facebook: true, | ||
}, | ||
}; |
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
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
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
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 |
---|---|---|
@@ -1,66 +1,66 @@ | ||
--- | ||
title: mdxx-ssg@0.5.0 - mdxx-ssg-cli & mdxx-components | ||
title: amdxg@0.5.0 - amdxg-cli & amdx-components | ||
created: 1588952818281 | ||
tags: [mdxx] | ||
tags: [amdx] | ||
--- | ||
|
||
## ChangeLog | ||
|
||
- mdxx-parser | ||
- amdx | ||
- `$$ ~ $$` の数式ブロックを amp-mathml に変換 | ||
- mdxx-ssg-components | ||
- `mdxx-ssg` は現状単なるボイラープレートだが、設定が最小で済むように `Layout` `Article` などに抽出 | ||
- amdxg-components | ||
- `amdxg` は現状単なるボイラープレートだが、設定が最小で済むように `Layout` `Article` などに抽出 | ||
- [amp-social-share で、はてなブックマークに対応](/amp-social-share-for-hatena-bookmark) | ||
- mdxx-ssg-cli: CLI ツール | ||
- amdxg-cli: CLI ツール | ||
- 記事一覧の生成 (`gen/pages.json`) | ||
- 記事のヒストリーの生成 (`gen/*.history.json`) | ||
|
||
## mdxx-ssg-cli のインストール | ||
## amdxg-cli のインストール | ||
|
||
```bash | ||
npm install -g mdxx-ssg-cli | ||
npm install -g amdxg-cli | ||
``` | ||
|
||
## mdxx-ssg new | ||
## amdxg new | ||
|
||
WIP | ||
|
||
## new feature: 新規記事の作成 | ||
|
||
``` | ||
mdxx-ssg new:page [foo] | ||
amdxg new:page [foo] | ||
``` | ||
|
||
## new feature: インデックスの記事一覧とヒストリーの生成 | ||
|
||
``` | ||
mdxx-ssg build:index | ||
amdxg build:index | ||
``` | ||
|
||
`docs` ディレクトリの記事一覧から、`gen/pages.json` を生成する。 | ||
|
||
``` | ||
mdxx-ssg build:history | ||
amdxg build:history | ||
``` | ||
|
||
`docs/*.mdx` の git コミットログから変更ヒストリーを生成する。 | ||
|
||
```tsx | ||
import history from "../gen/pages/foo.history.json"; | ||
import { History } from "mdxx-ssg-components"; | ||
import { History } from "amdxg-components"; | ||
|
||
<History history={history} />; | ||
``` | ||
|
||
mdxx-ssg.json で、もし `"repository": "mizchi/mdxx"` のように GitHub のリポジトリを指定していると、そのコミットへのリンクになる。 | ||
amdxg.config で、もし `"repository": "mizchi/amdx"` のように GitHub のリポジトリを指定していると、そのコミットへのリンクになる。 | ||
|
||
## TODO | ||
|
||
- `pages/sitemap.xml`: sitemap 対応 | ||
- `pages/feed.rss`: feed 対応 | ||
- `mdxx-ssg new your-blog`: 最新版から scaffold できるようにする | ||
- `mdxx-ssg new:page` 時、記事生成のテンプレート化できるようにする対応 | ||
- `mdxx-ssg-components`: `Layout` を使わない、カスタマイズ度が高い作例を用意する | ||
- `amdxg new your-blog`: 最新版から scaffold できるようにする | ||
- `amdxg new:page` 時、記事生成のテンプレート化できるようにする対応 | ||
- `amdxg-components`: `Layout` を使わない、カスタマイズ度が高い作例を用意する | ||
- frontmatter のタグ一覧対応 | ||
- mdxx-ssg を github actions でデプロイできるようにしておく | ||
- mdxx preview の vscode extension | ||
- amdxg を github actions でデプロイできるようにしておく | ||
- amdx preview の vscode extension |
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.