LibrePortal/containers/weblibreportal/eleventy.config.cjs
librelad ef100acb3c refactor(hosting): website -> containers/weblibreportal; getlibreportal = downloads-only
Move the loose root-level site/ into a proper containers/weblibreportal app
(mirrors getlibreportal): the Eleventy source + nginx serving ./data via publish.sh
(npm run build -> docroot). Fix gen-data.mjs repoRoot (now ../../.. from
containers/weblibreportal/scripts) so it still finds containers/ for the catalogue.

Decouple the two hosts:
- weblibreportal  -> the website (libreportal.org)
- getlibreportal  -> downloads only (install.sh + signed release channels); its
  publish.sh no longer builds the site, and its config text updated to match.

Both are dev-only project hosting and will move to a separate repo later; for now
they live under containers/ as normal apps. ignores updated for their built
docroots; dropped the dead 'site export-ignore'.

Verified: gen-data builds the catalogue from the new location (33 apps), and
weblibreportal/publish.sh produces a docroot with index.html.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-25 20:44:38 +01:00

13 lines
429 B
JavaScript

module.exports = function (eleventyConfig) {
// copy static assets straight through to the build output
eleventyConfig.addPassthroughCopy({ "src/assets": "assets" });
eleventyConfig.addWatchTarget("src/assets");
return {
dir: { input: "src", includes: "_includes", data: "_data", output: "dist" },
htmlTemplateEngine: "njk",
markdownTemplateEngine: "njk",
templateFormats: ["njk", "html", "md"],
};
};