summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt184
-rw-r--r--doc/cs/CMakeLists.txt67
l---------doc/cs/docinfo.html1
-rw-r--r--doc/de/CMakeLists.txt112
l---------doc/de/docinfo.html1
-rw-r--r--doc/en/CMakeLists.txt160
l---------doc/en/docinfo.html1
-rw-r--r--doc/es/CMakeLists.txt48
l---------doc/es/docinfo.html1
-rw-r--r--doc/fr/CMakeLists.txt160
l---------doc/fr/docinfo.html1
-rw-r--r--doc/it/CMakeLists.txt134
l---------doc/it/docinfo.html1
-rw-r--r--doc/ja/CMakeLists.txt160
l---------doc/ja/docinfo.html1
-rw-r--r--doc/pl/CMakeLists.txt112
l---------doc/pl/docinfo.html1
-rw-r--r--doc/ru/CMakeLists.txt67
l---------doc/ru/docinfo.html1
-rw-r--r--doc/sr/CMakeLists.txt160
l---------doc/sr/docinfo.html1
21 files changed, 170 insertions, 1204 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 87b9df635..8d89b8509 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -19,6 +19,18 @@
#
if(ENABLE_MAN OR ENABLE_DOC)
+
+ # docs languages
+ set(AUTOGEN_LANG de en fr it ja pl sr)
+ set(MAN_LANG cs de en fr it ja pl ru sr)
+ set(USER_LANG de en fr it ja pl sr)
+ set(PLUGIN_API_LANG en fr it ja sr)
+ set(SCRIPTING_LANG de en fr it ja pl sr)
+ set(FAQ_LANG de en es fr it ja pl sr)
+ set(QUICKSTART_LANG cs de en es fr it ja pl ru sr)
+ set(RELAY_LANG en fr ja sr)
+ set(DEV_LANG en fr ja sr)
+
find_package(Asciidoctor)
if(ASCIIDOCTOR_FOUND)
# common asciidoctor arguments
@@ -32,6 +44,7 @@ if(ENABLE_MAN OR ENABLE_DOC)
-a sectanchors
-a source-highlighter=pygments
-a pygments-style=native
+ -a docinfodir="${CMAKE_CURRENT_SOURCE_DIR}"
-a autogendir="${CMAKE_CURRENT_BINARY_DIR}/autogen"
)
@@ -55,7 +68,7 @@ if(ENABLE_MAN OR ENABLE_DOC)
)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/ChangeLog.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -a docinfodir="${CMAKE_CURRENT_SOURCE_DIR}" -o ChangeLog.html "${CMAKE_CURRENT_BINARY_DIR}/ChangeLog-links.adoc"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o ChangeLog.html "${CMAKE_CURRENT_BINARY_DIR}/ChangeLog-links.adoc"
DEPENDS
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
"${CMAKE_CURRENT_BINARY_DIR}/ChangeLog-links.adoc"
@@ -74,7 +87,7 @@ if(ENABLE_MAN OR ENABLE_DOC)
)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/ReleaseNotes.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -a docinfodir="${CMAKE_CURRENT_SOURCE_DIR}" -o ReleaseNotes.html "${CMAKE_CURRENT_BINARY_DIR}/ReleaseNotes-links.adoc"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o ReleaseNotes.html "${CMAKE_CURRENT_BINARY_DIR}/ReleaseNotes-links.adoc"
DEPENDS
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
"${CMAKE_CURRENT_BINARY_DIR}/ReleaseNotes-links.adoc"
@@ -85,7 +98,6 @@ if(ENABLE_MAN OR ENABLE_DOC)
if(ENABLE_DOC)
set(AUTOGEN_FILES "")
- set(AUTOGEN_LANG de en fr it ja pl sr)
foreach(lang ${AUTOGEN_LANG})
LIST(APPEND AUTOGEN_FILES
# plugin API reference
@@ -118,18 +130,162 @@ if(ENABLE_MAN OR ENABLE_DOC)
)
endif()
- # man/doc in all languages
- add_subdirectory(cs)
- add_subdirectory(de)
- add_subdirectory(en)
- add_subdirectory(es)
- add_subdirectory(fr)
- add_subdirectory(it)
- add_subdirectory(ja)
- add_subdirectory(pl)
- add_subdirectory(ru)
- add_subdirectory(sr)
+ if(ENABLE_MAN)
+ foreach(lang ${MAN_LANG})
+ if(${lang} STREQUAL "en")
+ set(MANDIR_LANG "${MANDIR}/man1")
+ else()
+ set(MANDIR_LANG "${MANDIR}/${lang}/man1")
+ endif()
+ # man page: weechat
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.${lang}.1"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o "weechat.${lang}.1" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat.1.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat.1.${lang}.adoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/cmdline_options.${lang}.adoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/man.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat.1 (${lang})"
+ )
+ add_custom_target(doc-man-weechat-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.${lang}.1")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.${lang}.1" DESTINATION "${MANDIR_LANG}" RENAME "weechat.1")
+ # man page: weechat-headless
+ if(ENABLE_HEADLESS)
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.${lang}.1"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o "weechat-headless.${lang}.1" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat-headless.1.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat-headless.1.${lang}.adoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/cmdline_options.${lang}.adoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/man.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat-headless.1 (${lang})"
+ )
+ add_custom_target(doc-man-weechat-headless-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.${lang}.1")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.${lang}.1" DESTINATION "${MANDIR_LANG}" RENAME "weechat-headless.1")
+ endif()
+ endforeach()
+ endif()
+
+ if(ENABLE_DOC)
+ # user's guide
+ foreach(lang ${USER_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_user.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_user.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_user.${lang}.adoc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/cmdline_options.${lang}.adoc"
+ doc-autogen
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_user_commands.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_user_default_aliases.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_user_irc_colors.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_user_options.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_user.${lang}.html"
+ )
+ add_custom_target(doc-user-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ # plugin API reference
+ foreach(lang ${PLUGIN_API_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_plugin_api.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_plugin_api.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_plugin_api.${lang}.adoc"
+ doc-autogen
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_completions.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_config_priority.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_hdata.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_infolists.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_infos.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_infos_hashtable.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_plugins_priority.${lang}.adoc"
+ "${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_url_options.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_plugin_api.${lang}.html"
+ )
+ add_custom_target(doc-plugin-api-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ # scripting guide
+ foreach(lang ${SCRIPTING_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_scripting.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_scripting.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_scripting.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_scripting.${lang}.html"
+ )
+ add_custom_target(doc-scripting-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ # FAQ
+ foreach(lang ${FAQ_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_faq.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_faq.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_faq.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_faq.${lang}.html"
+ )
+ add_custom_target(doc-faq-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ # quickstart
+ foreach(lang ${QUICKSTART_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_quickstart.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_quickstart.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_quickstart.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_quickstart.${lang}.html"
+ )
+ add_custom_target(doc-quickstart-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ # relay protocol
+ foreach(lang ${RELAY_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_relay_protocol.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_protocol.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_protocol.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_relay_protocol.${lang}.html"
+ )
+ add_custom_target(doc-relay-protocol-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ # developer's guide
+ foreach(lang ${DEV_LANG})
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.${lang}.html"
+ COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o "weechat_dev.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_dev.${lang}.adoc"
+ DEPENDS
+ "${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_dev.${lang}.adoc"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMENT "Building weechat_dev.${lang}.html"
+ )
+ add_custom_target(doc-dev-${lang} ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.${lang}.html")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.${lang}.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
+ endforeach()
+ endif()
+
else()
message(SEND_ERROR "Asciidoctor not found")
endif()
+
endif()
diff --git a/doc/cs/CMakeLists.txt b/doc/cs/CMakeLists.txt
deleted file mode 100644
index 26a98d526..000000000
--- a/doc/cs/CMakeLists.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (cs)"
- )
- add_custom_target(doc-man-weechat-cs ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/cs/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (cs)"
- )
- add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/cs/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.cs.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.cs.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.cs.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.cs.html"
- )
- add_custom_target(doc-quickstart-cs ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/cs/docinfo.html b/doc/cs/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/cs/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/de/CMakeLists.txt b/doc/de/CMakeLists.txt
deleted file mode 100644
index 1e7e2528c..000000000
--- a/doc/de/CMakeLists.txt
+++ /dev/null
@@ -1,112 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.de.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (de)"
- )
- add_custom_target(doc-man-weechat-de ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/de/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.de.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (de)"
- )
- add_custom_target(doc-man-weechat-headless-de ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/de/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.de.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.de.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.de.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.de.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.de.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.de.html"
- )
- add_custom_target(doc-user-de ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.de.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.de.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.de.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.de.html"
- )
- add_custom_target(doc-scripting-de ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.de.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.de.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.de.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.de.html"
- )
- add_custom_target(doc-faq-de ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.de.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.de.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.de.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.de.html"
- )
- add_custom_target(doc-quickstart-de ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/de/docinfo.html b/doc/de/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/de/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt
deleted file mode 100644
index 41c90d58c..000000000
--- a/doc/en/CMakeLists.txt
+++ /dev/null
@@ -1,160 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.en.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (en)"
- )
- add_custom_target(doc-man-weechat-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.en.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (en)"
- )
- add_custom_target(doc-man-weechat-headless-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.en.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.en.html"
- )
- add_custom_target(doc-user-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # plugin API reference
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_plugin_api.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.en.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_completions.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_config_priority.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_hdata.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infolists.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos_hashtable.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_plugins_priority.en.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_url_options.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_plugin_api.en.html"
- )
- add_custom_target(doc-plugin-api-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.en.html"
- )
- add_custom_target(doc-scripting-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.en.html"
- )
- add_custom_target(doc-faq-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.en.html"
- )
- add_custom_target(doc-quickstart-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # relay protocol
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_relay_protocol.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_relay_protocol.en.html"
- )
- add_custom_target(doc-relay-protocol-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # developer's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_dev.en.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.en.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.en.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_dev.en.html"
- )
- add_custom_target(doc-dev-en ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/en/docinfo.html b/doc/en/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/en/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt
deleted file mode 100644
index b4fce3a7b..000000000
--- a/doc/es/CMakeLists.txt
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright (C) 2012-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_DOC)
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.es.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.es.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.es.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.es.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.es.html"
- )
- add_custom_target(doc-faq-es ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.es.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.es.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.es.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.es.html"
- )
- add_custom_target(doc-quickstart-es ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/es/docinfo.html b/doc/es/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/es/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt
deleted file mode 100644
index 1656804e9..000000000
--- a/doc/fr/CMakeLists.txt
+++ /dev/null
@@ -1,160 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (fr)"
- )
- add_custom_target(doc-man-weechat-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/fr/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (fr)"
- )
- add_custom_target(doc-man-weechat-headless-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/fr/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.fr.html"
- )
- add_custom_target(doc-user-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # plugin API reference
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_plugin_api.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.fr.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_completions.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_config_priority.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_hdata.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infolists.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos_hashtable.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_plugins_priority.fr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_url_options.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_plugin_api.fr.html"
- )
- add_custom_target(doc-plugin-api-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.fr.html"
- )
- add_custom_target(doc-scripting-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.fr.html"
- )
- add_custom_target(doc-faq-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.fr.html"
- )
- add_custom_target(doc-quickstart-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # relay protocol
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_relay_protocol.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_relay_protocol.fr.html"
- )
- add_custom_target(doc-relay-protocol-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # developer's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_dev.fr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.fr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.fr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_dev.fr.html"
- )
- add_custom_target(doc-dev-fr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/fr/docinfo.html b/doc/fr/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/fr/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt
deleted file mode 100644
index ab63c8dac..000000000
--- a/doc/it/CMakeLists.txt
+++ /dev/null
@@ -1,134 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.it.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (it)"
- )
- add_custom_target(doc-man-weechat-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/it/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.it.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (it)"
- )
- add_custom_target(doc-man-weechat-headless-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/it/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.it.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.it.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.it.html"
- )
- add_custom_target(doc-user-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # plugin API reference
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_plugin_api.it.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_completions.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_config_priority.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_hdata.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infolists.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos_hashtable.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_plugins_priority.it.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_url_options.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_plugin_api.it.html"
- )
- add_custom_target(doc-plugin-api-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.it.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.it.html"
- )
- add_custom_target(doc-scripting-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.it.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.it.html"
- )
- add_custom_target(doc-faq-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.it.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.it.html"
- )
- add_custom_target(doc-quickstart-it ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/it/docinfo.html b/doc/it/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/it/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/ja/CMakeLists.txt b/doc/ja/CMakeLists.txt
deleted file mode 100644
index ffb409197..000000000
--- a/doc/ja/CMakeLists.txt
+++ /dev/null
@@ -1,160 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ja.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (ja)"
- )
- add_custom_target(doc-man-weechat-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/ja/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ja.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (ja)"
- )
- add_custom_target(doc-man-weechat-headless-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/ja/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.ja.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ja.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.ja.html"
- )
- add_custom_target(doc-user-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # plugin API reference
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_plugin_api.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.ja.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_completions.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_config_priority.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_hdata.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infolists.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos_hashtable.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_plugins_priority.ja.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_url_options.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_plugin_api.ja.html"
- )
- add_custom_target(doc-plugin-api-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.ja.html"
- )
- add_custom_target(doc-scripting-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.ja.html"
- )
- add_custom_target(doc-faq-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.ja.html"
- )
- add_custom_target(doc-quickstart-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # relay protocol
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_relay_protocol.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_relay_protocol.ja.html"
- )
- add_custom_target(doc-relay-protocol-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # developer's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.ja.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_dev.ja.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.ja.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.ja.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_dev.ja.html"
- )
- add_custom_target(doc-dev-ja ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.ja.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.ja.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/ja/docinfo.html b/doc/ja/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/ja/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/pl/CMakeLists.txt b/doc/pl/CMakeLists.txt
deleted file mode 100644
index eae3784a5..000000000
--- a/doc/pl/CMakeLists.txt
+++ /dev/null
@@ -1,112 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.pl.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.pl.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (pl)"
- )
- add_custom_target(doc-man-weechat-pl ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/pl/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.pl.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.pl.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (pl)"
- )
- add_custom_target(doc-man-weechat-headless-pl ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/pl/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.pl.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.pl.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.pl.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.pl.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.pl.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.pl.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.pl.html"
- )
- add_custom_target(doc-user-pl ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.pl.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.pl.html"
- )
- add_custom_target(doc-scripting-pl ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.pl.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.pl.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.pl.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.pl.html"
- )
- add_custom_target(doc-faq-pl ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.pl.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.pl.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.pl.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.pl.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.pl.html"
- )
- add_custom_target(doc-quickstart-pl ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.pl.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.pl.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/pl/docinfo.html b/doc/pl/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/pl/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/ru/CMakeLists.txt b/doc/ru/CMakeLists.txt
deleted file mode 100644
index b9a4047e2..000000000
--- a/doc/ru/CMakeLists.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ru.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ru.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (ru)"
- )
- add_custom_target(doc-man-weechat-ru ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/ru/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ru.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ru.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (ru)"
- )
- add_custom_target(doc-man-weechat-headless-ru ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/ru/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.ru.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.ru.html"
- )
- add_custom_target(doc-quickstart-ru ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/ru/docinfo.html b/doc/ru/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/ru/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file
diff --git a/doc/sr/CMakeLists.txt b/doc/sr/CMakeLists.txt
deleted file mode 100644
index ee22faa9f..000000000
--- a/doc/sr/CMakeLists.txt
+++ /dev/null
@@ -1,160 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if(ENABLE_MAN)
- # man page: weechat
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.sr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.sr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat.1 (sr)"
- )
- add_custom_target(doc-man-weechat-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat.1" DESTINATION "${MANDIR}/sr/man1")
-
- if(ENABLE_HEADLESS)
- # man page: weechat-headless
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.sr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.sr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/man.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat-headless.1 (sr)"
- )
- add_custom_target(doc-man-weechat-headless-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1" DESTINATION "${MANDIR}/sr/man1")
- endif()
-endif()
-
-if(ENABLE_DOC)
-
- # user's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.sr.adoc"
- "${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.sr.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_commands.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_default_aliases.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_irc_colors.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_user_options.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_user.sr.html"
- )
- add_custom_target(doc-user-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # plugin API reference
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_plugin_api.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.sr.adoc"
- doc-autogen
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_completions.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_config_priority.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_hdata.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infolists.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_infos_hashtable.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_plugins_priority.sr.adoc"
- "${CMAKE_CURRENT_BINARY_DIR}/../autogen/autogen_api_url_options.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_plugin_api.sr.html"
- )
- add_custom_target(doc-plugin-api-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # scripting guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_scripting.sr.html"
- )
- add_custom_target(doc-scripting-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # FAQ
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_faq.sr.html"
- )
- add_custom_target(doc-faq-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # quickstart
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_quickstart.sr.html"
- )
- add_custom_target(doc-quickstart-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # relay protocol
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_relay_protocol.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_relay_protocol.sr.html"
- )
- add_custom_target(doc-relay-protocol-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
- # developer's guide
- add_custom_command(
- OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.sr.html"
- COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} -o weechat_dev.sr.html "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.sr.adoc"
- DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html"
- "${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.sr.adoc"
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
- COMMENT "Building weechat_dev.sr.html"
- )
- add_custom_target(doc-dev-sr ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.sr.html")
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.sr.html" DESTINATION "${DATAROOTDIR}/doc/${PROJECT_NAME}")
-
-endif()
diff --git a/doc/sr/docinfo.html b/doc/sr/docinfo.html
deleted file mode 120000
index c413f224f..000000000
--- a/doc/sr/docinfo.html
+++ /dev/null
@@ -1 +0,0 @@
-../docinfo.html \ No newline at end of file