Skip to content

Commit e46c832

Browse files
committed
fix: update supporters path resolution and clear linter warnings
WHY: After flattening the software directory, the Community Partners banner on the homepage lost its images because `data/supporters.toml` was still trying to look up page bundles using the old physical paths. Additionally, the new Node.js validation script was triggering false-positive errors in JSHint. GOAL: 1. Update `data/supporters.toml` to point `page_path` values to the new flattened software directories, restoring `site.GetPage` bundle lookups. 2. Add JSHint node environment pragmas and strict-mode declarations to `scripts/validateContentTaxonomy.js` to satisfy IDE linters.
1 parent 8557970 commit e46c832

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

data/supporters.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
[[foundational]]
22
name = "AEStream"
33
logo = "aestream.png"
4-
page_path = "neuromorphic-computing/software/data-tools/aestream/"
4+
page_path = "neuromorphic-computing/software/aestream/"
55
dark_logo_invert = false
66

77
[[foundational]]
88
name = "BindsNET"
99
logo = "bindsnet.jpg"
10-
page_path = "neuromorphic-computing/software/snn-frameworks/bindsnet/"
10+
page_path = "neuromorphic-computing/software/bindsnet/"
1111
dark_logo_invert = false
1212

1313
[[foundational]]
1414
name = "Brian"
1515
logo = "brian.jpg"
16-
page_path = "neuromorphic-computing/software/snn-frameworks/brian/"
16+
page_path = "neuromorphic-computing/software/brian/"
1717
dark_logo_invert = false
1818

1919
[[foundational]]
2020
name = "Faery"
2121
logo = "faery.png"
22-
page_path = "neuromorphic-computing/software/data-tools/faery/"
22+
page_path = "neuromorphic-computing/software/faery/"
2323
dark_logo_invert = false
2424

2525
[[foundational]]
2626
name = "GeNN"
2727
logo = "genn.png"
28-
page_path = "neuromorphic-computing/software/snn-frameworks/genn/"
28+
page_path = "neuromorphic-computing/software/genn/"
2929
dark_logo_invert = true
3030

3131
[[foundational]]
3232
name = "Neuromorphic Intermediate Representation (NIR)"
3333
logo = "nir-logo.png"
34-
page_path = "neuromorphic-computing/software/data-tools/neuromorphic-intermediate-representation/"
34+
page_path = "neuromorphic-computing/software/neuromorphic-intermediate-representation/"
3535
dark_logo_invert = false
36-
hero_display = { name = "NIRTorch", page_path = "neuromorphic-computing/software/snn-frameworks/nirtorch/" }
36+
hero_display = { name = "NIRTorch", page_path = "neuromorphic-computing/software/nirtorch/" }
3737

3838
[[foundational]]
3939
name = "snnTorch"
4040
logo = "snntorch.png"
41-
page_path = "neuromorphic-computing/software/snn-frameworks/snntorch/"
41+
page_path = "neuromorphic-computing/software/snntorch/"
4242
dark_logo_invert = false
4343

4444
[[foundational]]
4545
name = "Neuromorphic Drivers"
4646
logo = "neuromorphic-drivers.png"
47-
page_path = "neuromorphic-computing/software/data-tools/neuromorphic-drivers/"
47+
page_path = "neuromorphic-computing/software/neuromorphic-drivers/"
4848
dark_logo_invert = true

scripts/validateContentTaxonomy.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* jshint node: true */
2+
/* jshint esversion: 8 */
3+
"use strict";
4+
15
require('dotenv').config();
26
const fs = require('fs/promises');
37
const path = require('path');
@@ -14,13 +18,17 @@ async function validate() {
1418
let errors = 0;
1519

1620
for (const file of files) {
17-
// SKIP section landing pages. We only validate individual content items.
18-
if (file.endsWith('_index.md')) continue;
21+
if (file.endsWith('_index.md')) {
22+
continue;
23+
}
1924

2025
try {
2126
const content = await fs.readFile(file, 'utf8');
2227
const parsed = matter(content);
23-
if (!parsed.data) continue;
28+
29+
if (!parsed.data) {
30+
continue;
31+
}
2432

2533
const type = parsed.data.type;
2634
const cat = parsed.data.category;

0 commit comments

Comments
 (0)