summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/CMakeLists.txt30
-rw-r--r--doc/it/Makefile.am34
l---------doc/it/docinfo.html1
-rw-r--r--doc/it/weechat.1.it.asciidoc13
-rw-r--r--doc/it/weechat_faq.it.asciidoc6
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc7
-rw-r--r--doc/it/weechat_quickstart.it.asciidoc6
-rw-r--r--doc/it/weechat_scripting.it.asciidoc5
-rw-r--r--doc/it/weechat_tester.it.asciidoc5
-rw-r--r--doc/it/weechat_user.it.asciidoc7
10 files changed, 61 insertions, 53 deletions
diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt
index de0cb4242..440cea4fe 100644
--- a/doc/it/CMakeLists.txt
+++ b/doc/it/CMakeLists.txt
@@ -21,9 +21,7 @@ if(ENABLE_MAN)
# man page
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.asciidoc .
- COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc .
- COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.asciidoc
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.asciidoc
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc
@@ -34,14 +32,14 @@ if(ENABLE_MAN)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/it/man1)
endif()
-if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
+if(ENABLE_DOC)
# user's guide
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_user.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.asciidoc
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc
${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc
@@ -54,9 +52,9 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
# plugin API reference
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_API} -o weechat_plugin_api.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_plugin_api.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.asciidoc
${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin_api/*.asciidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
@@ -68,9 +66,9 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
# scripting guide
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_scripting.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.asciidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_scripting.it.html"
@@ -81,9 +79,9 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
# FAQ
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.asciidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_faq.it.html"
@@ -94,9 +92,9 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
# quickstart
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.asciidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_quickstart.it.html"
@@ -107,9 +105,9 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
# tester's guide
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.it.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.it.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_tester.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.it.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.it.asciidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_tester.it.html"
diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am
index 627976f98..fc732c0a0 100644
--- a/doc/it/Makefile.am
+++ b/doc/it/Makefile.am
@@ -50,36 +50,31 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.it.asciidoc cmdline_options.it.asciidoc
- -mkdir tmp_man
- cp -f $(abs_top_srcdir)/doc/it/weechat.1.it.asciidoc ./tmp_man/
- cp -f $(abs_top_srcdir)/doc/it/cmdline_options.it.asciidoc ./tmp_man/
- (cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.it.asciidoc)
- mv -f tmp_man/weechat.1 .
- rm -rf tmp_man
+ $(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/it/weechat.1.it.asciidoc
# user's guide
-weechat_user.it.html: weechat_user.it.asciidoc cmdline_options.it.asciidoc $(wildcard autogen/user/*.asciidoc) $(abs_top_srcdir)/doc/asciidoc_toc2.css
- $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.asciidoc
+weechat_user.it.html: weechat_user.it.asciidoc cmdline_options.it.asciidoc $(wildcard autogen/user/*.asciidoc) $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.asciidoc
# plugin API reference
-weechat_plugin_api.it.html: weechat_plugin_api.it.asciidoc $(wildcard autogen/plugin_api/*.asciidoc) $(abs_top_srcdir)/doc/asciidoc_toc2.css
- $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.asciidoc
+weechat_plugin_api.it.html: weechat_plugin_api.it.asciidoc $(wildcard autogen/plugin_api/*.asciidoc) $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.asciidoc
# scripting guide
-weechat_scripting.it.html: weechat_scripting.it.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc2.css
- $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.asciidoc
+weechat_scripting.it.html: weechat_scripting.it.asciidoc $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.asciidoc
# FAQ
-weechat_faq.it.html: weechat_faq.it.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc.css
- $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.asciidoc
+weechat_faq.it.html: weechat_faq.it.asciidoc $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.asciidoc
# quickstart
-weechat_quickstart.it.html: weechat_quickstart.it.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc2.css
- $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.asciidoc
+weechat_quickstart.it.html: weechat_quickstart.it.asciidoc $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.asciidoc
# tester's guide
-weechat_tester.it.html: weechat_tester.it.asciidoc $(abs_top_srcdir)/doc/asciidoc_toc2.css
- $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.it.html $(abs_top_srcdir)/doc/it/weechat_tester.it.asciidoc
+weechat_tester.it.html: weechat_tester.it.asciidoc $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_tester.it.html $(abs_top_srcdir)/doc/it/weechat_tester.it.asciidoc
# install man/docs
@@ -108,5 +103,4 @@ uninstall-doc:
# clean
clean-local:
- -rm -f weechat.1 weechat.1.it.asciidoc cmdline_options.it.asciidoc
- -rm -f *.html
+ -rm -f weechat.1 weechat_*.html
diff --git a/doc/it/docinfo.html b/doc/it/docinfo.html
new file mode 120000
index 000000000..c413f224f
--- /dev/null
+++ b/doc/it/docinfo.html
@@ -0,0 +1 @@
+../docinfo.html \ No newline at end of file
diff --git a/doc/it/weechat.1.it.asciidoc b/doc/it/weechat.1.it.asciidoc
index d974f8bf2..8ed5f6021 100644
--- a/doc/it/weechat.1.it.asciidoc
+++ b/doc/it/weechat.1.it.asciidoc
@@ -1,6 +1,8 @@
// TRANSLATION MISSING (WHOLE FILE)
= WEECHAT(1)
:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
:lang: it
== NAME
@@ -92,16 +94,17 @@ $HOME/.weechat/weechat.log::
== AUTHORS
-This manpage was written by Sébastien Helleu <flashcode@flashtux.org>.
+This manpage was written by {author}.
-// Translated by Name <email@domain.com>.
+// TRANSLATION MISSING
+// Translated by Name.
== COPYRIGHT
WeeChat is written by Sébastien Helleu and contributors (complete list is in
the AUTHORS.asciidoc file).
-Copyright (C) 2003-{sys:date "+%Y"} Sébastien Helleu <flashcode@flashtux.org>
+Copyright (C) 2003-2016 {author}
WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -110,10 +113,10 @@ the Free Software Foundation; either version 3 of the License, or
Please read the COPYING file for more information.
-Web: <https://weechat.org/>
+Web: https://weechat.org/
// TRANSLATION MISSING
== SUPPORT / REPORTING BUGS
// TRANSLATION MISSING
-For help or a bug report: <https://weechat.org/dev/support>
+For help or a bug report: https://weechat.org/dev/support
diff --git a/doc/it/weechat_faq.it.asciidoc b/doc/it/weechat_faq.it.asciidoc
index a298865fa..4dc889616 100644
--- a/doc/it/weechat_faq.it.asciidoc
+++ b/doc/it/weechat_faq.it.asciidoc
@@ -2,8 +2,10 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
-:toc:
-:toc-placement: manual
+:toc: macro
+:toc-title: Indice
+:sectnums:
+:docinfo1:
// TRANSLATION MISSING
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index 820768a54..66d9fad41 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -2,9 +2,12 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
-:toc2:
+:toc: left
:toclevels: 4
-:max-width: 100%
+:toc-title: Indice
+:sectnums:
+:sectnumlevels: 2
+:docinfo1:
// TRANSLATION MISSING
diff --git a/doc/it/weechat_quickstart.it.asciidoc b/doc/it/weechat_quickstart.it.asciidoc
index 6760c66ba..3a38d9da0 100644
--- a/doc/it/weechat_quickstart.it.asciidoc
+++ b/doc/it/weechat_quickstart.it.asciidoc
@@ -2,8 +2,10 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
-:toc2:
-:max-width: 100%
+:toc: left
+:toc-title: Indice
+:sectnums:
+:docinfo1:
// TRANSLATION MISSING
diff --git a/doc/it/weechat_scripting.it.asciidoc b/doc/it/weechat_scripting.it.asciidoc
index 0bb036d1b..4d5511779 100644
--- a/doc/it/weechat_scripting.it.asciidoc
+++ b/doc/it/weechat_scripting.it.asciidoc
@@ -2,9 +2,10 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
-:toc2:
+:toc: left
:toclevels: 3
-:max-width: 100%
+:toc-title: Indice
+:docinfo1:
// TRANSLATION MISSING
diff --git a/doc/it/weechat_tester.it.asciidoc b/doc/it/weechat_tester.it.asciidoc
index 97451821c..a0cf3cf4c 100644
--- a/doc/it/weechat_tester.it.asciidoc
+++ b/doc/it/weechat_tester.it.asciidoc
@@ -2,8 +2,9 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
-:toc2:
-:max-width: 100%
+:toc: left
+:toc-title: Indice
+:docinfo1:
// TRANSLATION MISSING
diff --git a/doc/it/weechat_user.it.asciidoc b/doc/it/weechat_user.it.asciidoc
index 04235de0a..7802d65fd 100644
--- a/doc/it/weechat_user.it.asciidoc
+++ b/doc/it/weechat_user.it.asciidoc
@@ -2,9 +2,12 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
-:toc2:
+:toc: left
:toclevels: 3
-:max-width: 100%
+:toc-title: Indice
+:sectnums:
+:sectnumlevels: 2
+:docinfo1:
// TRANSLATION MISSING