There was an error while loading. Please reload this page.
1 parent 0f12819 commit bab2bdbCopy full SHA for bab2bdb
1 file changed
site/build.js
@@ -270,11 +270,14 @@ function main() {
270
// Read raw data
271
let rawData = [];
272
if (fs.existsSync('data/conjectures.json')) {
273
- try {
274
- rawData = JSON.parse(fs.readFileSync('data/conjectures.json', 'utf8'));
275
- } catch (e) {
276
- console.warn('Warning: could not parse data/conjectures.json:', e.message);
277
- }
+ const parsed = JSON.parse(fs.readFileSync('data/conjectures.json', 'utf8'));
+ // extract_names outputs { problems: [...], moduleDocstrings: {...} }
+ rawData = parsed.problems || [];
+ }
+
278
+ if (rawData.length === 0) {
279
+ console.error('Error: no conjectures loaded. Run `lake exe extract_names > site/data/conjectures.json` first.');
280
+ process.exit(1);
281
}
282
283
const conjectures = rawData.map(processEntry);
0 commit comments