A small build step renders static HTML from gallery-data.js and guides-data.js.
- Run the build:
node build.js- Preview the generated site:
npx serve .If serve is not installed:
npm install -g serve
serve .Run node build.js after changing:
gallery-data.jsguides-data.jsindex.html,gallery.html,guides.html- any
gallery/*.htmlorguides/*.htmltemplate
No build is needed for CSS, images, sidebar content, or static scripts.
- generates gallery and guide cards in the main pages
- inlines the shared sidebar
- builds full HTML for
gallery/*.htmlandguides/*.html
gallery-data.jsandguides-data.jsare the source of truth.- Keep
sidebar.jsandgallery-filter.jsfor runtime interaction.