diff --git a/handsdown/cli_parser.py b/handsdown/cli_parser.py index 594edfed..ea3765a6 100644 --- a/handsdown/cli_parser.py +++ b/handsdown/cli_parser.py @@ -179,7 +179,7 @@ def parse_args(args: Iterable[str]) -> CLINamespace: default="", type=git_repo, ) - parser.add_argument("--branch", help="Main branch name", default="master") + parser.add_argument("--branch", help="Main branch name", default="main") parser.add_argument( "--toc-depth", help="Maximum depth of child modules ToC", default=1, type=int ) diff --git a/scripts/update_docs.sh b/scripts/update_docs.sh index b06716a6..793f400d 100755 --- a/scripts/update_docs.sh +++ b/scripts/update_docs.sh @@ -4,5 +4,5 @@ set -e ROOT_PATH=$(dirname $(dirname $(realpath $0))) cd $ROOT_PATH -handsdown -o docs_local --cleanup $@ -handsdown --external `git config --get remote.origin.url` --cleanup $@ +handsdown -o docs_local --cleanup --branch master $@ +handsdown --external `git config --get remote.origin.url` --cleanup --branch master $@ diff --git a/tests/test_main.py b/tests/test_main.py index ab4d1b11..158bfdc1 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -37,7 +37,7 @@ def test_main(self, generator_mock, path_finder_mock, _get_logger_mock): output_path=Path("/output-path"), project_name="Handsdown", raise_errors=False, - source_code_url="blob/master/", + source_code_url="blob/main/", source_paths=path_finder_mock().exclude().include().glob(), toc_depth=1, )