Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): introduce website #1033

Merged
merged 14 commits into from
Aug 16, 2024
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
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