From 485434c12430ae6f997c0d7ffdcea98ae1598c11 Mon Sep 17 00:00:00 2001 From: maskedsyntax Date: Sat, 24 Oct 2026 00:17:03 +0530 Subject: [PATCH] feat: publish the docs site on GitHub Pages Build the static site from web/ and serve it at tablint.cachevector.com. --- .github/workflows/pages.yml | 51 +++++++++++++++++++++++++++++++++++ README.md | 1 + pyproject.toml | 4 +-- web/src/lib/site.ts | 1 + web/src/routes/+layout.svelte | 7 +++++ web/static/CNAME | 1 + web/svelte.config.js | 1 - 7 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pages.yml create mode 100644 web/src/lib/site.ts create mode 100644 web/static/CNAME diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..d765c26 --- /dev/null +++ b/.github/workflows/pages.yml @@ -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 diff --git a/README.md b/README.md index 6b795ec..9b1a6e3 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ + tablint.cachevector.com

diff --git a/pyproject.toml b/pyproject.toml index 0913ab7..594d823 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/web/src/lib/site.ts b/web/src/lib/site.ts new file mode 100644 index 0000000..5a666f0 --- /dev/null +++ b/web/src/lib/site.ts @@ -0,0 +1 @@ +export const siteOrigin = 'https://tablint.cachevector.com'; diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 78df4b1..11f0dbe 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -1,10 +1,13 @@