We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe54bd commit 89b8493Copy full SHA for 89b8493
web/pandas/versions.json
@@ -49,5 +49,5 @@
49
"name": "1.0",
50
"version": "1.0",
51
"url": "https://pandas.pydata.org/pandas-docs/version/1.0/"
52
- }
+ },
53
]
web/pandas_web.py
@@ -441,6 +441,11 @@ def main(
441
For ``.md`` and ``.html`` files, render them with the context
442
before copying them. ``.md`` files are transformed to HTML.
443
"""
444
+ # Sanity check: validate that versions.json is valid JSON
445
+ versions_path = os.path.join(source_path, "versions.json")
446
+ with open(versions_path, encoding="utf-8") as f:
447
+ json.load(f)
448
+
449
config_fname = os.path.join(source_path, "config.yml")
450
451
shutil.rmtree(target_path, ignore_errors=True)
0 commit comments