Skip to content

[docs] Add download link in FAQ and download page. #22

[docs] Add download link in FAQ and download page.

[docs] Add download link in FAQ and download page. #22

Workflow file for this run

# Update www.dvr-scan.com
# TODO: Add versioning for documentation. Currently only the latest docs are shown.
name: Update Website
on:
push:
branches:
- main
paths:
- "docs/**"
- "website/**"
workflow_dispatch:
env:
ffmpeg_version: "7.1"
UV_SYSTEM_PYTHON: 1
jobs:
update_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v4
with:
version: "0.5.11"
python-version: "3.13"
- name: Install Dependencies
run: |
uv pip install -r docs/requirements.txt
- name: Generate Website
run: |
git rm docs/index_docs.md
mkdocs build -f website/mkdocs.yml
git reset --hard HEAD
- name: Update Website
run: |
git fetch origin gh-pages
git checkout gh-pages
git rm * -r -f --ignore-unmatch
git checkout HEAD -- .nojekyll
git checkout HEAD -- CNAME
git add website/build/
git mv website/build/* . -f -k
git rm website/build/* -r -f --ignore-unmatch
git config --global user.name github-actions
git config --global user.email [email protected]
git commit -a -m "[docs] @${{ github.triggering_actor }}: Generate Website" \
-m "Commit: ${{ github.sha }}"
git push