Skip to content

Commit f51d206

Browse files
committed
refactor: Move "docs" folder into root
1 parent de2bb92 commit f51d206

24 files changed

+12
-21
lines changed

.github/workflows/nextjs.yml renamed to .github/workflows/deploy-docs.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2-
#
3-
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4-
#
5-
name: Deploy Next.js site to Pages
1+
name: Deploy Documentation
62

73
on:
8-
# Runs on pushes targeting the default branch
94
push:
105
branches: ['main']
11-
12-
# Allows you to run this workflow manually from the Actions tab
136
workflow_dispatch:
147

15-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
168
permissions:
179
contents: read
1810
pages: write
@@ -24,19 +16,18 @@ concurrency:
2416

2517
defaults:
2618
run:
27-
working-directory: ./packages/docs
19+
working-directory: ./docs
2820

2921
jobs:
30-
# Build job
3122
build:
3223
runs-on: ubuntu-latest
3324
steps:
3425
- name: Checkout
35-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
3627
- name: Setup Node
37-
uses: actions/setup-node@v4
28+
uses: actions/setup-node@v6
3829
with:
39-
node-version: 22
30+
node-version-file: '.nvmrc'
4031
- name: Setup Pages
4132
uses: actions/configure-pages@v5
4233
with:
@@ -53,16 +44,15 @@ jobs:
5344
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
5445
- name: Install dependencies
5546
run: npm install
56-
- name: Build with Next.js
47+
- name: Build library and docs
5748
run: |
5849
cd ../.. && npm install && npm run dist
59-
cd packages/docs
50+
cd docs
6051
npm run build
6152
- name: Upload artifact
62-
uses: actions/upload-pages-artifact@v3
53+
uses: actions/upload-pages-artifact@v4
6354
with:
64-
path: packages/docs/out
65-
55+
path: docs/out
6656
deploy:
6757
environment:
6858
name: github-pages

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)