Skip to content

Commit

Permalink
Change branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Dec 28, 2021
1 parent 6fa4e8d commit e9a8252
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handsdown/cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/update_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit e9a8252

Please sign in to comment.