File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,10 +44,11 @@ def generate_markdown() -> str:
4444
4545def load_sections () -> Iterable [Section ]:
4646 for title , patterns in _FILE_ORDER .items ():
47+ paths = []
4748 for pattern in patterns :
48- paths = map (str , _SCHEMA_DIR .glob (f"{ pattern } .yaml" ))
49- files = (load_file (Path (path )) for path in sorted (paths ))
50- yield Section (title , files )
49+ paths . extend ( map (str , _SCHEMA_DIR .glob (f"{ pattern } .yaml" ) ))
50+ files = (load_file (Path (path )) for path in sorted (paths ))
51+ yield Section (title , files )
5152
5253
5354def load_file (path : Path ) -> File :
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ This file contains information about the input file format for MUSE 2.0.
2626 (such as a requirement that the value is >=0 etc.). -#}
2727{% - if file .notes %}
2828#### Notes
29+
2930{{ file.notes }}
3031{% - endif %}
3132
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fields:
1313 type : string
1414 description : The region to which this entry applies
1515 notes : A region ID
16- - name : years
16+ - name : year
1717 type : string
1818 description : The year(s) to which this entry applies
1919 notes : One or more milestone years separated by semicolons or `all`
You can’t perform that action at this time.
0 commit comments