-
Notifications
You must be signed in to change notification settings - Fork 20
feat: GitHub Pagesで動作するtextlintプレビューサイトを追加 #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- textlint-website-generatorを使用したWebサイト生成 - exampleディレクトリ構成でプリセットをインストール - PRプレビュー機能(rossjrw/pr-preview-action使用) - メインブランチへの自動デプロイ設定
|
.textlintrc.json
Outdated
"preset-japanese": true | ||
"preset-ai-writing": { | ||
"no-ai-colon-continuation": true, | ||
"no-ai-emphasis-patterns": true, | ||
"no-ai-hype-expressions": true, | ||
"no-ai-list-formatting": true, | ||
"ai-tech-writing-guideline": true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
package.json
Outdated
"@textlint/website-generator": "^0.18.0", | ||
"@types/node": "^24.0.1", | ||
"gh-pages": "^6.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
website-textlintrc.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
website/public/index.html
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gitignore?
- .textlintrc.jsonを元のpreset-japanese設定に戻す - package.jsonから不要な依存関係とスクリプトを削除 - website関連の一時ファイルを削除 - exampleからgh-pages依存を削除
概要
textlint-website-generator
を使用して、GitHub Pages上で動作するtextlintプレビューサイトを追加しました。これにより、ユーザーがブラウザ上で直接@textlint-ja/textlint-rule-preset-ai-writing
の動作を確認できるようになります。変更内容
主な機能
実装詳細
ディレクトリ構造
GitHub Actions ワークフロー
deploy-website.yml
: mainブランチへのpush時にGitHub Pagesへデプロイwebsite-preview.yml
: PR作成時にプレビューサイトを生成pr-preview-action
を使用したプレビューデプロイ設定ファイル
example/.textlintrc.json
: Webサイト用のtextlint設定(プリセットを有効化)example/package.json
: textlint-website-generatorの設定テスト方法
ローカルでの動作確認
ブラウザでの確認
example/dist/index.html
をブラウザで開くGitHub Pagesでの確認
影響範囲
.gitignore
に追加済みチェックリスト
関連情報