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 @@