Skip to content

Commit

Permalink
统一使用 .yml 作为 YAML 扩展名
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 3, 2024
1 parent 03e0c58 commit 4ccddc5
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions assets/fonts/ark-pixel/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sha": "45e860d6fa8498a86c0b1fd1100c9655c5cc9a26",
"sha": "c361a4abf4e72741d8944b862c588c5b3d1d6265",
"version": "develop",
"version_url": "https://github.com/TakWolf/ark-pixel-font/tree/develop",
"asset_url": "https://github.com/TakWolf/ark-pixel-font/archive/45e860d6fa8498a86c0b1fd1100c9655c5cc9a26.zip"
"asset_url": "https://github.com/TakWolf/ark-pixel-font/archive/c361a4abf4e72741d8944b862c588c5b3d1d6265.zip"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/configs/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class DumpConfig:
@staticmethod
def load_all() -> dict[int, list['DumpConfig']]:
configs_data = fs_util.read_yaml(path_define.assets_dir.joinpath('dump-configs.yaml'))
configs_data = fs_util.read_yaml(path_define.assets_dir.joinpath('dump-configs.yml'))
dump_configs = {font_size: [] for font_size in configs.font_sizes}
for name, items_data in configs_data.items():
version = fs_util.read_json(path_define.fonts_dir.joinpath(name, 'version.json'))['version']
Expand Down
2 changes: 1 addition & 1 deletion tools/configs/fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class FallbackConfig:
@staticmethod
def load_all() -> dict[int, list['FallbackConfig']]:
configs_data = fs_util.read_yaml(path_define.assets_dir.joinpath('fallback-configs.yaml'))
configs_data = fs_util.read_yaml(path_define.assets_dir.joinpath('fallback-configs.yml'))
fallback_configs = {font_size: [] for font_size in configs.font_sizes}
for config_data in configs_data:
font_size = config_data['font_size']
Expand Down
2 changes: 1 addition & 1 deletion tools/configs/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def load_all() -> dict[int, 'FontConfig']:

@staticmethod
def load(font_size: int) -> 'FontConfig':
file_path = path_define.patch_glyphs_dir.joinpath(str(font_size), 'config.yaml')
file_path = path_define.patch_glyphs_dir.joinpath(str(font_size), 'config.yml')
config_data = fs_util.read_yaml(file_path)

layout_params = {}
Expand Down
2 changes: 1 addition & 1 deletion tools/configs/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, file_name: str | None, copy_list: list[tuple[str, str]]):
class UpdateConfig:
@staticmethod
def load_all() -> list['UpdateConfig']:
configs_data = fs_util.read_yaml(path_define.assets_dir.joinpath('update-configs.yaml'))
configs_data = fs_util.read_yaml(path_define.assets_dir.joinpath('update-configs.yml'))
update_configs = []
for config_data in configs_data:
name = config_data['name']
Expand Down
4 changes: 2 additions & 2 deletions tools/services/update_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def setup_ark_pixel_glyphs():
continue
shutil.copytree(source_glyphs_dir_from, source_glyphs_dir_to)

config_file_path_from = path_define.ark_pixel_glyphs_dir.joinpath(str(font_size), 'config.yaml')
config_file_path_to = path_define.patch_glyphs_dir.joinpath(str(font_size), 'config.yaml')
config_file_path_from = path_define.ark_pixel_glyphs_dir.joinpath(str(font_size), 'config.yml')
config_file_path_to = path_define.patch_glyphs_dir.joinpath(str(font_size), 'config.yml')
if config_file_path_to.exists():
os.remove(config_file_path_to)
config_file_path_to.parent.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 4ccddc5

Please sign in to comment.