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 {