Add VitePress documentation site setup

Introduces VitePress configuration and theme files for documentation, updates the GitHub Pages workflow to build and deploy the new docs, and updates .gitignore for VitePress and Node artifacts. Adds necessary dependencies and scripts to package.json, and updates the ONVIF client example README title.
This commit is contained in:
Sergey Krashevich
2026-01-19 01:23:45 +03:00
parent 159fb4675c
commit d98059f069
8 changed files with 208 additions and 9 deletions
+20 -5
View File
@@ -2,7 +2,9 @@
name: Deploy static content to Pages
on:
# Allows you to run this workflow manually from the Actions tab
push:
branches:
- main
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -14,7 +16,7 @@ permissions:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
@@ -25,13 +27,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- name: Install dependencies
run: npm install --no-package-lock
- name: Build docs
env:
BASE_URL: /${{ github.event.repository.name }}/
run: npm run docs:build
- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './website'
path: './.vitepress/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4