8000 Force to rebuild all doc pages at daily update · python-doc-tw/pydoc_autobuild@db05aa8 · GitHub
[go: up one dir, main page]

Skip to content

Commit db05aa8

Browse files
committed
Force to rebuild all doc pages at daily update
1 parent b6b860c commit db05aa8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

doc_tasks/tasks.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,16 @@ def sphinx_intl_build():
7676
)
7777

7878

79-
def sphinx_build_html():
79+
def sphinx_build_html(rebuild_all=False):
8080
cmd = [
8181
SPHINX_BUILD, '-b', 'html',
8282
'-d', 'build/doctrees',
8383
'-D', 'language=%s' % LANG,
8484
'-A', 'autobuildi18n=1',
85+
]
86+
if rebuild_all:
87+
cmd += ['-a']
88+
cmd += [
8589
'.', 'build/html',
8690
]
8791
return run_command_under_doc_root(cmd)
@@ -97,6 +101,8 @@ def update_one_page(page):
97101

98102
def full_update_and_commit():
99103
processes = OrderedDict()
100-
processes.update(update_one_page(page=None))
104+
processes['tx_pull'] = tx_pull(page=None)
105+
processes['sphinx_intl_build'] = sphinx_intl_build(rebuild_all=True)
106+
processes['sphinx_build_html'] = sphinx_build_html()
101107
processes.update(git_add_commit_push())
102108
return processes

0 commit comments

Comments
 (0)
0