Skip to content

Commit

Permalink
fix(docs): fix macro
Browse files Browse the repository at this point in the history
  • Loading branch information
roedoejet committed Sep 25, 2023
1 parent f900ff3 commit 6e9dde1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ def define_env(env):

@env.macro
def config_filename(filetype):
if "aligner":
if filetype == "aligner":
return f"{ALIGNER_CONFIG_FILENAME_PREFIX}.yaml"
if "preprocessing":
if filetype == "preprocessing":
return f"{PREPROCESSING_CONFIG_FILENAME_PREFIX}.yaml"
if "spec-to-wav":
if filetype == "spec-to-wav":
return f"{SPEC_TO_WAV_CONFIG_FILENAME_PREFIX}.yaml"
if "text-to-wav":
if filetype == "text-to-wav":
return f"{TEXT_TO_WAV_CONFIG_FILENAME_PREFIX}.yaml"
if "text-to-spec":
if filetype == "text-to-spec":
return f"{TEXT_TO_SPEC_CONFIG_FILENAME_PREFIX}.yaml"
if "text":
if filetype == "text":
return f"{TEXT_CONFIG_FILENAME_PREFIX}.yaml"
raise ValueError(f"filetype: {filetype} does not exist.")

0 comments on commit 6e9dde1

Please sign in to comment.