2023-09-24 04:52:04 +00:00
|
|
|
name: docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- ci
|
|
|
|
- 'release/**'
|
|
|
|
paths:
|
|
|
|
- 'DOCS/**'
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
paths:
|
|
|
|
- 'DOCS/**'
|
|
|
|
|
|
|
|
jobs:
|
2023-09-24 18:48:19 +00:00
|
|
|
check-docs:
|
2023-09-24 04:52:04 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-24 17:29:49 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-24 18:48:19 +00:00
|
|
|
- name: Docs
|
2023-09-24 04:52:04 +00:00
|
|
|
run: |
|
2024-03-06 22:03:42 +00:00
|
|
|
sudo apt-get install python3-docutils rst2pdf
|
|
|
|
./TOOLS/docutils-wrapper.py rst2man --strip-elements-with-class=contents --halt=2 ./DOCS/man/mpv.rst mpv.1
|
|
|
|
./TOOLS/docutils-wrapper.py rst2html --halt=2 ./DOCS/man/mpv.rst mpv.html
|
|
|
|
./TOOLS/docutils-wrapper.py rst2pdf -c -b 1 --repeat-table-rows ./DOCS/man/mpv.rst -o mpv.pdf
|