mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
parent
3b75ae7ff1
commit
aa807c0c3c
5 changed files with 44 additions and 102 deletions
|
@ -151,11 +151,7 @@ def setup(app):
|
|||
app.add_stylesheet('figures.css')
|
||||
app.add_stylesheet('luadoc.css')
|
||||
try:
|
||||
# Assume we need to setup openmw-luadocumentor only when running this script in a Docker container because
|
||||
# readthedocs pipeline runs there.
|
||||
if os.path.exists('/.dockerenv'):
|
||||
subprocess.check_call(os.path.join(project_root, 'docs/source/setup_openmw_luadocumentor.sh'))
|
||||
subprocess.check_call(os.path.join(project_root, 'docs/source/generate_luadoc.sh'))
|
||||
subprocess.call(project_root + '/docs/source/generate_luadoc.sh')
|
||||
except Exception as e:
|
||||
print('Can\'t generate Lua API documentation:', e)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue