Skip to content

Commit 7f4bd66

Browse files
Merge pull request #42 from itiden/feature/docs
Feature/docs
2 parents 9ecdf45 + 5d77fae commit 7f4bd66

File tree

14 files changed

+2795
-268
lines changed

14 files changed

+2795
-268
lines changed

.github/workflows/build-docs.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2+
#
3+
name: Deploy VitePress site to Pages
4+
5+
on:
6+
# TODO: Change to tag?
7+
push:
8+
branches: [main]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: pages
23+
cancel-in-progress: false
24+
25+
jobs:
26+
# Build job
27+
build:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
# with:
33+
# fetch-depth: 0 # Not needed if lastUpdated is not enabled
34+
- name: Setup Node
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20
38+
cache: npm # or pnpm / yarn
39+
- name: Setup Pages
40+
uses: actions/configure-pages@v4
41+
- name: Goto docs directory
42+
run: cd docs
43+
- name: Install dependencies
44+
run: npm ci
45+
- name: Build with VitePress
46+
run: npm run docs:build
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: docs/pages/.vitepress/dist
51+
52+
# Deployment job
53+
deploy:
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
needs: build
58+
runs-on: ubuntu-latest
59+
name: Deploy
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
vendor
33
resources/dist
4+
docs/pages/.vitepress/cache
5+
docs/pages/.vitepress/dist

docs/configuration.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)