Skip to content

Commit

Permalink
Added note of old renaming dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrayluna committed Jan 21, 2025
1 parent 0bd93c7 commit be35637
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


# Replace auto-generated title as a key, provide the preferred title as the value
# Note: This is replaced by Hugo. Future, remove this and function that calls it.
MARKDOWN_TITLES = {
"python": "Python Library",
"data-types": "Data Types",
Expand All @@ -30,6 +31,15 @@
}


title_mapping = {
"python": "Python Library",
"data-types": "Data Types",
"integrations": "Integrations",
"public-api": "Import & Export API",
"wandb": "Command Line Interface"
}


def main(args):
commit_id = args.commit_id

Expand Down Expand Up @@ -190,13 +200,6 @@ def reformat_and_rename_readme(directory, title_mapping):
f.writelines(cleaned_lines)
print(f"Processed: {file_path}")

title_mapping = {
"python": "Python Library",
"data-types": "Data Types",
"integrations": "Integrations",
"public-api": "Import & Export API",
"wandb": "Command Line Interface"
}

def get_args():
parser = argparse.ArgumentParser(
Expand Down

0 comments on commit be35637

Please sign in to comment.