Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Pages

on:
push:
branches: [main]
paths:
- "web/**"
- ".github/workflows/pages.yml"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install
working-directory: web

- name: Build website
run: bun run build
working-directory: web

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: web/dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<img src="https://img.shields.io/badge/CLI-Supported-orange" />
<!-- CI -->
<a href="https://github.com/cachevector/tablint/actions/workflows/ci.yml"><img src="https://github.com/cachevector/tablint/actions/workflows/ci.yml/badge.svg" /></a>
<a href="https://tablint.cachevector.com"><img src="https://img.shields.io/badge/site-tablint.cachevector.com-111111" alt="tablint.cachevector.com" /></a>
</p>
<p>
<!-- Features -->
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ parquet = [
version = { attr = "tablint.__version__" }

[project.urls]
Homepage = "https://github.com/cachevector/tablint"
Homepage = "https://tablint.cachevector.com"
Repository = "https://github.com/cachevector/tablint"
Documentation = "https://github.com/cachevector/tablint"
Documentation = "https://tablint.cachevector.com/docs"
Issues = "https://github.com/cachevector/tablint/issues"

[tool.setuptools.packages.find]
Expand Down
1 change: 1 addition & 0 deletions web/src/lib/site.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const siteOrigin = 'https://tablint.cachevector.com';
7 changes: 7 additions & 0 deletions web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<script lang="ts">
import '../app.css';
import { page } from '$app/state';
import { siteOrigin } from '$lib/site';
import { theme } from '$lib/theme.svelte';
import { onMount } from 'svelte';
import type { Snippet } from 'svelte';

let { children }: { children: Snippet } = $props();
const canonical = $derived(`${siteOrigin}${page.url.pathname}`);

onMount(() => {
theme.init();
Expand All @@ -13,6 +16,10 @@

<svelte:head>
<title>Tablint — Dataset Profiler & Debugger for Machine Learning</title>
<link rel="canonical" href={canonical} />
<meta property="og:url" content={canonical} />
<meta property="og:title" content="Tablint" />
<meta property="og:description" content="Dataset Profiler & Debugger for Machine Learning." />
</svelte:head>

{@render children()}
1 change: 1 addition & 0 deletions web/static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tablint.cachevector.com
1 change: 0 additions & 1 deletion web/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const config = {
adapter: adapter({
pages: 'dist',
assets: 'dist',
fallback: 'index.html',
precompress: false,
strict: true
})
Expand Down
Loading