Skip to content

Commit

Permalink
docs(site): switch to astro starlight
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Nov 12, 2023
1 parent e6311a5 commit 6c85916
Show file tree
Hide file tree
Showing 173 changed files with 25,582 additions and 15,192 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
cache: yarn
cache: npm
node-version: ${{ matrix.node-version }}

- name: Install
run: yarn install --frozen-lockfile
run: npm ci

- name: Build
run: yarn build
run: npm run build
env:
FORCE_COLOR: 3
TERM: xterm-256color
Expand All @@ -36,13 +36,13 @@ jobs:

- name: Lint
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
run: yarn lint
run: npm run lint
env:
FORCE_COLOR: 3
TERM: xterm-256color

- name: Test
run: yarn test
run: npm run test
env:
FORCE_COLOR: 3
TERM: xterm-256color
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache: npm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Build website
run: yarn build
run: npm run build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand All @@ -35,7 +35,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./site/build
publish_dir: ./site/dist
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ defaults:
working-directory: site

on:
pull_request:
push:
branches:
- main

jobs:
test-deploy:
Expand All @@ -18,9 +19,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache: npm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Test build website
run: yarn build
run: npm run build
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.astro/
.DS_Store
.idea
*.log
*.log.*
coverage
dist
node_modules
.idea
dist/
node_modules/
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ CHANGELOG.md
coverage
DEPENDENCIES.md
dist
site/.docusaurus
site/build
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"arrowParens": "always",
"printWidth": 100,
"proseWrap": "always",
"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "all",
Expand Down

0 comments on commit 6c85916

Please sign in to comment.