Regenerate docs properly for qute:help test
This commit is contained in:
parent
778832a813
commit
fc37223d1b
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user