Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c29866b

Browse files
committedApr 11, 2025·
Shorten to --force
1 parent 9cf8b58 commit c29866b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ To manually rebuild a branch, for example 3.11:
7171
ssh docs.nyc1.psf.io
7272
sudo su --shell=/bin/bash docsbuild
7373
screen -DUR # Rejoin screen session if it exists, otherwise create a new one
74-
/srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --force-build --branch 3.11
74+
/srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --force --branch 3.11
7575
```

‎build_docs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def copy_build_to_webroot(self, http: urllib3.PoolManager) -> None:
806806
"Publishing done (%s).", format_seconds(perf_counter() - start_time)
807807
)
808808

809-
def should_rebuild(self, force_build: bool):
809+
def should_rebuild(self, force: bool):
810810
state = self.load_state()
811811
if not state:
812812
logging.info("Should rebuild: no previous state found.")
@@ -834,7 +834,7 @@ def should_rebuild(self, force_build: bool):
834834
cpython_sha,
835835
)
836836
return "Doc/ has changed"
837-
if force_build:
837+
if force:
838838
logging.info("Should rebuild: forced.")
839839
return "forced"
840840
logging.info("Nothing changed, no rebuild needed.")
@@ -960,7 +960,7 @@ def parse_args():
960960
default=Path("/srv/docs.python.org"),
961961
)
962962
parser.add_argument(
963-
"--force-build",
963+
"--force",
964964
action="store_true",
965965
help="Always build the chosen languages and versions, "
966966
"regardless of existing state.",
@@ -1083,7 +1083,7 @@ def build_docs(args: argparse.Namespace) -> bool:
10831083
builder = DocBuilder(
10841084
version, versions, language, languages, cpython_repo, **vars(args)
10851085
)
1086-
built_successfully = builder.run(http, force_build=args.force_build)
1086+
built_successfully = builder.run(http, force_build=args.force)
10871087
if built_successfully:
10881088
build_succeeded.add((version.name, language.tag))
10891089
elif built_successfully is not None:

0 commit comments

Comments
 (0)
Please sign in to comment.