From 22c7dfe0e13864c447fc64ae990c0f2dbb335064 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Sat, 22 Aug 2026 14:23:13 +0300 Subject: [PATCH] Generate HTML documentation from man pages in a workflow The HTML under doc/html was produced by a script kept outside this repository, so editing a man page and refreshing its HTML were separate manual steps and the two could drift apart. Run the same groff conversion in a workflow triggered by a change under man/. It rebuilds doc/html/index.html and the man5 and man8 pages, and commits only when something actually changed. Output was verified byte for byte against the committed tree: all twelve man pages and index.html are reproduced exactly. --- .github/workflows/update-docs.yml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/update-docs.yml diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml new file mode 100644 index 0000000..c3569a2 --- /dev/null +++ b/.github/workflows/update-docs.yml @@ -0,0 +1,51 @@ +name: Update HTML documentation + +on: + push: + paths: + - 'man/**' + workflow_dispatch: + +permissions: + contents: read + +jobs: + docs: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - name: Install groff + run: | + sudo apt-get update + sudo apt-get install -y groff + + - name: Generate HTML from man pages + run: | + mkdir -p doc/html/man5 doc/html/man8 + echo \\