fpdn / docs /source.md
fil's picture
sql highlight
4fc9c44

Source code

This project relies on a data loader that reads all the source files and outputs a single summary file, minimized to contain only a subset of the source information:

import hljs from "npm:highlight.js";

data/presse.parquet.sh

const pre = display(document.createElement("pre"));
FileAttachment("data/presse.parquet.sh")
  .text()
  .then(
    (text) => (pre.innerHTML = hljs.highlight(text, { language: "bash" }).value)
  );

This is the file that the other pages reference in the front matter:

---
sql:
  presse: data/presse.parquet
---

and process with sql code blocks:

```sql
SELECT COUNT() FROM presse
```