summaryrefslogtreecommitdiff
path: root/doc/es
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-05-03 21:31:55 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-05-14 09:42:57 +0200
commit220bd837aea2fac67594b8b62291f306f70a6230 (patch)
tree47d3f583bdccfbba4a15e234bbef8d3a50f5d0e6 /doc/es
parentf3163aa271b3f1b45244ec09ba4c566450a07a24 (diff)
downloadweechat-220bd837aea2fac67594b8b62291f306f70a6230.zip
doc: use asciidoctor instead of asciidoc (issue #722)
Diffstat (limited to 'doc/es')
-rw-r--r--doc/es/CMakeLists.txt6
-rw-r--r--doc/es/Makefile.am6
l---------doc/es/docinfo.html1
-rw-r--r--doc/es/weechat_quickstart.es.asciidoc5
4 files changed, 10 insertions, 8 deletions
diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt
index 218822afe..a4fd2443a 100644
--- a/doc/es/CMakeLists.txt
+++ b/doc/es/CMakeLists.txt
@@ -17,14 +17,14 @@
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
#
-if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
+if(ENABLE_DOC)
# quickstart
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html
- COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.asciidoc
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.asciidoc
DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.asciidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_quickstart.es.html"
diff --git a/doc/es/Makefile.am b/doc/es/Makefile.am
index 392d44adf..5bec564e2 100644
--- a/doc/es/Makefile.am
+++ b/doc/es/Makefile.am
@@ -35,8 +35,8 @@ endif
all-local: $(man_targets) $(doc_targets)
# quickstart
-weechat_quickstart.es.html: weechat_quickstart.es.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.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.asciidoc
+weechat_quickstart.es.html: weechat_quickstart.es.asciidoc $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_quickstart.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.asciidoc
# install man/docs
@@ -65,4 +65,4 @@ uninstall-doc:
# clean
clean-local:
- -rm -f *.html
+ -rm -f weechat_*.html
diff --git a/doc/es/docinfo.html b/doc/es/docinfo.html
new file mode 120000
index 000000000..c413f224f
--- /dev/null
+++ b/doc/es/docinfo.html
@@ -0,0 +1 @@
+../docinfo.html \ No newline at end of file
diff --git a/doc/es/weechat_quickstart.es.asciidoc b/doc/es/weechat_quickstart.es.asciidoc
index fbb6e4201..62993a912 100644
--- a/doc/es/weechat_quickstart.es.asciidoc
+++ b/doc/es/weechat_quickstart.es.asciidoc
@@ -2,8 +2,9 @@
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: es
-:toc2:
-:max-width: 100%
+:toc: left
+:sectnums:
+:docinfo1:
// TRANSLATION MISSING