-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(docs): Gatsby への移行 #1384
Merged
Merged
feat(docs): Gatsby への移行 #1384
Conversation
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
github-actions
bot
added
T-@oreorebot2/common
Type: OreOreBot2 Common (packages/common)
T-@oreorebot2/docs
Type: OreOreBot2 Docs (packages/docs)
labels
Sep 3, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1384 +/- ##
=======================================
Coverage 59.04% 59.04%
=======================================
Files 112 112
Lines 7337 7337
Branches 530 530
=======================================
Hits 4332 4332
Misses 2476 2476
Partials 529 529
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
T-@oreorebot2/common
Type: OreOreBot2 Common (packages/common)
T-@oreorebot2/docs
Type: OreOreBot2 Docs (packages/docs)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change:
フレームワークの移行
Dealing with Problems (問題への対処)
Nextra および Next.js の依存関係が古いまま更新されず, まだ自動作成された PR がいつも失敗するためメンテナンスの負担となっていました.
これ以上 Next.js の更新を待っても仕方がないと判断し, 移行先のフレームワークを選定したところ, React コードを流用できて MDX の描画を導入しやすい Gatsby.js を採用することにしました.
Details of implementation (実施内容)
Nextra のテーマで書かれていた部分を独自実装で書き換えました. Callout の部分に関しては視覚の互換性を損なっていますが, MDX の内容は保っています.
元々あったプライマリーカラーを基にカラースキームを Material Theme Builder で生成し, それをライトテーマ/ダークテーマの色に反映させました. テーマをスイッチする UI は無くなりましたが, 最低限の視覚体験を確保してあります.
サイトメニューを自作し, 子のページや兄弟ページへのリンクを作成するようにしました.
Additional Information (追加情報)
正常に描画できることを確認できしだい, Cloudflare Pages のデプロイ設定を Gatsby 用に変更します.