Skip to content

Commit 83e4ae0

Browse files
committed
Fixing typo from sandialabs#374 (sandialabs#375)
* added missing input argument * fixed HTML pages destination folder not being version specific
1 parent 204619a commit 83e4ae0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/build_docs.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,15 @@ def build_doc(version, tag, home_branch, build):
7878
f"git checkout {home_branch}", shell=True)
7979

8080

81-
def move_pages():
82-
print(f"Moving HTML pages to {os.path.join(docs_dir, 'pages')}...")
83-
shutil.copytree(html_dir, os.path.join(docs_dir, 'pages'))
81+
def move_pages(dest_dir=None):
82+
if dest_dir is None:
83+
print(f"Moving HTML pages to {os.path.join(docs_dir, 'pages')}...")
84+
shutil.copytree(
85+
html_dir, os.path.join(docs_dir, 'pages'))
86+
else:
87+
print(f"Moving HTML pages to {os.path.join(docs_dir, 'pages', dest_dir)}...")
88+
shutil.copytree(
89+
html_dir, os.path.join(docs_dir, 'pages', dest_dir))
8490
print('Done.')
8591

8692

@@ -100,6 +106,6 @@ def move_pages():
100106
move_pages()
101107
for name, tag in versions.items():
102108
if name != home_name:
103-
build_doc(name, tag, home_branch)
104-
move_pages()
109+
build_doc(name, tag, home_branch, build)
110+
move_pages(dest_dir=name)
105111
shutil.rmtree(html_dir)

0 commit comments

Comments
 (0)