Skip to content

Commit

Permalink
Website
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Mar 27, 2023
1 parent dfdafe9 commit 0079fa1
Show file tree
Hide file tree
Showing 79 changed files with 18,319 additions and 1,790 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,6 @@ jobs:
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner rust-

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn

- run: yarn install --frozen-lockfile
- run: yarn docs:lint

cpp:
runs-on: ubuntu-latest
defaults:
Expand Down
217 changes: 0 additions & 217 deletions .github/workflows/pages.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Website

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

on:
push:
branches: [main]
pull_request:
branches: ["*"]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment:
name: Preview
url: ${{ steps.url.outputs.url }}
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v3
with:
lfs: true

- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn

- run: yarn install --frozen-lockfile

- name: Configure Vercel (Preview)
if: github.ref != 'refs/heads/main'
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}

- name: Configure Vercel (Production)
if: github.ref == 'refs/heads/main'
run: yarn vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }}

- run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | tee deploy.log

- id: url
name: Set URL
run: echo "url=$(tail -1 deploy.log)" >> $GITHUB_OUTPUT
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Prettier converts `` to ` in Markdown, which breaks Swift-DocC
**/*.docc/**/*.md
python/Pipfile.lock
tests/conformance/data/**/*.json
typescript/examples/flatbuffer/output/**/*.ts
2 changes: 0 additions & 2 deletions docs/.prettierrc.yml → .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
proseWrap: never

overrides:
- files: "*.ksy"
options:
Expand Down
13 changes: 8 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
// -*- jsonc -*-
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",

"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,

"typescript.tsdk": "node_modules/typescript/lib",
"prettier.prettierPath": "./node_modules/prettier",
Expand All @@ -16,17 +22,14 @@
"**/node_modules": true,
"tests/conformance/data": true,
"python/**/build": true,
"python/docs/*-apidoc": true,
"python/docs/*-apidoc": true
},

"python.formatting.provider": "black",
"python.analysis.typeCheckingMode": "strict",
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,
"python.linting.flake8Args": [
"--config",
"python/.flake8"
],
"python.linting.flake8Args": ["--config", "python/.flake8"],
"python.analysis.extraPaths": [
"./python/mcap",
"./python/mcap-protobuf-support",
Expand Down
1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

8 changes: 0 additions & 8 deletions docs/Pipfile

This file was deleted.

Loading

0 comments on commit 0079fa1

Please sign in to comment.