Skip to content
Merged

docs #26

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
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
docs-sqlite-functions = "run -p absurd-sqlite-extension --bin extract_sqlite_functions -- --out docs-starlight/src/content/docs/reference/sqlite-functions.mdx"
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true

[*.ts]
[*.{ts,js,tsx,jsx,mjs}]
indent_style = space
indent_size = 2

Expand All @@ -16,3 +16,9 @@ indent_size = 2
[*.rs]
indent_style = space
indent_size = 4

[*.{md,mdx}]
trim_trailing_whitespace = false
indent_size = 2
indent_style = space
max_line_length = off
56 changes: 56 additions & 0 deletions .github/workflows/docs-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Docs (GitHub Pages)

on:
push:
branches: [main]
workflow_dispatch:

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

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: docs-starlight/package-lock.json
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Install D2
run: curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Install dependencies
run: npm ci
working-directory: docs-starlight
- name: Build site
run: npm run build
working-directory: docs-starlight
env:
SITE: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/
BASE: /${{ github.event.repository.name }}/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs-starlight/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
Loading