@@ -504,7 +504,7 @@ def parse_args():
504
504
)
505
505
parser .add_argument (
506
506
"--select-output" ,
507
- choices = ("no-html" , "only-html" ),
507
+ choices = ("no-html" , "only-html" , "only-html-en" ),
508
508
help = "Choose what outputs to build." ,
509
509
)
510
510
parser .add_argument (
@@ -610,7 +610,7 @@ class DocBuilder:
610
610
cpython_repo : Repository
611
611
build_root : Path
612
612
www_root : Path
613
- select_output : Literal ["no-html" , "only-html" ] | None
613
+ select_output : Literal ["no-html" , "only-html" , "only-html-en" ] | None
614
614
quick : bool
615
615
group : str
616
616
log_directory : Path
@@ -620,7 +620,9 @@ class DocBuilder:
620
620
@property
621
621
def html_only (self ):
622
622
return (
623
- self .select_output == "only-html" or self .quick or self .language .html_only
623
+ self .select_output in {"only-html" , "only-html-en" }
624
+ or self .quick
625
+ or self .language .html_only
624
626
)
625
627
626
628
@property
@@ -1245,6 +1247,8 @@ def main():
1245
1247
build_docs_with_lock (args , "build_docs_archives.lock" )
1246
1248
elif args .select_output == "only-html" :
1247
1249
build_docs_with_lock (args , "build_docs_html.lock" )
1250
+ elif args .select_output == "only-html-en" :
1251
+ build_docs_with_lock (args , "build_docs_html_en.lock" )
1248
1252
1249
1253
1250
1254
def build_docs_with_lock (args : Namespace , lockfile_name : str ) -> int :
0 commit comments