git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 00/12] meson: wire up missing HTML documentation

From
Patrick Steinhardt <ps@pks.im>
Date
Dec 27, 2024, 13:59 UTC
Message-ID
<20241227-b4-pks-meson-docs-v2-0-f61e63edbfa1@pks.im>
In-Reply-To
<20241213-b4-pks-meson-docs-v1-0-0c7895952cd3@pks.im>
Hi,

this patch series wires up missing HTML-based documentation with Meson. This includes a couple of missing manpages, the user manual as well as the random set of articles that we have. It also starts to generate the indices for API docs and howtos so that the result is a complete set of HTML docs, same as with our Makefile. It also fixes a couple of smaller issues I found while working on the series.

Notably missing yet is an integration with CI as well as sanity checks for any kind of missing docs in Meson. I'll work on this in a separate patch series once the initial CI integration as well as this patch series here have landed.

Further missing is the generation of both info pages and a user manual PDF. I couldn't find any users of these anywhere in downstream distros, so I decided to not care for now until somebody complains.

Changes in v2:
  - Change the base to 76cf4f61c8 (Merge https://github.com/j6t/git-gui,
    2024-12-26). This is done to fix conflicts with in-flight topics and
    to pull in the CI setup.
  - Fix a typo.
  - Include another commit to auto-detect missing manpages in Meson both
    via Meson itself, but also via our Makefile.
  - Make the equivalent check in t/Makefile work with Dash.
  - Link to v1: https://lore.kernel.org/r/20241213-b4-pks-meson-docs-v1-0-0c7895952cd3@pks.im
Thanks!
Patrick
---
Patrick Steinhardt (12):
      meson: wire up support for AsciiDoctor
      meson: properly wire up dependencies for our docs
      meson: fix generation of merge tools
      meson: generate HTML pages for all man page categories
      Documentation: inline user-manual.conf
      meson: generate user manual
      Documentation: refactor "api-index.sh" for out-of-tree builds
      Documentation: refactor "howto-index.sh" for out-of-tree builds
      meson: generate articles
      meson: install static files for HTML documentation
      t/Makefile: make "check-meson" work with Dash
      Documentation: wire up sanity checks for Meson
 Documentation/.gitignore                 |   1 +
 Documentation/Makefile                   |  24 ++-
 Documentation/asciidoc.conf.in           |  10 ++
 Documentation/{ => howto}/howto-index.sh |   2 +-
 Documentation/howto/meson.build          |  62 ++++++++
 Documentation/meson.build                | 255 ++++++++++++++++++++++++++-----
 Documentation/technical/api-index.sh     |  19 ++-
 Documentation/technical/meson.build      |  66 ++++++++
 Documentation/user-manual.conf           |  11 --
 meson_options.txt                        |   2 +
 t/.gitignore                             |   1 +
 t/Makefile                               |  12 +-
 12 files changed, 402 insertions(+), 63 deletions(-)
Range-diff versus v1:
 1:  e564c753c9 !  1:  376ed916ce meson: wire up support for AsciiDoctor
    @@ Documentation/meson.build: manpages = {
     -  input: meson.current_source_dir() / 'asciidoc.conf.in',
     -  output: 'asciidoc.conf',
     -  depends: [git_version_file],
    +-  env: version_gen_environment,
     -)
     +if docs_backend == 'asciidoc'
     +  asciidoc = find_program('asciidoc', required: true)
    @@ Documentation/meson.build: manpages = {
     +    input: meson.current_source_dir() / 'asciidoc.conf.in',
     +    output: 'asciidoc.conf',
     +    depends: [git_version_file],
    ++    env: version_gen_environment,
     +  )
     +
     +  asciidoc_common_options = [
    @@ Documentation/meson.build: manpages = {
     +    input: meson.current_source_dir() / 'asciidoctor-extensions.rb.in',
     +    output: 'asciidoctor-extensions.rb',
     +    depends: [git_version_file],
    ++    env: version_gen_environment,
     +  )
     +
     +  asciidoc_common_options = [
 2:  ce9bfd53f7 !  2:  6c6e593fad meson: properly wire up dependencies for our docs
    @@ Documentation/meson.build: if docs_backend == 'asciidoc'
     +    input: 'asciidoc.conf.in',
          output: 'asciidoc.conf',
          depends: [git_version_file],
    -   )
    +     env: version_gen_environment,
     @@ Documentation/meson.build: elif docs_backend == 'asciidoctor'
            '@INPUT@',
            '@OUTPUT@',
    @@ Documentation/meson.build: elif docs_backend == 'asciidoctor'
     +    input: 'asciidoctor-extensions.rb.in',
          output: 'asciidoctor-extensions.rb',
          depends: [git_version_file],
    -   )
    +     env: version_gen_environment,
     @@ Documentation/meson.build: cmd_lists = [
      documentation_deps += custom_target(
        command: [
 3:  905f220caa =  3:  b962455582 meson: fix generation of merge tools
 4:  ff35b7433a !  4:  32578c5cd2 meson: generate HTML pages for all man page categories
    @@ Commit message
         meson: generate HTML pages for all man page categories
     
         When generating HTML pages for our man pages we only generate them for
    -    category 1 in MEson, which are the pages corresponding to our built-in
    +    category 1 in Meson, which are the pages corresponding to our built-in
         commands. I cannot tell why I added this filter though: our Makefile
         installs all man pages, so a Meson-based build misses out on many of
         them.
 5:  bf8c278db5 !  5:  b704daf80c Documentation: inline user-manual.conf
    @@ Documentation/Makefile: manpage-cmd = $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $
      technical/api-index.txt: technical/api-index-skel.txt \
     
      ## Documentation/asciidoc.conf.in ##
    -@@ Documentation/asciidoc.conf.in: manmanual='Git Manual'
    - mansource='Git @GIT_VERSION@'
    - revdate='@GIT_DATE@'
    +@@ Documentation/asciidoc.conf.in: manmanual=Git Manual
    + mansource=Git @GIT_VERSION@
    + revdate=@GIT_DATE@
      
     +ifdef::doctype-book[]
     +[titles]
 6:  aaebbf0e94 =  6:  7eaf4f4267 meson: generate user manual
 7:  1cc7d42a55 =  7:  52b9e4c34b Documentation: refactor "api-index.sh" for out-of-tree builds
 8:  29fbda50a5 =  8:  b9c8e5fe4d Documentation: refactor "howto-index.sh" for out-of-tree builds
 9:  cd7f5ee207 =  9:  1f724c113a meson: generate articles
10:  d52f3db2bc = 10:  acb6c5f370 meson: install static files for HTML documentation
 -:  ---------- > 11:  2b893f7c0e t/Makefile: make "check-meson" work with Dash
 -:  ---------- > 12:  adf4835053 Documentation: wire up sanity checks for Meson

--- base-commit: 76cf4f61c87855ebf0784b88aaf737d6b09f504b change-id: 20241212-b4-pks-meson-docs-2634bf3e7764

Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 18 of 33 in “meson: wire up missing HTML documentation”
  1. 00/10 meson: wire up missing HTML documentationPatrick Steinhardt, Dec 13, 2024
  2. 01/10 meson: wire up support for AsciiDoctorPatrick Steinhardt, Dec 13, 2024
  3. 02/10 meson: properly wire up dependencies for our docsPatrick Steinhardt, Dec 13, 2024
  4. 03/10 meson: fix generation of merge toolsPatrick Steinhardt, Dec 13, 2024
  5. 04/10 meson: generate HTML pages for all man page categoriesPatrick Steinhardt, Dec 13, 2024
  6. Toon ClaesDec 23, 2024
  7. Patrick SteinhardtDec 27, 2024
  8. 06/10 meson: generate user manualPatrick Steinhardt, Dec 13, 2024
  9. 05/10 Documentation: inline user-manual.confPatrick Steinhardt, Dec 13, 2024
  10. 07/10 Documentation: refactor "api-index.sh" for out-of-tree buildsPatrick Steinhardt, Dec 13, 2024
  11. 09/10 meson: generate articlesPatrick Steinhardt, Dec 13, 2024
  12. 08/10 Documentation: refactor "howto-index.sh" for out-of-tree buildsPatrick Steinhardt, Dec 13, 2024
  13. 10/10 meson: install static files for HTML documentationPatrick Steinhardt, Dec 13, 2024
  14. Toon ClaesDec 23, 2024
  15. Patrick SteinhardtDec 27, 2024
  16. Toon ClaesJan 3, 2025
  17. Patrick SteinhardtJan 3, 2025
  18. 00/12 meson: wire up missing HTML documentationPatrick Steinhardt, Dec 27, 2024
  19. 01/12 meson: wire up support for AsciiDoctorPatrick Steinhardt, Dec 27, 2024
  20. 02/12 meson: properly wire up dependencies for our docsPatrick Steinhardt, Dec 27, 2024
  21. 03/12 meson: fix generation of merge toolsPatrick Steinhardt, Dec 27, 2024
  22. 04/12 meson: generate HTML pages for all man page categoriesPatrick Steinhardt, Dec 27, 2024
  23. 05/12 Documentation: inline user-manual.confPatrick Steinhardt, Dec 27, 2024
  24. 06/12 meson: generate user manualPatrick Steinhardt, Dec 27, 2024
  25. 07/12 Documentation: refactor "api-index.sh" for out-of-tree buildsPatrick Steinhardt, Dec 27, 2024
  26. 08/12 Documentation: refactor "howto-index.sh" for out-of-tree buildsPatrick Steinhardt, Dec 27, 2024
  27. 09/12 meson: generate articlesPatrick Steinhardt, Dec 27, 2024
  28. 10/12 meson: install static files for HTML documentationPatrick Steinhardt, Dec 27, 2024
  29. 11/12 t/Makefile: make "check-meson" work with DashPatrick Steinhardt, Dec 27, 2024
  30. Jonathan NiederJan 2, 2025
  31. Junio C HamanoJan 2, 2025
  32. Junio C HamanoJan 3, 2025
  33. 12/12 Documentation: wire up sanity checks for MesonPatrick Steinhardt, Dec 27, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.