Rename master to main for notebooks links and leftovers (#16397)

This commit is contained in:
Sylvain Gugger
2022-03-25 09:12:23 -04:00
committed by GitHub
parent 7e7490473e
commit 867f3950fa
22 changed files with 90 additions and 90 deletions

View File

@@ -66,7 +66,7 @@ def global_version_update(version, patch=False):
update_version_in_examples(version)
def clean_master_ref_in_model_list():
def clean_main_ref_in_model_list():
"""Replace the links from main doc tp stable doc in the model list of the README."""
# If the introduction or the conclusion of the list change, the prompts may need to be updated.
_start_prompt = "🤗 Transformers currently provides the following architectures"
@@ -124,7 +124,7 @@ def pre_release_work(patch=False):
global_version_update(version, patch=patch)
if not patch:
print("Cleaning main README")
clean_master_ref_in_model_list()
clean_main_ref_in_model_list()
def post_release_work():