diff --git a/.gitignore b/.gitignore
index 02433b6..cf68fdc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,7 @@ dist
/*.ipynb
*.csv
_build
+
+/.quarto/
+_site
+reference/
diff --git a/_quarto.yml b/_quarto.yml
new file mode 100644
index 0000000..212984e
--- /dev/null
+++ b/_quarto.yml
@@ -0,0 +1,18 @@
+project:
+ type: website
+ output-dir: ../_site
+
+metadata-files:
+ - _sidebar.yml
+
+quartodoc:
+ package: pyprql
+ title: Reference
+ sidebar: _sidebar.yml
+
+ sections:
+ - title: Some functions
+ desc: Functions to inspect docstrings.
+ contents:
+ - magic.prql
+ - pandas_accessor.prql
diff --git a/_sidebar.yml b/_sidebar.yml
new file mode 100644
index 0000000..cc56bf9
--- /dev/null
+++ b/_sidebar.yml
@@ -0,0 +1,11 @@
+website:
+ sidebar:
+ - contents:
+ - reference/index.qmd
+ - contents:
+ - reference/magic.prql.qmd
+ - reference/pandas_accessor.qmd
+ - reference/pandas_accessor.prql.qmd
+ section: Some functions
+ id: reference
+ - id: dummy-sidebar
diff --git a/docs/PRQL_Demo.ipynb b/docs/PRQL_Demo.ipynb
deleted file mode 100644
index df215ac..0000000
--- a/docs/PRQL_Demo.ipynb
+++ /dev/null
@@ -1,272 +0,0 @@
-{
- "nbformat": 4,
- "nbformat_minor": 0,
- "metadata": {
- "colab": {
- "provenance": [],
- "include_colab_link": true
- },
- "kernelspec": {
- "name": "python3",
- "display_name": "Python 3"
- },
- "language_info": {
- "name": "python"
- }
- },
- "cells": [
- {
- "cell_type": "markdown",
- "metadata": {
- "id": "view-in-github",
- "colab_type": "text"
- },
- "source": [
- ""
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "id": "cFCNl1xfQUwS"
- },
- "outputs": [],
- "source": [
- "# Install `pyprql`\n",
- "!pip -q install -U pyprql"
- ]
- },
- {
- "cell_type": "code",
- "source": [
- " # Load the extensions\n",
- " %load_ext pyprql.magic\n",
- " %prql duckdb:///:memory:"
- ],
- "metadata": {
- "id": "CbgCQ9FMQpD3"
- },
- "execution_count": null,
- "outputs": []
- },
- {
- "cell_type": "code",
- "source": [
- "# Grab some data \n",
- "!wget -q https://raw.githubusercontent.com/graphql-compose/graphql-compose-examples/master/examples/northwind/data/csv/products.csv"
- ],
- "metadata": {
- "id": "vsJKgU37RAyk"
- },
- "execution_count": null,
- "outputs": []
- },
- {
- "cell_type": "code",
- "source": [
- "# Here's the extension working:\n",
- "%%prql\n",
- "from p = `products.csv`\n",
- "filter ((supplierID == 1 or supplierID == 2) and unitsOnOrder > 0)"
- ],
- "metadata": {
- "id": "vI1x6uYNRkmN",
- "colab": {
- "base_uri": "https://localhost:8080/",
- "height": 143
- },
- "outputId": "f786b60d-86a0-4331-9fcc-6fd155139e3b"
- },
- "execution_count": null,
- "outputs": [
- {
- "output_type": "execute_result",
- "data": {
- "text/plain": [
- " productID productName supplierID categoryID \\\n",
- "0 2 Chang 1 1 \n",
- "1 3 Aniseed Syrup 1 2 \n",
- "2 66 Louisiana Hot Spiced Okra 2 2 \n",
- "\n",
- " quantityPerUnit unitPrice unitsInStock unitsOnOrder reorderLevel \\\n",
- "0 24 - 12 oz bottles 19.0 17 40 25 \n",
- "1 12 - 550 ml bottles 10.0 13 70 25 \n",
- "2 24 - 8 oz jars 17.0 4 100 20 \n",
- "\n",
- " discontinued \n",
- "0 0 \n",
- "1 0 \n",
- "2 0 "
- ],
- "text/html": [
- "\n",
- "
\n", - " | productID | \n", - "productName | \n", - "supplierID | \n", - "categoryID | \n", - "quantityPerUnit | \n", - "unitPrice | \n", - "unitsInStock | \n", - "unitsOnOrder | \n", - "reorderLevel | \n", - "discontinued | \n", - "
---|---|---|---|---|---|---|---|---|---|---|
0 | \n", - "2 | \n", - "Chang | \n", - "1 | \n", - "1 | \n", - "24 - 12 oz bottles | \n", - "19.0 | \n", - "17 | \n", - "40 | \n", - "25 | \n", - "0 | \n", - "
1 | \n", - "3 | \n", - "Aniseed Syrup | \n", - "1 | \n", - "2 | \n", - "12 - 550 ml bottles | \n", - "10.0 | \n", - "13 | \n", - "70 | \n", - "25 | \n", - "0 | \n", - "
2 | \n", - "66 | \n", - "Louisiana Hot Spiced Okra | \n", - "2 | \n", - "2 | \n", - "24 - 8 oz jars | \n", - "17.0 | \n", - "4 | \n", - "100 | \n", - "20 | \n", - "0 | \n", - "