add man page generation to build

pull/9773/head
Stone Tickle 3 years ago
parent ac468a1394
commit 71ea9e3d4c
No known key found for this signature in database
GPG Key ID: 4DF34BD9C2622309
  1. 7
      .github/workflows/website.yml
  2. 16
      docs/meson.build

@ -61,4 +61,11 @@ jobs:
file: docs/_build/reference_manual.json
tag: ${{ github.ref }}
if: ${{ github.event_name == 'release' }}
- name: Release the current man docs
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: docs/_build/meson-reference.3
tag: ${{ github.ref }}
if: ${{ github.event_name == 'release' }}

@ -63,6 +63,22 @@ refman_json = custom_target(
],
)
refman_man = custom_target(
'gen_refman_man',
build_by_default: true,
input: refman_binary,
output: 'meson-reference.3',
command: [
genrefman,
'-l', 'pickle',
'-g', 'man',
'-i', '@INPUT@',
'-o', '@OUTPUT@',
'--force-color',
'--no-modules',
],
)
test('validate_docs', find_program('./jsonvalidator.py'), args: [refman_json])
hotdoc_prog = find_program('hotdoc', version: '>=0.13.7')

Loading…
Cancel
Save