Skip to content

Commit

Permalink
chore(docs): introduce website (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt authored Aug 16, 2024
1 parent ba48bf9 commit f443b13
Show file tree
Hide file tree
Showing 91 changed files with 3,975 additions and 676 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy Website
on:
push:
branches: [main]
# Allows us to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: deploy-website
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install Dependencies
working-directory: website
run: cd website pnpm install
- name: Build
working-directory: website
run: cd website pnpm build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: website/.vitepress/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ build
*.log
coverage
tsconfig.vitest-temp.json
website/.vitepress/dist
website/.vitepress/cache
315 changes: 0 additions & 315 deletions DOCUMENTATION_NEXT.md

This file was deleted.

9 changes: 8 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import configPrisma from 'eslint-config-prisma'
import tsEslint from 'typescript-eslint'

export default tsEslint.config({
ignores: ['**/build/**/*', 'eslint.config.js', 'vite.config.ts', '**/generated/**/*', '**/$generated-clients/**/*'],
ignores: [
'**/build/**/*',
'eslint.config.js',
'vite.config.ts',
'**/generated/**/*',
'**/$generated-clients/**/*',
'**/website/**/*',
],
extends: configPrisma,
languageOptions: {
parserOptions: {
Expand Down
2 changes: 1 addition & 1 deletion examples/$generated-clients/SocialStudies/Client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createPrefilled } from '../../../src/entrypoints/alpha/client.js'
import { createPrefilled } from '../../../src/entrypoints/graffle/client.js'

import { $defaultSchemaUrl, $Index } from './SchemaRuntime.js'

Expand Down
2 changes: 1 addition & 1 deletion examples/$generated-clients/SocialStudies/Scalar.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from '../../../src/entrypoints/alpha/scalars.js'
export * from '../../../src/entrypoints/graffle/scalars.js'
Loading

0 comments on commit f443b13

Please sign in to comment.