Skip to content

Commit

Permalink
chore(website): try fixing twoslash
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Oct 28, 2024
1 parent 62332a0 commit e0f7492
Show file tree
Hide file tree
Showing 735 changed files with 94,376 additions and 20 deletions.
83 changes: 64 additions & 19 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,13 @@ jobs:
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 Node
# uses: actions/setup-node@v4
# with:
# node-version: 22
# cache: pnpm
- name: Setup Pages
uses: actions/configure-pages@v5
# In order to build the website we need to have the library built first.
# This is because the Twoslash will depend on the types from Graffle,
# which in this setup is coming from a pnpm install targetting the local
# library file path.
- name: Install Library Dependencies
run: pnpm install
- name: Build Library
run: pnpm build
- name: Install Website Dependencies
working-directory: website
run: pnpm install
- name: Build Website
working-directory: website
run: pnpm build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -56,3 +42,62 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# 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: 22
# cache: pnpm
# - name: Setup Pages
# uses: actions/configure-pages@v5
# # In order to build the website we need to have the library built first.
# # This is because the Twoslash will depend on the types from Graffle,
# # which in this setup is coming from a pnpm install targetting the local
# # library file path.
# - name: Install Library Dependencies
# run: pnpm install
# - name: Build Library
# run: pnpm build
# - name: Install Website Dependencies
# working-directory: website
# run: pnpm install
# - name: Build Website
# working-directory: website
# run: pnpm 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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ build
coverage
tsconfig.vitest-temp.json
website/.vitepress/.temp
website/.vitepress/dist
website/.vitepress/cache
legacy
project/
22 changes: 22 additions & 0 deletions website/.vitepress/dist/404.html

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions website/.vitepress/dist/_assets/graffle-request.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/.vitepress/dist/_assets/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions website/.vitepress/dist/_assets/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e0f7492

Please sign in to comment.