1010
1111
1212def main ():
13- with gha_utils .group ("Borg the Docs" , use_subprocess = True ):
14- original_docs = SphinxDocs (docs_dir = os .environ ['INPUT_DOCS-FOLDER' ])
15- docs = BorgedSphinxDocs (original_docs = original_docs )
16- insert_header_footer = (os .environ ['INPUT_INSERT-HEADER-FOOTER' ] == "true" )
17- docs .assimilate_theme (name = "ntd2d" ,
18- insert_header_footer = insert_header_footer )
19-
20- gha_utils .set_output ("borged-build-folder" , docs .build_dir .as_posix ())
21-
2213 pre_build_command = os .environ ['INPUT_PRE-BUILD-COMMAND' ]
2314 if pre_build_command != "" :
2415 with gha_utils .group ("Executing pre-build-command" , use_subprocess = True ):
@@ -29,6 +20,15 @@ def main():
2920 shell = True ,
3021 check = True )
3122
23+ with gha_utils .group ("Borg the Docs" , use_subprocess = True ):
24+ original_docs = SphinxDocs (docs_dir = os .environ ['INPUT_DOCS-FOLDER' ])
25+ docs = BorgedSphinxDocs (original_docs = original_docs )
26+ insert_header_footer = (os .environ ['INPUT_INSERT-HEADER-FOOTER' ] == "true" )
27+ docs .assimilate_theme (name = "ntd2d" ,
28+ insert_header_footer = insert_header_footer )
29+
30+ gha_utils .set_output ("borged-build-folder" , docs .build_dir .as_posix ())
31+
3232 with gha_utils .group ("Build HTML" , use_subprocess = True ):
3333 build_command = os .environ ['INPUT_BUILD-HTML-COMMAND' ]
3434 docs .build_docs (build_command = build_command )
0 commit comments