From e088fb6d9ea98c3b1b606096fe162c1fc4a53a4f Mon Sep 17 00:00:00 2001 From: Kindi Date: Thu, 5 Jan 2023 18:45:48 +0800 Subject: [PATCH 1/2] updateconfpy --- docs/source/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7f2affbb75..27742e0e72 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -152,6 +152,9 @@ def setup(app): app.add_stylesheet('luadoc.css') try: subprocess.call(project_root + '/docs/source/generate_luadoc.sh') + except Exception: + # Running on Windows? + subprocess.call(['sh', project_root + '/docs/source/generate_luadoc.sh']) except Exception as e: print('Can\'t generate Lua API documentation:', e) From 7cf9aa5d3106ef7bb84c3de8b9f371849901ea88 Mon Sep 17 00:00:00 2001 From: Kindi Date: Sat, 7 Jan 2023 23:35:54 +0800 Subject: [PATCH 2/2] the simplest bodge --- docs/source/conf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 27742e0e72..87c50d1404 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -151,9 +151,6 @@ def setup(app): app.add_stylesheet('figures.css') app.add_stylesheet('luadoc.css') try: - subprocess.call(project_root + '/docs/source/generate_luadoc.sh') - except Exception: - # Running on Windows? subprocess.call(['sh', project_root + '/docs/source/generate_luadoc.sh']) except Exception as e: print('Can\'t generate Lua API documentation:', e)