docsyのバージョンを0.6.0から0.7.0へアップグレードしてみました
このWebサイトで使用しているHugoのテーマの「docsy」のバージョンを、
0.6.0から0.7.0へアップグレードしました。
うまくできているかわかりませんが、
とりあえず動いているようなので、ヨシッ。
やったこと
- Chocolateyをアップグレードする
 choco upgrade chocolatey
- Hugoをアップグレードする
 choco upgrade hugo-extended
- Bootstrap関連の記述を一部変更する
 google/docsy-example Docsy 0.7.0 and BSv5.2 updates #221 | Github
 Renamed .ml-* and .mr-* to .ms-* and .me-*.
 Renamed .pl-* and .pr-* to .ps-* and .pe-*.
- _index.htmlを_index.mdに変更する
- docsyのモジュールをアップグレードする
 hugo mod get -u github.com/google/docsy
 Update your Docsy Hugo Module | Docsy
- config.tomlの中身を変更
 具体的には[languages.en.params]や[languages.jp.params]を追加
 変更方法はExampleサイトの書き方を参考にしました。
 google/docsy-example/hugo.toml | Github
 (ちなみに本家のExampleサイトでは、いつの間にかファイル名がhugo.tomlやhugo.yamlに変わっていた)
関連リンク
HugoやDocsyのバージョンを上げました (2023/01/03)
スポンサーリンク