Revert controversial changes in luadoc generation (!2124, !2130)

This commit is contained in:
Petr Mikheev 2022-07-19 22:25:46 +00:00 committed by elsid
parent 3b75ae7ff1
commit aa807c0c3c
5 changed files with 44 additions and 102 deletions

View file

@ -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)