summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2024-03-03 17:55:30 +0100
committerGitHub <noreply@github.com>2024-03-03 17:55:30 +0100
commit7485c90c9f7259c026a84dd0335f56860005315d (patch)
tree78b370de886082b7370815468f7269f18eabed0e /.github
parent421b358c32aa281b0f34f8b92322f3bda27684fa (diff)
feat(docs): move to vitepress (#5785)
* feat(docs): move to vitepress * change up hero styles to match existing site * A bit more style tweaking * Replace stylus with plain CSS * improve unicode-range value for nerdfont --------- Co-authored-by: Matan Kushner <hello@matchai.dev>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/format-workflow.yml23
-rw-r--r--.github/workflows/publish-docs.yml6
-rw-r--r--.github/workflows/release.yml4
3 files changed, 28 insertions, 5 deletions
diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml
index 50c96a629..34636ad3f 100644
--- a/.github/workflows/format-workflow.yml
+++ b/.github/workflows/format-workflow.yml
@@ -40,3 +40,26 @@ jobs:
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: docs/[a-z][a-z][a-z]?-[A-Z][A-Z]?/.*
+
+ # Vitepress build
+ vitepress:
+ name: Vitepress [Build]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Setup | Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup | Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: 'npm'
+ cache-dependency-path: docs/package-lock.json
+
+ - name: Setup | Install dependencies
+ run: npm install
+ working-directory: docs
+
+ - name: Build | Build docs site
+ run: npm run build
+ working-directory: docs
diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml
index 0aabea0cd..a28ccc3d1 100644
--- a/.github/workflows/publish-docs.yml
+++ b/.github/workflows/publish-docs.yml
@@ -10,9 +10,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup | Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 16
+ node-version: 20
cache: 'npm'
cache-dependency-path: docs/package-lock.json
@@ -27,7 +27,7 @@ jobs:
- name: Publish
uses: netlify/actions/cli@master
with:
- args: deploy --prod --dir=docs/.vuepress/dist
+ args: deploy --prod --dir=docs/.vitepress/dist
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8e2bd1ae0..c9cb80ed5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -215,9 +215,9 @@ jobs:
xcrun notarytool store-credentials "$KEYCHAIN_ENTRY" --team-id "$APPLEID_TEAMID" --apple-id "$APPLEID_USERNAME" --password "$APPLEID_PASSWORD" --keychain "$KEYCHAIN_PATH"
- name: Setup | Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 16
+ node-version: 20
- name: Notarize | Build docs
run: |