mirror of
https://github.com/mpv-player/mpv
synced 2025-01-28 10:33:20 +00:00
4179d58389
Not sure if this is particularly useful, but we might as well generate these as well. Also use the docutils wrapper since that's what the meson build does.
27 lines
670 B
YAML
27 lines
670 B
YAML
name: docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- ci
|
|
- 'release/**'
|
|
paths:
|
|
- 'DOCS/**'
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- 'DOCS/**'
|
|
|
|
jobs:
|
|
check-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Docs
|
|
run: |
|
|
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
|