Skip to content

Commit

Permalink
Add EDD and Lume viz example. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-strange authored Sep 10, 2024
1 parent d2c0c51 commit 26dca31
Show file tree
Hide file tree
Showing 6 changed files with 757 additions and 1 deletion.
15 changes: 15 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ import "npm:prismjs/components/prism-typescript.js";

import { duckDbLoader, resultTable } from "jsr:@dringtech/[email protected]";

// Importing the OI Lume charts and utilities
import oiViz from "https://deno.land/x/[email protected]/mod.ts";
import autoDependency from "https://deno.land/x/[email protected]/processors/auto-dependency.ts";
import csvLoader from "https://deno.land/x/[email protected]/loaders/csv-loader.ts";
import jsonLoader from "lume/core/loaders/json.ts";

const site = lume({
// Set the source directory
src: "src",
Expand All @@ -23,6 +29,15 @@ const site = lume({
cssFile: "_includes/css/components.css",
},
});
site.process([".html"], (pages) => pages.forEach(autoDependency));

site.loadData([".csv", ".tsv", ".dat"], csvLoader({ basic: true }));
site.loadData([".geojson"], jsonLoader);
site.loadData([".hexjson"], jsonLoader);

// Import lume viz
import oiVizConfig from "./oi-viz-config.ts";
site.use(oiViz(oiVizConfig));

/**
* Setup postcss processor
Expand Down
Loading

0 comments on commit 26dca31

Please sign in to comment.