From 4108cbf68ffbf34202f6c20c2ee485c2ebf3317c Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Tue, 30 Apr 2024 01:03:41 +0200 Subject: [PATCH 1/4] future news section to follow idea from https://github.com/rust-gamedev/rust-gamedev.github.io/issues/1417#issuecomment-1824008515 --- .github/create_newsletter_scaffold.sh | 1 + .github/newsletter-template.md | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/create_newsletter_scaffold.sh b/.github/create_newsletter_scaffold.sh index 60ba19b08..3f00372cd 100755 --- a/.github/create_newsletter_scaffold.sh +++ b/.github/create_newsletter_scaffold.sh @@ -27,6 +27,7 @@ cp .github/newsletter-template.md index.md sed -i "s/{{\s*NEWSLETTER_MONTH\s*}}/${NEWSLETTER_MONTH}/g" index.md sed -i "s/{{\s*NEWSLETTER_YEAR\s*}}/${NEWSLETTER_YEAR}/g" index.md sed -i "s/{{\s*NEWSLETTER_COUNTER\s*}}/${NEWSLETTER_COUNTER}/g" index.md +sed -i "s/{{\s*NEWSLETTER_COUNTER_NEXT\s*}}/$(( ${NEWSLETTER_COUNTER} + 1)/g" index.md sed -i "s/{{\s*NEWSLETTER_NEXT_MONTH_NUMBER\s*}}/${NEWSLETTER_NEXT_MONTH_NUMBER}/g" index.md # Create a dir in content/news with the counter with 3 digits as name destination="content/news/$(printf "%03d" ${NEWSLETTER_COUNTER})" diff --git a/.github/newsletter-template.md b/.github/newsletter-template.md index bab2a8969..0d40635ef 100644 --- a/.github/newsletter-template.md +++ b/.github/newsletter-template.md @@ -42,6 +42,7 @@ Feel free to send PRs about your own projects! - [Requests for Contribution](#requests-for-contribution) - [Jobs](#jobs) - [Bonus](#bonus) +- [Future news](#future-news) +## Future news + + + +Editing this newsletter wouldn't be possible without [your contributions][news_current_prs], Thanks! + +If you want something mentioned in the next newsletter, +[Send us a pull request][pr]! + +And From now on, you can get an early look at [what the future holds][news_future_prs]. + +[news_current_prs]:https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER }}%27 +[news_future_prs]: https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER_NEXT }}%27 + ------ That's all news for today, thanks for reading! -Want something mentioned in the next newsletter? -[Send us a pull request][pr]. - Also, subscribe to our socials if you want to receive fresh news! - X/Twitter: [@rust_gamedev][@x_rust_gamedev] - Mastodon: [@rust_gamedev][@mastodon_rust_gamedev] From 1244e4a5ef119737bec4635273c7860656332e3a Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Mon, 3 Jun 2024 09:36:54 +0200 Subject: [PATCH 2/4] Fix some phrasing --- .github/newsletter-template.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/newsletter-template.md b/.github/newsletter-template.md index 0d40635ef..f1c6c26c9 100644 --- a/.github/newsletter-template.md +++ b/.github/newsletter-template.md @@ -117,12 +117,12 @@ and highlight events from the past. --> -Editing this newsletter wouldn't be possible without [your contributions][news_current_prs], Thanks! +Editing this newsletter wouldn't be possible without [your contributions][news_current_prs]. +Thanks to everyone who helped us this month! -If you want something mentioned in the next newsletter, -[Send us a pull request][pr]! +If you want something mentioned in the next newsletter, [send us a pull request][pr]. -And From now on, you can get an early look at [what the future holds][news_future_prs]. +You can also get an early look at pending issues for the [next newsletter][news_future_prs]. [news_current_prs]:https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER }}%27 [news_future_prs]: https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER_NEXT }}%27 From 337e9cfd8e780920745ca725d09614bfa6a242e3 Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Mon, 3 Jun 2024 09:40:14 +0200 Subject: [PATCH 3/4] Fix sed command --- .github/create_newsletter_scaffold.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/create_newsletter_scaffold.sh b/.github/create_newsletter_scaffold.sh index 3f00372cd..45184e856 100755 --- a/.github/create_newsletter_scaffold.sh +++ b/.github/create_newsletter_scaffold.sh @@ -27,7 +27,7 @@ cp .github/newsletter-template.md index.md sed -i "s/{{\s*NEWSLETTER_MONTH\s*}}/${NEWSLETTER_MONTH}/g" index.md sed -i "s/{{\s*NEWSLETTER_YEAR\s*}}/${NEWSLETTER_YEAR}/g" index.md sed -i "s/{{\s*NEWSLETTER_COUNTER\s*}}/${NEWSLETTER_COUNTER}/g" index.md -sed -i "s/{{\s*NEWSLETTER_COUNTER_NEXT\s*}}/$(( ${NEWSLETTER_COUNTER} + 1)/g" index.md +sed -i "s/{{\s*NEWSLETTER_COUNTER_NEXT\s*}}/$((NEWSLETTER_COUNTER + 1))/g" index.md sed -i "s/{{\s*NEWSLETTER_NEXT_MONTH_NUMBER\s*}}/${NEWSLETTER_NEXT_MONTH_NUMBER}/g" index.md # Create a dir in content/news with the counter with 3 digits as name destination="content/news/$(printf "%03d" ${NEWSLETTER_COUNTER})" From 49adbf907db23618f699c45b89e9e99ee039709d Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Mon, 3 Jun 2024 09:44:32 +0200 Subject: [PATCH 4/4] Fix spacing --- .github/newsletter-template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/newsletter-template.md b/.github/newsletter-template.md index f1c6c26c9..c1095d486 100644 --- a/.github/newsletter-template.md +++ b/.github/newsletter-template.md @@ -124,7 +124,7 @@ If you want something mentioned in the next newsletter, [send us a pull request] You can also get an early look at pending issues for the [next newsletter][news_future_prs]. -[news_current_prs]:https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER }}%27 +[news_current_prs]: https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER }}%27 [news_future_prs]: https://github.com/rust-gamedev/rust-gamedev.github.io/pulls?q=is%3Apr+in%3Atitle+%27N{{ NEWSLETTER_COUNTER_NEXT }}%27 ------