From d4cfebe152b300e560cd302ec85b61d69239beb4 Mon Sep 17 00:00:00 2001 From: zunda Date: Sun, 31 May 2026 16:43:37 -1000 Subject: [PATCH 1/5] =?UTF-8?q?=E3=83=95=E3=83=AD=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=83=9E=E3=82=BF=E3=83=BC=E3=81=AB=E5=90=84=E5=8F=B7=E7=9B=AE?= =?UTF-8?q?=E6=AC=A1=E3=82=92=E5=88=97=E6=8C=99=E3=81=97=E3=81=A6=E3=81=BF?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 各号文字のフロントマターにその号の記事を列挙して、各号目次とサイドバーの目次を生成できないか実験しています。できなくはなさそう。 今後、各号目次とサイドバー目次の内容を充実・整理していきます。 --- _includes/sidebar.html | 16 +++++++++++++++ articles/0065/_posts/2025-12-19-index.md | 25 ++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 86ccda9c5..7163214bb 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,3 +1,19 @@ +{% unless page.tags contains "index" %} +{% assign volume = page.id | split: "/" | slice: 2 %} +{% assign index_id = page.id | split: "/" | slice: 0, 3 | join: "/" | append: "/index" %} +{% assign toc = site.posts | find: "id", index_id %} +{% assign toc_posts = toc.articles %} + +{% if toc_posts.size > 0 %} +

{{ volume }}号

+ +{% endif %} +{% endunless %} +

{% for post in site.tags.latest %} {{ post.short_title }} diff --git a/articles/0065/_posts/2025-12-19-index.md b/articles/0065/_posts/2025-12-19-index.md index b9524531b..e628f5ce6 100644 --- a/articles/0065/_posts/2025-12-19-index.md +++ b/articles/0065/_posts/2025-12-19-index.md @@ -3,11 +3,36 @@ layout: post title: Rubyist Magazine 0065 号 short_title: 0065号(2025-12) tags: 0065 index +articles: +- id: articles/0065/2025-12-16-0065-ForeWord +- id: articles/first_step_ruby/2000-01-01-FirstStepRuby +- id: articles/0065/2024-09-05-0065-FukuokaRubyistKaigi04Report +- id: articles/0065/2024-09-29-0065-TokyuRubyKaigi15Report +- id: articles/0065/2024-10-05-0065-MatsueRubyKaigi11Report +- id: articles/0065/2024-10-21-0065-CreateGeneratingReportToolWithRubyAndGoogleGemini +- id: articles/0065/2025-01-22-0065-OsakaRubyKaigi03Report +- id: articles/0065/2025-01-24-0065-OsakaRubyKaigi04Report +- id: articles/0065/2025-01-27-0065-TokyoRubyKaigi12Report +- id: articles/0065/2025-01-31-0065-KaigiOnRails2024Report +- id: articles/0065/2025-03-23-0065-RubyKaigi2025MessagesFromSpeakers +- id: articles/0065/2025-04-13-0065-RailsGirlsNagasaki2ndReport +- id: articles/0065/2025-05-27-0065-TRICK2025ForBeginners +- id: articles/0065/2025-11-21-0065-RubyRelease30thComments +- url: https://cosen.se/ruby-no-kai/RubyEventCheck + title: RubyEventCheck +- id: articles/0065/2025-12-19-0065-EditorsNote + --- {% include base.html %} 『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 +## フロントマターから作ってみる目次 + +{% for x in page.articles %} +- {{ x.id | append: x.url }} +{% endfor %} + ## 目次 ### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [巻頭言]({{base}}{% post_url articles/0065/2025-12-16-0065-ForeWord %}) From 3febdb3720ad035104505c9272a2951888575ffe Mon Sep 17 00:00:00 2001 From: zunda Date: Tue, 2 Jun 2026 14:57:32 -1000 Subject: [PATCH 2/5] =?UTF-8?q?=E5=90=84=E5=8F=B7=E8=A1=A8=E7=B4=99?= =?UTF-8?q?=E5=8E=9F=E7=A8=BF=E3=81=AE=E3=83=95=E3=83=AD=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=83=9E=E3=82=BF=E3=83=BC=E3=81=AB=E8=A8=98=E4=BA=8B=E3=82=92?= =?UTF-8?q?=E5=88=97=E6=8C=99=E3=81=97=E3=81=A6=E8=A1=A8=E7=B4=99=E3=81=AE?= =?UTF-8?q?=E7=9B=AE=E6=AC=A1=E3=82=92=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/index_toc.md | 70 ++++++++++ _includes/sidebar.html | 4 +- articles/0065/_posts/2025-12-19-index.md | 161 ++++++----------------- 3 files changed, 111 insertions(+), 124 deletions(-) create mode 100644 _includes/index_toc.md diff --git a/_includes/index_toc.md b/_includes/index_toc.md new file mode 100644 index 000000000..afea43ca8 --- /dev/null +++ b/_includes/index_toc.md @@ -0,0 +1,70 @@ +{% comment %} +このファイルを各号の表紙の原稿から include して各号目次を生成します。 + +各号の表紙の原稿のフロントマターに articles_in_volume キーの配列として、下記のような一覧を記載します。この例では号数を 9999 としています。 + +articles_in_volume: +- id: /articles/9999/9999-Liquid-on-Jekyll + title: Liquid タグを使ってみた + authors: liquid さん + comment: るびまで Jekyll の Liquid タグを勉強する記事です。(難易度:例) +- url: https://www.example.com + title: 例示用のサイト + comment: 目次に例示用のサイトを含める例です。 + +対象の記事がこのレポトリにある場合、 +- id キーで記事の ID (原稿のファイルのパスから日付部分を除いたもの) を指定します (必須) +- title キーで目次に使用するタイトルを指定します。指定されていない場合は対象の原稿のフロントマターの title キーを利用します +- authors キーで目次に表示する著者リストを指定します。指定されていない場合は対象の原稿のフロントマターの post_author に日本語の名前が「, 」区切りで列挙されているとして、それぞれの名前に「さん」を追加します。アルファベットの名前の場合は空白を含めて「 さん」を追加して、巻頭言のように「さん」が不要な場合には表紙の原稿のフロントマターで指定してください +- comment キーがある場合は目次に表示します + +対象の記事が外部のサイトの場合、 +- url キーでURLを指定します (必須) +- title キーで目次に使用するタイトルを指定します (必須) +- authors キーがある場合は目次に表示します +- comment キーがある場合は目次に表示します + +{% endcomment %} +{% for x in page.articles_in_volume %} + +{% if x.id # idで指定された記事がこのレポジトリにある場合 %} +{% assign target = site.posts | find: "id", x.id %} +{% if target %} +{% if x.title %} +{% assign title = x.title %} +{% else %} +{% assign title = target.title %} +{% endif %} +{% if x.authors %} +{% assign authors = x.authors %} +{% else %} +{% if target.post_author %} +{% assign authors = target.post_author | replace: ", ", " さん, " | append: " さん" %} +{% else %} +{% assign authors = nil %} +{% endif %} +{% endif %} +### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) [{{ title }}]({{ base }}{{ target.url }}) +{% else %} +### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) 目次の articles_in_volume に問題があります +id が {{ x.id }} の記事がありません… +{% endif %} + +{% else # 記事が外部サイトにありurlで指定されている場合 %} +{% if x.authors %} +{% assign authors = x.authors %} +{% else %} +{% assign authors = nil %} +{% endif %} +### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) [{{ x.title }}]({{ x.url }}) +{% endif %} + +{% if authors %} +書いた人:{{ authors }} +{% endif %} + +{% if x.comment %} +{{ x.comment }} +{% endif %} + +{% endfor %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 7163214bb..ae0f5875d 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -2,12 +2,12 @@ {% assign volume = page.id | split: "/" | slice: 2 %} {% assign index_id = page.id | split: "/" | slice: 0, 3 | join: "/" | append: "/index" %} {% assign toc = site.posts | find: "id", index_id %} -{% assign toc_posts = toc.articles %} +{% assign toc_posts = toc.articles_in_volume %} {% if toc_posts.size > 0 %}

{{ volume }}号

    -{% for post in toc.articles %} +{% for post in toc_posts %}
  • {{ post.id }} {% endfor %}
diff --git a/articles/0065/_posts/2025-12-19-index.md b/articles/0065/_posts/2025-12-19-index.md index e628f5ce6..5a4b2bb16 100644 --- a/articles/0065/_posts/2025-12-19-index.md +++ b/articles/0065/_posts/2025-12-19-index.md @@ -3,137 +3,54 @@ layout: post title: Rubyist Magazine 0065 号 short_title: 0065号(2025-12) tags: 0065 index -articles: -- id: articles/0065/2025-12-16-0065-ForeWord -- id: articles/first_step_ruby/2000-01-01-FirstStepRuby -- id: articles/0065/2024-09-05-0065-FukuokaRubyistKaigi04Report -- id: articles/0065/2024-09-29-0065-TokyuRubyKaigi15Report -- id: articles/0065/2024-10-05-0065-MatsueRubyKaigi11Report -- id: articles/0065/2024-10-21-0065-CreateGeneratingReportToolWithRubyAndGoogleGemini -- id: articles/0065/2025-01-22-0065-OsakaRubyKaigi03Report -- id: articles/0065/2025-01-24-0065-OsakaRubyKaigi04Report -- id: articles/0065/2025-01-27-0065-TokyoRubyKaigi12Report -- id: articles/0065/2025-01-31-0065-KaigiOnRails2024Report -- id: articles/0065/2025-03-23-0065-RubyKaigi2025MessagesFromSpeakers -- id: articles/0065/2025-04-13-0065-RailsGirlsNagasaki2ndReport -- id: articles/0065/2025-05-27-0065-TRICK2025ForBeginners -- id: articles/0065/2025-11-21-0065-RubyRelease30thComments +articles_in_volume: +- id: /articles/0065/0065-ForeWord + title: 巻頭言 + authors: るびま編集長 高橋征義 + comment: るびま編集長 高橋征義からの 0065 号発行の挨拶です。(難易度:高) +- id: /articles/first_step_ruby/FirstStepRuby + comment: Ruby をはじめるにあたって必要な情報をご紹介します。本稿は Rubyist Magazine 常設記事です。(難易度:低) +- id: /articles/0065/0065-FukuokaRubyistKaigi04Report + comment: 2024 年 9 月に開催された福岡 Rubyist 会議 04 のレポートです。(難易度:低) +- id: /articles/0065/0065-TokyuRubyKaigi15Report + comment: 2024 年 9 月に開催された TokyuRuby 会議 15 のレポートです。(難易度:低) +- id: /articles/0065/0065-MatsueRubyKaigi11Report + authors: 佐田 明弘さん, 西田 雄也さん, 高田 芳和さん, 伊東 亮さん, 藤井 貴さん + comment: 2024 年 10 月に開催された 松江 Ruby 会議 11 のレポートです。(難易度:低) +- id: /articles/0065/0065-CreateGeneratingReportToolWithRubyAndGoogleGemini + authors: ホアンクアンさん + comment: gemini-ai という gem を通して生成 AI Gemini で日報を簡単に作れるようにしたお話です。(難易度:中) +- id: /articles/0065/0065-OsakaRubyKaigi03Report + comment: 2023 年 9 月に開催された大阪 Ruby 会議 03 のレポートです。(難易度:低) +- id: /articles/0065/0065-OsakaRubyKaigi04Report + comment: 2024 年 8 月に開催された大阪 Ruby 会議 04 のレポートです。(難易度:低) +- id: /articles/0065/0065-TokyoRubyKaigi12Report + authors: 東京 Ruby 会議 12 実行委員会 & 参加者のみなさまさん + comment: 2025 年 1 月に開催された東京 Ruby 会議 12 のレポートです。(難易度:低) +- id: /articles/0065/0065-KaigiOnRails2024Report + authors: 堀越 優希さん, 大西 裕太さん + comment: 2024 年 10 月に開催された Kaigi on Rails 2024 のレポートです。(難易度:低) +- id: /articles/0065/0065-RubyKaigi2025MessagesFromSpeakers + authors: るびま編集部 + comment: 2025 年 4 月に開催された RubyKaigi のスピーカーの皆さんから、会期前にいただいた参加者へのメッセージ集です。(難易度:低) +- id: /articles/0065/0065-RailsGirlsNagasaki2ndReport + comment: 2025 年 2 月に開催された Rails Girls Nagasaki 2nd のレポートです。(難易度:低) +- id: /articles/0065/0065-TRICK2025ForBeginners + comment: RubyKaigi 2025 中に開催された TRICK 2025 で作品が賞に選ばれた beta_chelsea さんによる Quine 入門です。(難易度:超絶) +- id: /articles/0065/0065-RubyRelease30thComments + comment: Ruby のリリース 30 周年にあたり皆さんからいただいたお祝いのメッセージ集です。(難易度:低) - url: https://cosen.se/ruby-no-kai/RubyEventCheck title: RubyEventCheck -- id: articles/0065/2025-12-19-0065-EditorsNote - + comment: Ruby 関連、または Rubyist が興味を持ちそうなイベントをご紹介します。本稿は [日本 Ruby の会 公式 Wiki](https://cosen.se/ruby-no-kai/) にて常時更新されている同名ページへのリンクとなります。(難易度:低) +- id: /articles/0065/0065-EditorsNote --- {% include base.html %} 『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 -## フロントマターから作ってみる目次 - -{% for x in page.articles %} -- {{ x.id | append: x.url }} -{% endfor %} - ## 目次 -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [巻頭言]({{base}}{% post_url articles/0065/2025-12-16-0065-ForeWord %}) - -書いた人:るびま編集長 高橋征義 - -るびま編集長 高橋征義からの 0065 号発行の挨拶です。(難易度:高) - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [FirstStepRuby]({{base}}{% post_url articles/first_step_ruby/2000-01-01-FirstStepRuby %}) - -Ruby をはじめるにあたって必要な情報をご紹介します。本稿は Rubyist Magazine 常設記事です。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RegionalRubyKaigi レポート (85) 福岡 Rubyist 会議 04]({{base}}{% post_url articles/0065/2024-09-05-0065-FukuokaRubyistKaigi04Report %}) - -書いた人:nagachika さん - -2024 年 9 月に開催された福岡 Rubyist 会議 04 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RegionalRubyKaigi レポート (86) TokyuRuby 会議 15 レポート]({{base}}{% post_url articles/0065/2024-09-29-0065-TokyuRubyKaigi15Report %}) - -書いた人:shokola さん - -2024 年 9 月に開催された TokyuRuby 会議 15 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RegionalRubyKaigi レポート (87) 松江 Ruby 会議 11]({{base}}{% post_url articles/0065/2024-10-05-0065-MatsueRubyKaigi11Report %}) - -書いた人:佐田 明弘さん, 西田 雄也さん, 高田 芳和さん, 伊東 亮さん, 藤井 貴さん - -2024 年 10 月に開催された 松江 Ruby 会議 11 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [日報が面倒なので、Ruby と Google Gemini を使って生成するツールを作成しました]({{base}}{% post_url articles/0065/2024-10-21-0065-CreateGeneratingReportToolWithRubyAndGoogleGemini %}) - -書いた人:ホアンクアンさん - -gemini-ai という gem を通して生成 AI Gemini で日報を簡単に作れるようにしたお話です。(難易度:中) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RegionalRubyKaigi レポート (88) 大阪 Ruby 会議 03]({{base}}{% post_url articles/0065/2025-01-22-0065-OsakaRubyKaigi03Report %}) - -書いた人:ydah さん - -2023 年 9 月に開催された大阪 Ruby 会議 03 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RegionalRubyKaigi レポート (89) 大阪 Ruby 会議 04]({{base}}{% post_url articles/0065/2025-01-24-0065-OsakaRubyKaigi04Report %}) - -書いた人:ydah さん - -2024 年 8 月に開催された大阪 Ruby 会議 04 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RegionalRubyKaigi レポート (88) 東京 Ruby 会議 12]({{base}}{% post_url articles/0065/2025-01-27-0065-TokyoRubyKaigi12Report %}) - -書いた人:東京 Ruby 会議 12 実行委員会 & 参加者のみなさまさん - -2025 年 1 月に開催された東京 Ruby 会議 12 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [Kaigi on Rails 2024 開催レポート]({{base}}{% post_url articles/0065/2025-01-31-0065-KaigiOnRails2024Report %}) - -書いた人:堀越 優希さん, 大西 裕太さん - -2024 年 10 月に開催された Kaigi on Rails 2024 のレポートです。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RubyKaigi 2025 スピーカーからのメッセージ]({{base}}{% post_url articles/0065/2025-03-23-0065-RubyKaigi2025MessagesFromSpeakers %}) - -書いた人:るびま編集部 - -2025 年 4 月に開催された RubyKaigi のスピーカーの皆さんから、会期前にいただいた参加者へのメッセージ集です。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [Rails Girls Nagasaki 2nd 開催レポート]({{base}}{% post_url articles/0065/2025-04-13-0065-RailsGirlsNagasaki2ndReport %}) - -書いた人:siroemk さん - -2025 年 2 月に開催された Rails Girls Nagasaki 2nd のレポートです。(難易度:低) - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [あなたもできる「超絶技巧 Ruby 意味不明コーディング」ことはじめ]({{base}}{% post_url articles/0065/2025-05-27-0065-TRICK2025ForBeginners %}) - -書いた人:beta_chelsea さん - -RubyKaigi 2025 中に開催された TRICK 2025 で作品が賞に選ばれた beta_chelsea さんによる Quine 入門です。(難易度:超絶) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [Ruby リリース 30 周年に寄せて]({{base}}{% post_url articles/0065/2025-11-21-0065-RubyRelease30thComments %}) - -書いた人:snoozer05 さん - -Ruby のリリース 30 周年にあたり皆さんからいただいたお祝いのメッセージ集です。(難易度:低) - - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [RubyEventCheck](https://cosen.se/ruby-no-kai/RubyEventCheck) - -Ruby 関連、または Rubyist が興味を持ちそうなイベントをご紹介します。本稿は [日本 Ruby の会 公式 Wiki](https://cosen.se/ruby-no-kai/) にて常時更新されている同名ページへのリンクとなります。(難易度:低) - -### ![title_mark.gif]({{base}}{{site.baseurl}}/images/title_mark.gif) [0065 号 編集後記]({{base}}{% post_url articles/0065/2025-12-19-0065-EditorsNote %}) +{% include index_toc.md %} ## 次号予告 From 161e75ea8ec6be06aa473cce7c8be3585e871284 Mon Sep 17 00:00:00 2001 From: zunda Date: Tue, 2 Jun 2026 15:43:31 -1000 Subject: [PATCH 3/5] =?UTF-8?q?=E3=82=B5=E3=82=A4=E3=83=89=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=81=AB=E3=81=9D=E3=81=AE=E5=8F=B7=E3=81=AE=E7=9B=AE?= =?UTF-8?q?=E6=AC=A1=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/index_toc.md | 2 ++ _includes/sidebar.html | 31 ++++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/_includes/index_toc.md b/_includes/index_toc.md index afea43ca8..dbb25b003 100644 --- a/_includes/index_toc.md +++ b/_includes/index_toc.md @@ -24,6 +24,8 @@ articles_in_volume: - authors キーがある場合は目次に表示します - comment キーがある場合は目次に表示します +対象の記事の ID に号数が含まれる場合は、_includes/sidebar.html によってその記事のサイドバーにその号の目次が表示されます。/articles/first_step_ruby/FirstStepRuby などには表示されません。 + {% endcomment %} {% for x in page.articles_in_volume %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index ae0f5875d..67f343eb7 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -3,23 +3,36 @@ {% assign index_id = page.id | split: "/" | slice: 0, 3 | join: "/" | append: "/index" %} {% assign toc = site.posts | find: "id", index_id %} {% assign toc_posts = toc.articles_in_volume %} - {% if toc_posts.size > 0 %}

{{ volume }}号

    -{% for post in toc_posts %} -
  • {{ post.id }} +{% for x in toc_posts %} +{% assign current = false %} +{% if x.id %} +{% assign p = site.posts | find: "id", x.id %} +{% if x.id == page.id %} +{% assign current = true %} +{% else %} +{% assign url = p.url | prepend: base %} +{% endif %} +{% else %} +{% assign url = x.url %} +{% endif %} +{% if x.title %} +{% assign title = x.title %} +{% else %} +{% assign title = p.title %} +{% endif %} +{% unless current %} +
  • {{ title }} +{% else %} +
  • > {{ title }} +{% endunless %} {% endfor %}
{% endif %} {% endunless %} -

-{% for post in site.tags.latest %} - {{ post.short_title }} -{% endfor %} -

-

バックナンバー

  • 記事単位
  • From 7771e7178d5c3976d5224c5ca1ade7952ff5e59f Mon Sep 17 00:00:00 2001 From: zunda Date: Wed, 3 Jun 2026 16:03:09 -1000 Subject: [PATCH 4/5] =?UTF-8?q?=E3=82=B5=E3=82=A4=E3=83=89=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=81=AE=E5=90=84=E5=8F=B7=E7=9B=AE=E6=AC=A1=E3=81=AE?= =?UTF-8?q?=E3=81=9F=E3=82=81=E6=83=85=E5=A0=B1=E3=82=92=E6=9B=B8=E3=81=8F?= =?UTF-8?q?=E6=89=8B=E9=A0=86=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/sidebar.html | 3 +++ doc/editing_process.md | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 67f343eb7..a22a6e3a1 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,3 +1,6 @@ +{% comment %} +_includes/index_toc.md に従って表紙原稿のフロントマターに記載された情報から各号目次をサイバーに生成します +{% endcomment %} {% unless page.tags contains "index" %} {% assign volume = page.id | split: "/" | slice: 2 %} {% assign index_id = page.id | split: "/" | slice: 0, 3 | join: "/" | append: "/index" %} diff --git a/doc/editing_process.md b/doc/editing_process.md index 5af5006a6..405e9595c 100644 --- a/doc/editing_process.md +++ b/doc/editing_process.md @@ -113,7 +113,14 @@ TODO: 編集後記を集める方法を考える。Git に慣れている人が ### 表紙と編集後記のリリース 1. 上記の記事の公開作業を反映した最新の `master` ブランチから号数に対応したブランチ (0066 号なら `0066`) を作成します。ブランチ内で: -1. 表紙を作成します +1. 表紙の原稿を作成します + 1. `articles/<号数>/_posts/<発行日のyyyy>--
    -index.md` というファイル名のファイルを作ります。前の号からコピーしてもよいでしょう + 1. フロントマターの `tags` キーを `<号数> index` とします。`index` タグはサイドバーの各号目次の表示を抑制します + 1. フロントマターの `articles_in_volume` キー内に今号に含める記事を列挙します + - `id` として、上記の手順で推定した記事のパス (`/articles/…`) を記入します + - それぞれの記事に必要な情報については、[`_includes/index_toc.md` ファイル](../_includes/index_toc.md?plain=1)の冒頭を参照してください + 1. 目次を表示したい場所に、`{% include index_toc.md %}` という行を挿入します + 1. 目次以外の内容を記入します 1. 編集後記を作成します 1. 「0066号の表紙・編集後記」として Pull Request を作成します 1. Pull Request を merge します From 0895725780ddfb23fa04e01ecfabe5f5190b104b Mon Sep 17 00:00:00 2001 From: zunda Date: Fri, 5 Jun 2026 15:19:05 -1000 Subject: [PATCH 5/5] =?UTF-8?q?=E8=A1=A8=E7=B4=99=E5=8E=9F=E7=A8=BF?= =?UTF-8?q?=E3=81=AE=E3=83=95=E3=83=AD=E3=83=B3=E3=83=88=E3=83=9E=E3=82=BF?= =?UTF-8?q?=E3=83=BC=E3=81=AE=E8=A8=98=E4=BA=8B=E3=83=AA=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=81=AE=E8=91=97=E8=80=85=E3=82=92=E5=BF=85=E9=A0=88=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 著者が指定されていない場合はビルドされた目次に警告が表示されます。 後日、適切なデフォルトがはっきりしたら、著者が指定されていない場合のデフォルトの動作(たとえば最後に「 さん」を追加する)を実装することで、表紙原稿を執筆する手間を低減できそうです。 --- _includes/index_toc.md | 28 ++++++++---------------- articles/0065/_posts/2025-12-19-index.md | 9 ++++++++ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/_includes/index_toc.md b/_includes/index_toc.md index dbb25b003..a242ecc03 100644 --- a/_includes/index_toc.md +++ b/_includes/index_toc.md @@ -15,7 +15,7 @@ articles_in_volume: 対象の記事がこのレポトリにある場合、 - id キーで記事の ID (原稿のファイルのパスから日付部分を除いたもの) を指定します (必須) - title キーで目次に使用するタイトルを指定します。指定されていない場合は対象の原稿のフロントマターの title キーを利用します -- authors キーで目次に表示する著者リストを指定します。指定されていない場合は対象の原稿のフロントマターの post_author に日本語の名前が「, 」区切りで列挙されているとして、それぞれの名前に「さん」を追加します。アルファベットの名前の場合は空白を含めて「 さん」を追加して、巻頭言のように「さん」が不要な場合には表紙の原稿のフロントマターで指定してください +- authors キーで目次に表示する著者リストを指定します (必須)。目次に著者を表示しない場合には `""` を指定します - comment キーがある場合は目次に表示します 対象の記事が外部のサイトの場合、 @@ -37,32 +37,22 @@ articles_in_volume: {% else %} {% assign title = target.title %} {% endif %} -{% if x.authors %} -{% assign authors = x.authors %} -{% else %} -{% if target.post_author %} -{% assign authors = target.post_author | replace: ", ", " さん, " | append: " さん" %} -{% else %} -{% assign authors = nil %} -{% endif %} -{% endif %} ### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) [{{ title }}]({{ base }}{{ target.url }}) {% else %} -### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) 目次の articles_in_volume に問題があります -id が {{ x.id }} の記事がありません… +### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) 目次原稿に問題があります +⚠️ 目次原稿の `articles_in_volume` で `id` が {{ x.id }} の記事がありません… {% endif %} +{% unless x.authors %} +⚠️ 目次原稿の `articles_in_volume` で `id` が `{{ x.id }}` の記事の `authors` が指定されていません… +{% endunless %} + {% else # 記事が外部サイトにありurlで指定されている場合 %} -{% if x.authors %} -{% assign authors = x.authors %} -{% else %} -{% assign authors = nil %} -{% endif %} ### ![title_mark.gif]({{ base }}{{ site.baseurl }}/images/title_mark.gif) [{{ x.title }}]({{ x.url }}) {% endif %} -{% if authors %} -書いた人:{{ authors }} +{% if x.authors and x.authors != "" %} +書いた人:{{ x.authors }} {% endif %} {% if x.comment %} diff --git a/articles/0065/_posts/2025-12-19-index.md b/articles/0065/_posts/2025-12-19-index.md index 5a4b2bb16..8cf3c0d9f 100644 --- a/articles/0065/_posts/2025-12-19-index.md +++ b/articles/0065/_posts/2025-12-19-index.md @@ -9,10 +9,13 @@ articles_in_volume: authors: るびま編集長 高橋征義 comment: るびま編集長 高橋征義からの 0065 号発行の挨拶です。(難易度:高) - id: /articles/first_step_ruby/FirstStepRuby + authors: "" comment: Ruby をはじめるにあたって必要な情報をご紹介します。本稿は Rubyist Magazine 常設記事です。(難易度:低) - id: /articles/0065/0065-FukuokaRubyistKaigi04Report + authors: nagachika さん comment: 2024 年 9 月に開催された福岡 Rubyist 会議 04 のレポートです。(難易度:低) - id: /articles/0065/0065-TokyuRubyKaigi15Report + authors: shokola さん comment: 2024 年 9 月に開催された TokyuRuby 会議 15 のレポートです。(難易度:低) - id: /articles/0065/0065-MatsueRubyKaigi11Report authors: 佐田 明弘さん, 西田 雄也さん, 高田 芳和さん, 伊東 亮さん, 藤井 貴さん @@ -21,8 +24,10 @@ articles_in_volume: authors: ホアンクアンさん comment: gemini-ai という gem を通して生成 AI Gemini で日報を簡単に作れるようにしたお話です。(難易度:中) - id: /articles/0065/0065-OsakaRubyKaigi03Report + authors: ydah さん comment: 2023 年 9 月に開催された大阪 Ruby 会議 03 のレポートです。(難易度:低) - id: /articles/0065/0065-OsakaRubyKaigi04Report + authors: ydah さん comment: 2024 年 8 月に開催された大阪 Ruby 会議 04 のレポートです。(難易度:低) - id: /articles/0065/0065-TokyoRubyKaigi12Report authors: 東京 Ruby 会議 12 実行委員会 & 参加者のみなさまさん @@ -34,15 +39,19 @@ articles_in_volume: authors: るびま編集部 comment: 2025 年 4 月に開催された RubyKaigi のスピーカーの皆さんから、会期前にいただいた参加者へのメッセージ集です。(難易度:低) - id: /articles/0065/0065-RailsGirlsNagasaki2ndReport + authors: siroemk さん comment: 2025 年 2 月に開催された Rails Girls Nagasaki 2nd のレポートです。(難易度:低) - id: /articles/0065/0065-TRICK2025ForBeginners + authors: beta_chelsea さん comment: RubyKaigi 2025 中に開催された TRICK 2025 で作品が賞に選ばれた beta_chelsea さんによる Quine 入門です。(難易度:超絶) - id: /articles/0065/0065-RubyRelease30thComments + authors: snoozer05 さん comment: Ruby のリリース 30 周年にあたり皆さんからいただいたお祝いのメッセージ集です。(難易度:低) - url: https://cosen.se/ruby-no-kai/RubyEventCheck title: RubyEventCheck comment: Ruby 関連、または Rubyist が興味を持ちそうなイベントをご紹介します。本稿は [日本 Ruby の会 公式 Wiki](https://cosen.se/ruby-no-kai/) にて常時更新されている同名ページへのリンクとなります。(難易度:低) - id: /articles/0065/0065-EditorsNote + authors: "" --- {% include base.html %}