Skip to content

Commit fbd9800

Browse files
committed
ブログTOC調整
1 parent 832d2ae commit fbd9800

9 files changed

Lines changed: 51 additions & 49 deletions

File tree

WebSite/assets/js/top.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ document.addEventListener("DOMContentLoaded", async () => {
8888

8989
if (blogListEl) {
9090
try {
91-
const res = await fetch(
92-
`${relativePrefix}assets/data/blogList.json`,
93-
);
91+
const jsonPath = isEn
92+
? `${relativePrefix}assets/data/blogList_en.json`
93+
: `${relativePrefix}assets/data/blogList.json`;
94+
95+
const res = await fetch(jsonPath);
9496
if (!res.ok) throw new Error(res.statusText);
9597
const posts = await res.json();
9698

@@ -112,7 +114,7 @@ document.addEventListener("DOMContentLoaded", async () => {
112114

113115
const a = document.createElement("a");
114116
a.className = "home-latest-link";
115-
a.href = `blog.html?id=${encodeURIComponent(post.id)}`;
117+
a.href = relativePrefix + post.contentPath;
116118

117119
const titleSpan = document.createElement("span");
118120
titleSpan.className = "home-latest-link-title";
@@ -159,7 +161,7 @@ document.addEventListener("DOMContentLoaded", async () => {
159161

160162
const a = document.createElement("a");
161163
a.className = "home-latest-link";
162-
a.href = `portfolio.html?id=${encodeURIComponent(work.id)}`;
164+
a.href = relativePrefix + work.contentPath;
163165

164166
const titleSpan = document.createElement("span");
165167
titleSpan.className = "home-latest-link-title";

WebSite/blog/blog_00007.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ <h1 class="post-detail__title">RClone導入フロー</h1>
106106
<li>動作確認
107107
のステップを 一つのフローチャートにまとめて可視化しました。</li>
108108
</ul>
109-
<h1 id="rclone-導入フロー(mermaid版)">RClone 導入フロー(Mermaid版)</h1><p>最終版のフローチャートは<a href="https://breadmotion.github.io/WebSite/content/other/Rclone.html">こちら</a>です。</p>
109+
<h2 id="rclone-導入フロー(mermaid版)">RClone 導入フロー(Mermaid版)</h2><p>最終版のフローチャートは<a href="https://breadmotion.github.io/WebSite/content/other/Rclone.html">こちら</a>です。</p>
110110
<p><img src="https://breadmotion.github.io/WebSite/assets/img/MMD_rclone.png" alt="RClone導入フローチャート" title="" /></p>
111111
<hr>
112-
<h1 id="このフローで何ができる?">このフローで何ができる?</h1><p>このフローは、Windows環境で以下の一連の作業をミスなく実行できるように可視化したものです。</p>
112+
<h2 id="このフローで何ができる?">このフローで何ができる?</h2><p>このフローは、Windows環境で以下の一連の作業をミスなく実行できるように可視化したものです。</p>
113113
<ul>
114114
<li>WinGet がない場合の対処</li>
115115
<li>rclone のインストール</li>
@@ -119,15 +119,15 @@ <h1 id="このフローで何ができる?">このフローで何ができる
119119
</ul>
120120
<p>自分やチームの「Windows環境でのGit LFS代用環境構築の詰まりポイント」を解消できます。</p>
121121
<hr>
122-
<h1 id="概要">概要</h1><p>Windows環境でGitLFSの制限外で管理できるように共有したい場合のやり方です。<br>大まかな流れは下記です。</p>
122+
<h2 id="概要">概要</h2><p>Windows環境でGitLFSの制限外で管理できるように共有したい場合のやり方です。<br>大まかな流れは下記です。</p>
123123
<ul>
124124
<li>WinGet導入</li>
125125
<li>RClone導入</li>
126126
<li>RCloneの設定</li>
127127
</ul>
128128
<p>これ以降は運用の仕方の話になってくるうえ、<br>CLIに慣れていない人に向ける場合、もう一工夫する必要がある為別の記事で記載予定です。</p>
129129
<hr>
130-
<h1 id="まとめ">まとめ</h1><p>この記事で行ったこと:</p>
130+
<h2 id="まとめ">まとめ</h2><p>この記事で行ったこと:</p>
131131
<ul>
132132
<li>RClone 導入に必要なステップを可視化</li>
133133
<li>Mermaid でフローチャート化</li>
@@ -168,7 +168,7 @@ <h1 id="まとめ">まとめ</h1><p>この記事で行ったこと:</p>
168168
<div class="toc-sticky-container">
169169
<nav class="toc">
170170
<h2 class="toc__title">目次</h2>
171-
171+
<ul class="toc-list"><li class="toc-item toc-item--level-2"><a href="#rclone-導入フロー(mermaid版)">RClone 導入フロー(Mermaid版)</a></li><li class="toc-item toc-item--level-2"><a href="#このフローで何ができる?">このフローで何ができる?</a></li><li class="toc-item toc-item--level-2"><a href="#概要">概要</a></li><li class="toc-item toc-item--level-2"><a href="#まとめ">まとめ</a></li></ul>
172172
</nav>
173173
</div>
174174
</aside>

WebSite/blog/blog_00009.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h1 class="post-detail__title">ZedでC#開発環境を構築してみた</h1>
109109
<p>こういう特徴があります。</p>
110110
<p>この記事では実際に自分の環境で Zed を動かす中で遭遇したエラーや、<br>そこから解決までにやったことをまとめました。</p>
111111
<hr>
112-
<h1 id="zedでunityのcが動かない理由">ZedでUnityのC#が動かない理由</h1><p>ZedはVSCode・RiderのようにUnity用のC#サポートが標準で入っていません。</p>
112+
<h2 id="zedでunityのcが動かない理由">ZedでUnityのC#が動かない理由</h2><p>ZedはVSCode・RiderのようにUnity用のC#サポートが標準で入っていません。</p>
113113
<p>そのため</p>
114114
<ul>
115115
<li>C# の構文解析</li>
@@ -122,21 +122,21 @@ <h1 id="zedでunityのcが動かない理由">ZedでUnityのC#が動かない理
122122
<p>調べたところどうしようも無かったので、このOmnisharpに関しては更新を待ちましょう....</p>
123123
<p>なので今回使用するLSPを <strong>csharp-language-server</strong> に変更して動作させていきます。</p>
124124
<hr>
125-
<h1 id="導入前に必要なもの">導入前に必要なもの</h1><p>下記導入しておいてください。<br>これらの導入方法はまたどこかで記述します。(特に難しくないので、検索したら結構な数出てきます。)</p>
125+
<h2 id="導入前に必要なもの">導入前に必要なもの</h2><p>下記導入しておいてください。<br>これらの導入方法はまたどこかで記述します。(特に難しくないので、検索したら結構な数出てきます。)</p>
126126
<ul>
127127
<li>.Net runtime(9.0 upper)</li>
128128
<li>Node.js(確か20 upper)</li>
129129
<li>Omnisharp(ZedのExtensionからInstall)</li>
130130
</ul>
131131
<hr>
132-
<h1 id="csharp-language-serverをダウンロード">csharp-language-serverをダウンロード</h1><p>cargoがある方は下記</p>
132+
<h2 id="csharp-language-serverをダウンロード">csharp-language-serverをダウンロード</h2><p>cargoがある方は下記</p>
133133
<pre><code class="language-shell">cargo install --git https://github.com/SofusA/csharp-language-server
134134
</code></pre>
135135
<p>無い方は公式ページのReleasesからWindows用のバイナリを手に入れてください。<br>ページは<a href="https://github.com/SofusA/csharp-language-server">こちら</a><br>環境変数からまた格納した場所にパスを通すのも忘れずに</p>
136136
<p>今回は下記でいきます。 </p>
137137
<pre><code class="language-markdown">C:\\Users\\&lt;User Name&gt;\\AppData\\Local\\csharp-language-server\\csharp-language-server.exe
138138
</code></pre>
139-
<h1 id="zedの設定に言語サーバーを紐付ける">Zedの設定に言語サーバーを紐付ける</h1><p>ZedのSettings.jsonを開いて(どのSetting.jsonかは環境に合わせてください。)</p>
139+
<h2 id="zedの設定に言語サーバーを紐付ける">Zedの設定に言語サーバーを紐付ける</h2><p>ZedのSettings.jsonを開いて(どのSetting.jsonかは環境に合わせてください。)</p>
140140
<pre><code class="language-json">{
141141
&quot;languages&quot;: {
142142
&quot;CSharp&quot;: {
@@ -156,7 +156,7 @@ <h1 id="zedの設定に言語サーバーを紐付ける">Zedの設定に言語
156156
<p>Zedを再起動して適当な.csファイルを開いてみましょう。<br>これだけで稼働自体はするはずです。 </p>
157157
<h3 id="zedのomnisharp拡張が古いフォルダを掴んでエラーになる">ZedのOmniSharp拡張が古いフォルダを掴んでエラーになる</h3><p>Zedソフトが格納されているディレクトリ内の <strong>extensions/work</strong> の csharpフォルダを手動削除で解決するかも</p>
158158
<hr>
159-
<h1 id="稼働しなかった場合">稼働しなかった場合</h1><ol>
159+
<h2 id="稼働しなかった場合">稼働しなかった場合</h2><ol>
160160
<li>Zed上で「Ctrl + Shift + P」でコマンドパレットを開く</li>
161161
<li>zed: open logでログ取得</li>
162162
<li>AIに投げて質問 or エラーログを検索</li>
@@ -165,7 +165,7 @@ <h1 id="稼働しなかった場合">稼働しなかった場合</h1><ol>
165165
<p>(ZedがAI Agentとの親和性がエグイのでそれでもいいです。<br>Gemini3.0が昨日公開されたので、自分はそれを使用しています^^) </p>
166166
<p>また <strong>LSPは稼働しているけど定義に飛べない</strong> などのケースもあります。<br>どうやらアセンブリを跨いだ補完は対象のファイルを開くまで効かないらしいです。<br>「Ctrl + E」で該当ファイルを開いてやりましょう。補完が効き始めます。 </p>
167167
<hr>
168-
<h1 id="最終的な動作感">最終的な動作感</h1><ul>
168+
<h2 id="最終的な動作感">最終的な動作感</h2><ul>
169169
<li>補完:軽快</li>
170170
<li>定義ジャンプ:ソースがある範囲では問題なく動く</li>
171171
<li>外部DLL:ジャンプは不可(仕様だが、自作DLLの場合可能)</li>
@@ -207,7 +207,7 @@ <h1 id="最終的な動作感">最終的な動作感</h1><ul>
207207
<div class="toc-sticky-container">
208208
<nav class="toc">
209209
<h2 class="toc__title">目次</h2>
210-
<ul class="toc-list"><li class="toc-item toc-item--level-3"><a href="#zedのomnisharp拡張が古いフォルダを掴んでエラーになる">ZedのOmniSharp拡張が古いフォルダを掴んでエラーになる</a></li></ul>
210+
<ul class="toc-list"><li class="toc-item toc-item--level-2"><a href="#zedでunityのcが動かない理由">ZedでUnityのC#が動かない理由</a></li><li class="toc-item toc-item--level-2"><a href="#導入前に必要なもの">導入前に必要なもの</a></li><li class="toc-item toc-item--level-2"><a href="#csharp-language-serverをダウンロード">csharp-language-serverをダウンロード</a></li><li class="toc-item toc-item--level-2"><a href="#zedの設定に言語サーバーを紐付ける">Zedの設定に言語サーバーを紐付ける</a></li><li class="toc-item toc-item--level-3"><a href="#zedのomnisharp拡張が古いフォルダを掴んでエラーになる">ZedのOmniSharp拡張が古いフォルダを掴んでエラーになる</a></li><li class="toc-item toc-item--level-2"><a href="#稼働しなかった場合">稼働しなかった場合</a></li><li class="toc-item toc-item--level-2"><a href="#最終的な動作感">最終的な動作感</a></li></ul>
211211
</nav>
212212
</div>
213213
</aside>

WebSite/blog/en/blog_00007.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ <h1 class="post-detail__title">RClone Introduction Flow</h1>
106106
<li>Operation check
107107
I summarized these steps into a single flowchart and visualized it.</li>
108108
</ul>
109-
<h1 id="rclone-introduction-flow-mermaid-version">RClone Introduction Flow (Mermaid version)</h1><p>The final version of the flowchart is <a href="https://breadmotion.github.io/WebSite/content/other/Rclone.html">here</a>.</p>
109+
<h2 id="rclone-introduction-flow-mermaid-version">RClone Introduction Flow (Mermaid version)</h2><p>The final version of the flowchart is <a href="https://breadmotion.github.io/WebSite/content/other/Rclone.html">here</a>.</p>
110110
<p><img src="https://breadmotion.github.io/WebSite/assets/img/MMD_rclone.png" alt="RClone Introduction Flowchart" title="" /></p>
111111
<hr>
112-
<h1 id="what-can-this-flow-do">What can this flow do?</h1><p>This flow visualizes the following series of tasks in a Windows environment so that they can be executed without mistakes.</p>
112+
<h2 id="what-can-this-flow-do">What can this flow do?</h2><p>This flow visualizes the following series of tasks in a Windows environment so that they can be executed without mistakes.</p>
113113
<ul>
114114
<li>What to do if WinGet is missing</li>
115115
<li>Installation of rclone</li>
@@ -119,7 +119,7 @@ <h1 id="what-can-this-flow-do">What can this flow do?</h1><p>This flow visualize
119119
</ul>
120120
<p>You can eliminate &quot;stuck points in building a Git LFS substitute environment in Windows&quot; for yourself and your team.</p>
121121
<hr>
122-
<h1 id="overview">Overview</h1><p>This is how to share files so that they can be managed outside the limits of Git LFS in a Windows environment.
122+
<h2 id="overview">Overview</h2><p>This is how to share files so that they can be managed outside the limits of Git LFS in a Windows environment.
123123
The rough flow is as follows.</p>
124124
<ul>
125125
<li>Introduction of WinGet</li>
@@ -129,7 +129,7 @@ <h1 id="overview">Overview</h1><p>This is how to share files so that they can be
129129
<p>Since what follows becomes a story of operation method,
130130
and if aiming at people who are not used to CLI, one more ingenuity is necessary, so I plan to describe it in another article.</p>
131131
<hr>
132-
<h1 id="summary">Summary</h1><p>What I did in this article:</p>
132+
<h2 id="summary">Summary</h2><p>What I did in this article:</p>
133133
<ul>
134134
<li>Visualized steps required for RClone introduction</li>
135135
<li>Flowcharted with Mermaid</li>
@@ -170,7 +170,7 @@ <h1 id="summary">Summary</h1><p>What I did in this article:</p>
170170
<div class="toc-sticky-container">
171171
<nav class="toc">
172172
<h2 class="toc__title">Table of Contents</h2>
173-
173+
<ul class="toc-list"><li class="toc-item toc-item--level-2"><a href="#rclone-introduction-flow-mermaid-version">RClone Introduction Flow (Mermaid version)</a></li><li class="toc-item toc-item--level-2"><a href="#what-can-this-flow-do">What can this flow do?</a></li><li class="toc-item toc-item--level-2"><a href="#overview">Overview</a></li><li class="toc-item toc-item--level-2"><a href="#summary">Summary</a></li></ul>
174174
</nav>
175175
</div>
176176
</aside>

WebSite/blog/en/blog_00009.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h1 class="post-detail__title">Tried Building a C# Development Environment in Ze
109109
<p>There are such characteristics.</p>
110110
<p>In this article, I summarized the errors I encountered while actually running Zed in my environment and what I did to solve them.</p>
111111
<hr>
112-
<h1 id="why-unity-c-doesn39t-work-in-zed">Why Unity C# doesn&#39;t work in Zed</h1><p>Zed does not have standard C# support for Unity like VSCode or Rider.</p>
112+
<h2 id="why-unity-c-doesn39t-work-in-zed">Why Unity C# doesn&#39;t work in Zed</h2><p>Zed does not have standard C# support for Unity like VSCode or Rider.</p>
113113
<p>Therefore,</p>
114114
<ul>
115115
<li>C# syntax parsing</li>
@@ -123,15 +123,15 @@ <h1 id="why-unity-c-doesn39t-work-in-zed">Why Unity C# doesn&#39;t work in Zed</
123123
<p>I looked it up and found there was nothing I could do, so let&#39;s wait for an update regarding this Omnisharp...</p>
124124
<p>So, I will change the LSP used this time to <strong>csharp-language-server</strong> and make it work.</p>
125125
<hr>
126-
<h1 id="what-you-need-before-introduction">What you need before introduction</h1><p>Please introduce the following.
126+
<h2 id="what-you-need-before-introduction">What you need before introduction</h2><p>Please introduce the following.
127127
I will describe how to introduce these somewhere else. (It&#39;s not particularly difficult, so if you search, quite a few will come up.)</p>
128128
<ul>
129129
<li>.Net runtime (9.0 upper)</li>
130130
<li>Node.js (I believe 20 upper)</li>
131131
<li>Omnisharp (Install from Zed Extension)</li>
132132
</ul>
133133
<hr>
134-
<h1 id="download-csharp-language-server">Download csharp-language-server</h1><p>If you have cargo, use the following:</p>
134+
<h2 id="download-csharp-language-server">Download csharp-language-server</h2><p>If you have cargo, use the following:</p>
135135
<pre><code class="language-shell">cargo install --git https://github.com/SofusA/csharp-language-server
136136
</code></pre>
137137
<p>If you don&#39;t have it, please get the binary for Windows from Releases on the official page.
@@ -140,7 +140,7 @@ <h1 id="download-csharp-language-server">Download csharp-language-server</h1><p>
140140
<p>This time I will go with the following.</p>
141141
<pre><code class="language-markdown">C:\\Users\\&lt;User Name&gt;\\AppData\\Local\\csharp-language-server\\csharp-language-server.exe
142142
</code></pre>
143-
<h1 id="link-language-server-to-zed-settings">Link language server to Zed settings</h1><p>Open Zed&#39;s Settings.json (please match which Setting.json to your environment).</p>
143+
<h2 id="link-language-server-to-zed-settings">Link language server to Zed settings</h2><p>Open Zed&#39;s Settings.json (please match which Setting.json to your environment).</p>
144144
<pre><code class="language-json">{
145145
&quot;languages&quot;: {
146146
&quot;CSharp&quot;: {
@@ -161,7 +161,7 @@ <h1 id="link-language-server-to-zed-settings">Link language server to Zed settin
161161
It should work just with this.</p>
162162
<h3 id="zed39s-omnisharp-extension-grabs-old-folder-and-causes-error">Zed&#39;s OmniSharp extension grabs old folder and causes error</h3><p>Manual deletion of the csharp folder in <strong>extensions/work</strong> within the directory where Zed software is stored might solve it.</p>
163163
<hr>
164-
<h1 id="if-it-didn39t-work">If it didn&#39;t work</h1><ol>
164+
<h2 id="if-it-didn39t-work">If it didn&#39;t work</h2><ol>
165165
<li>Open command palette with &quot;Ctrl + Shift + P&quot; on Zed.</li>
166166
<li>Get log with <code>zed: open log</code>.</li>
167167
<li>Throw it to AI and ask or search the error log.</li>
@@ -174,7 +174,7 @@ <h1 id="if-it-didn39t-work">If it didn&#39;t work</h1><ol>
174174
It seems that completion across assemblies does not work until the target file is opened.
175175
Let&#39;s open the relevant file with &quot;Ctrl + E&quot;. Completion will start working.</p>
176176
<hr>
177-
<h1 id="final-operation-feel">Final operation feel</h1><ul>
177+
<h2 id="final-operation-feel">Final operation feel</h2><ul>
178178
<li>Completion: Light</li>
179179
<li>Definition jump: Works without problems within the range where source exists</li>
180180
<li>External DLL: Jump is impossible (Specification, but possible for self-made DLLs)</li>
@@ -217,7 +217,7 @@ <h1 id="final-operation-feel">Final operation feel</h1><ul>
217217
<div class="toc-sticky-container">
218218
<nav class="toc">
219219
<h2 class="toc__title">Table of Contents</h2>
220-
<ul class="toc-list"><li class="toc-item toc-item--level-3"><a href="#zed39s-omnisharp-extension-grabs-old-folder-and-causes-error">Zed&amp;#39;s OmniSharp extension grabs old folder and causes error</a></li></ul>
220+
<ul class="toc-list"><li class="toc-item toc-item--level-2"><a href="#why-unity-c-doesn39t-work-in-zed">Why Unity C# doesn&amp;#39;t work in Zed</a></li><li class="toc-item toc-item--level-2"><a href="#what-you-need-before-introduction">What you need before introduction</a></li><li class="toc-item toc-item--level-2"><a href="#download-csharp-language-server">Download csharp-language-server</a></li><li class="toc-item toc-item--level-2"><a href="#link-language-server-to-zed-settings">Link language server to Zed settings</a></li><li class="toc-item toc-item--level-3"><a href="#zed39s-omnisharp-extension-grabs-old-folder-and-causes-error">Zed&amp;#39;s OmniSharp extension grabs old folder and causes error</a></li><li class="toc-item toc-item--level-2"><a href="#if-it-didn39t-work">If it didn&amp;#39;t work</a></li><li class="toc-item toc-item--level-2"><a href="#final-operation-feel">Final operation feel</a></li></ul>
221221
</nav>
222222
</div>
223223
</aside>

0 commit comments

Comments
 (0)