-
Notifications
You must be signed in to change notification settings - Fork 14
chore: 継続的デリバリーの対象を新しいWebサイトに変更 #135
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
chore: 継続的デリバリーの対象を新しいWebサイトに変更 #135
Conversation
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.
Pull Request Overview
Switch continuous delivery and local build tasks to target the new website directory under website/dist.
- Point linting scripts and ignore rules to
website/dist/docs/ - Update
misetasks (generate-web,preview,dev) to run in./website - Change GitHub Pages deploy action to use
website/dist
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Updated textlint-html script to point at website/dist/docs/ |
| .textlintignore | Changed ignore paths from dist/docs/... to website/dist/docs/... |
| .mise.toml | Refactored generate-web, added install-website & dev tasks with proper working dir |
| .github/workflows/deploy.yml | Updated deploy action’s folder to website/dist |
Comments suppressed due to low confidence (1)
.mise.toml:31
- [nitpick] The task name
install-websiteis a bit ambiguous. Consider renaming it toinstall-website-depsto clarify that it installs dependencies.
[tasks.install-website]
kimushun1101
left a comment
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.
クリーンな状態で試すために、再度git cloneからやり直してみました。
mise run generate-webでは/assets/docsへのシンボリックリンクとしてwebsite/public/assets/docsが生成されるのですが、/assets/docs自体が生成されていない状況です。手続きの不足はありますでしょうか?
方針の確認をさせてください。
現在、静的サイトジェネレーターによるdistディレクトリはこのプロジェクトのルートディレクトリにあり、今回作成された仕組みでは/website/distに出来るものかと思います。後のPRで静的サイトジェネレーターによるdistディレクトリを消すとして、以降は/website/distを使用するという方針でよろしいでしょうか?それとも今回作成されるものをルートディレクトリの/distに置き換える形を想定されておりますでしょうか?
また、その方針を選んだ意図を教えていただけますと幸いです。
pythonが不要となったのであれば.python-versionファイルも削除してしまってよいのではないでしょうか?
Co-authored-by: Shunsuke KIMURA <kimushun1101@gmail.com>
|
そもそも本家ではassetディレクトリは削除されているようです。 |
ViteはWebサイトの生成時に静的なアセットが事前に
今後は出力先として Footnotes |
Python環境の削除は「従来の静的サイトジェネレーターに関連するファイルの削除」に含まれている認識です。 静的サイトジェネレーター以外では翻訳支援用スクリプトもPythonで書かれていますが、こちらは別のPRでNode.jsに書き直しても良いかもしれません。 https://github.com/typst-jp/typst-jp.github.io/blob/main/translate.py |
別のIssue/PRで調査/対応します。 |
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.
ご回答いただきありがとうございます。方針に同意いたします。
確かに本筋から外れていましたね。申し訳ございません。
継続的デリバリーへ対応に関してしては今回の変更で問題ないと思います。
cf. https://github.com/typst-jp/typst-jp.github.io/issues/54
変更点
確認事項
mise run generate-webでWebサイトのビルドができるmise run generate-docsを実行する必要がある/website/dist/に生成されるこのPRで対応しないタスク