From c4e9d9a66f6fc0eba0e5ca8d093b8feac1eabb57 Mon Sep 17 00:00:00 2001 From: Daichi Fukui Date: Sun, 26 Jan 2025 02:27:10 +0000 Subject: [PATCH] doc/man: Add man pages jsonnet.1 and jsonnetfmt.1 This commit adds man pages for the jsonnet and jsonnetfmt commands. The Debian Lintian quality checker warns that each binary should have a manual page, but hopefully this idea would also apply to non-Debian users. These man pages are created using the help2man command, so the contents are substantially the same as the output of the help option. --- CMakeLists.txt | 5 +++ doc/man/CMakeLists.txt | 2 + doc/man/jsonnet.1 | 97 ++++++++++++++++++++++++++++++++++++++++++ doc/man/jsonnetfmt.1 | 70 ++++++++++++++++++++++++++++++ 4 files changed, 174 insertions(+) create mode 100644 doc/man/CMakeLists.txt create mode 100644 doc/man/jsonnet.1 create mode 100644 doc/man/jsonnetfmt.1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 77331f6f..44717359 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,11 @@ endif() set(CMAKE_CXX_STANDARD 17) +# Manuals +add_subdirectory(doc/man) +install(FILES doc/man/jsonnet.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +install(FILES doc/man/jsonnetfmt.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) + # Include external googletest project. This runs a CMake sub-script # (CMakeLists.txt.in) that downloads googletest source. It's then built as part # of the jsonnet project. The conventional way of handling CMake dependencies is diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt new file mode 100644 index 00000000..86f2324c --- /dev/null +++ b/doc/man/CMakeLists.txt @@ -0,0 +1,2 @@ +install(DIRECTORY man1/ DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 + FILES_MATCHING PATTERN "*.1") diff --git a/doc/man/jsonnet.1 b/doc/man/jsonnet.1 new file mode 100644 index 00000000..d82f79db --- /dev/null +++ b/doc/man/jsonnet.1 @@ -0,0 +1,97 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH JSONNET "1" "January 2025" "Jsonnet commandline interpreter v0.20.0" "User Commands" +.SH NAME +Jsonnet \- Jsonnet data templating language interpreter +.SH DESCRIPTION +Jsonnet commandline interpreter v0.20.0 +.PP +jsonnet {