Regenerate docs properly for qute:help test

This commit is contained in:
Florian Bruhin 2017-04-09 11:36:13 +02:00
parent 778832a813
commit fc37223d1b
2 changed files with 8 additions and 5 deletions

View File

@ -310,7 +310,8 @@ Feature: Various utility commands.
# https://github.com/qutebrowser/qutebrowser/issues/2513
Scenario: Opening link with qute:help
When I run :tab-only
When the documentation is up to date
And I run :tab-only
And I open qute:help without waiting
And I wait for "Changing title for idx 0 to 'qutebrowser help'" in the log
And I hint with args "links normal" and follow a

View File

@ -38,11 +38,13 @@ def update_documentation():
doc_path = os.path.join(base_path, 'html', 'doc')
script_path = os.path.join(base_path, '..', 'scripts')
if not os.path.exists(doc_path):
# On CI, we can test this without actually building the docs
return
try:
os.mkdir(doc_path)
except FileExistsError:
pass
if all(docutils.docs_up_to_date(p) for p in os.listdir(doc_path)):
files = os.listdir(doc_path)
if files and all(docutils.docs_up_to_date(p) for p in files):
return
try: