feat: add GitHub Actions workflows for documentation deployment and building
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
name: Документация
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
deploy-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install system dependencies (WeasyPrint/PDF)
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y \
|
||||
libcairo2 libpango-1.0-0 libpangoft2-1.0-0 \
|
||||
libgdk-pixbuf-2.0-0 libffi-dev \
|
||||
fontconfig fonts-dejavu
|
||||
|
||||
- name: Install MkDocs
|
||||
run: pip install mkdocs-material mkdocs-with-pdf
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
run: mkdocs gh-deploy --force
|
||||
working-directory: doc/lwc-doc
|
||||
@@ -0,0 +1,40 @@
|
||||
name: Документация
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install system dependencies (WeasyPrint/PDF)
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y \
|
||||
libcairo2 libpango-1.0-0 libpangoft2-1.0-0 \
|
||||
libgdk-pixbuf-2.0-0 libffi-dev \
|
||||
fontconfig fonts-dejavu
|
||||
|
||||
- name: Install MkDocs
|
||||
run: pip install mkdocs-material mkdocs-with-pdf
|
||||
|
||||
- name: Build Documentation
|
||||
run: mkdocs build
|
||||
working-directory: doc/lwc-doc
|
||||
|
||||
- name: Upload site as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: documentation-site
|
||||
path: doc/lwc-doc/site/
|
||||
retention-days: 30
|
||||
@@ -1,4 +1,5 @@
|
||||
site_name: Документация LWC
|
||||
site_url: https://daniel-robotic.github.io/lightweight-cobot/
|
||||
site_description: Документация по использованию коллаборативного робота KUKA LBR iiwa 7 и его программированию в среде ROS 2.
|
||||
site_author: Даниил Грабарь
|
||||
|
||||
|
||||
Reference in New Issue
Block a user