cpprefjp / site

cpprefjpサイトのMarkdownソース
https://cpprefjp.github.io/
368 stars 152 forks source link

所属ヘッダの指定ミスを検出するCIタスクを追加 #1204

Closed faithandbrave closed 8 months ago

faithandbrave commented 8 months ago

[meta header]または[meta module]の指定ミスを検出するようにしてみました (指定ミスするとサイドバーが壊れる)。 自動検出できるなら指定する必要すらないのですが、、それは追々site_generatorを直します。

https://github.com/cpprefjp/site/commit/4f5d507d4e9830fee411f6f621b25ba1fc70cdb3

このコミットで[meta header]の指定ミスを修正する前の状態だと、以下のように出力されます。

[reference/ranges/from_range_t.md] invalid meta header "utility". You should specify "ranges" as meta header

module階層も同じように検出されます。