Skip to content

Commit ff27def

Browse files
committed
Remove redundant offline configuration in build process
1 parent bf2f8a4 commit ff27def

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builder/build_cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ def build_docs(root, builder, clear, serve, debug, offline, spec_lock_consistenc
2525

2626
args = ["-b", builder, "-d", dest / "doctrees"]
2727

28-
if offline:
29-
args.append("-D")
30-
args.append("offline=1")
3128
if debug:
3229
# Disable parallel builds and show exceptions in debug mode.
3330
#
@@ -46,6 +43,8 @@ def build_docs(root, builder, clear, serve, debug, offline, spec_lock_consistenc
4643
# Add configuration options as needed
4744
if not spec_lock_consistency_check:
4845
conf_opt_values.append("enable_spec_lock_consistency=0")
46+
if offline:
47+
conf_opt_values.append("offline=1")
4948
# Only add the --define argument if there are options to define
5049
if conf_opt_values:
5150
args.append("--define")

0 commit comments

Comments
 (0)