name: "Pull Request Docs Check"

on:
  pull_request:
  push:
    branches:
      - master
      - stable*

jobs:
  user_manual:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
    - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
      with:
        python-version: '3.12'
        cache: 'pip'
    - name: Install pip dependencies
      run: pip install -r requirements.txt
    - name: Build using Makefile
      run: cd user_manual && make html

  user_manual-en:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
    - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
      with:
        python-version: '3.12'
    - name: Install pip dependencies
      run: pip install -r requirements.txt
    - name: Build using Makefile
      run: cd user_manual && make html-lang-en

  developer_manual:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
    - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
      with:
        python-version: '3.12'
        cache: 'pip'
    - name: Install pip dependencies
      run: pip install -r requirements.txt
    - name: Build using Makefile
      run: cd developer_manual && make html

  admin_manual:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
    - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
      with:
        python-version: '3.12'
        cache: 'pip'
    - name: Install pip dependencies
      run: pip install -r requirements.txt
    - name: Build using Makefile
      run: cd admin_manual && make html
      with:
