diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-05-03 21:31:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-05-14 09:42:57 +0200 |
commit | 220bd837aea2fac67594b8b62291f306f70a6230 (patch) | |
tree | 47d3f583bdccfbba4a15e234bbef8d3a50f5d0e6 /doc/cs | |
parent | f3163aa271b3f1b45244ec09ba4c566450a07a24 (diff) | |
download | weechat-220bd837aea2fac67594b8b62291f306f70a6230.zip |
doc: use asciidoctor instead of asciidoc (issue #722)
Diffstat (limited to 'doc/cs')
-rw-r--r-- | doc/cs/CMakeLists.txt | 10 | ||||
-rw-r--r-- | doc/cs/Makefile.am | 14 | ||||
l--------- | doc/cs/docinfo.html | 1 | ||||
-rw-r--r-- | doc/cs/weechat.1.cs.asciidoc | 12 | ||||
-rw-r--r-- | doc/cs/weechat_quickstart.cs.asciidoc | 5 |
5 files changed, 19 insertions, 23 deletions
diff --git a/doc/cs/CMakeLists.txt b/doc/cs/CMakeLists.txt index 9509a678f..66279a015 100644 --- a/doc/cs/CMakeLists.txt +++ b/doc/cs/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.cs.asciidoc . - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.cs.asciidoc . - COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.cs.asciidoc + COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.asciidoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.cs.asciidoc @@ -34,14 +32,14 @@ if(ENABLE_MAN) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/man1) endif() -if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) +if(ENABLE_DOC) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.cs.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.cs.asciidoc + COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_quickstart.cs.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.cs.asciidoc DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc_toc2.css + ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.cs.asciidoc WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.cs.html" diff --git a/doc/cs/Makefile.am b/doc/cs/Makefile.am index 6a26c71aa..9d21f94e9 100644 --- a/doc/cs/Makefile.am +++ b/doc/cs/Makefile.am @@ -40,16 +40,11 @@ all-local: $(man_targets) $(doc_targets) # man page weechat.1: weechat.1.cs.asciidoc cmdline_options.cs.asciidoc - -mkdir tmp_man - cp -f $(abs_top_srcdir)/doc/cs/weechat.1.cs.asciidoc ./tmp_man/ - cp -f $(abs_top_srcdir)/doc/cs/cmdline_options.cs.asciidoc ./tmp_man/ - (cd tmp_man && $(A2X) -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.cs.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/cs/weechat.1.cs.asciidoc # quickstart -weechat_quickstart.cs.html: weechat_quickstart.cs.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.cs.html $(abs_top_srcdir)/doc/cs/weechat_quickstart.cs.asciidoc +weechat_quickstart.cs.html: weechat_quickstart.cs.asciidoc $(abs_top_srcdir)/doc/docinfo.html + $(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=highlight.js -o weechat_quickstart.cs.html $(abs_top_srcdir)/doc/cs/weechat_quickstart.cs.asciidoc # install man/docs @@ -78,5 +73,4 @@ uninstall-doc: # clean clean-local: - -rm -f weechat.1 weechat.1.cs.asciidoc cmdline_options.cs.asciidoc - -rm -f *.html + -rm -f weechat.1 weechat_*.html diff --git a/doc/cs/docinfo.html b/doc/cs/docinfo.html new file mode 120000 index 000000000..c413f224f --- /dev/null +++ b/doc/cs/docinfo.html @@ -0,0 +1 @@ +../docinfo.html
\ No newline at end of file diff --git a/doc/cs/weechat.1.cs.asciidoc b/doc/cs/weechat.1.cs.asciidoc index 6e806d1a1..ca01baf06 100644 --- a/doc/cs/weechat.1.cs.asciidoc +++ b/doc/cs/weechat.1.cs.asciidoc @@ -1,5 +1,7 @@ = WEECHAT(1) :doctype: manpage +:author: Sébastien Helleu +:email: flashcode@flashtux.org :lang: cs == JMÉNO @@ -88,15 +90,15 @@ $HOME/.weechat/weechat.log:: == AUTOŘI -Tato manuálová stránka byla napsána Sébastienem Helleu <flashcode@flashtux.org>. -Tato manuálová stránka byla přeložena Ondřejem Súkupem <mimi.vx@gmail.com> +Tato manuálová stránka byla napsána {author}. +Tato manuálová stránka byla přeložena Ondřejem Súkupem. == COPYRIGHT WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v souboru AUTHORS.asciidoc). -Copyright (C) 2003-{sys:date "+%Y"} Sébastien Helleu <flashcode@flashtux.org> +Copyright (C) 2003-2016 {author} WeeChat je svobodný software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -105,8 +107,8 @@ the Free Software Foundation; either version 3 of the License, or Prosím přečtěte si soubor COPYING pro více informací. -Web: <https://weechat.org/> +Web: https://weechat.org/ == PODPORA / HLÁŠENÍ CHYB -Pro pomoc nebo hlášení chyb <https://weechat.org/dev/support> +Pro pomoc nebo hlášení chyb https://weechat.org/dev/support diff --git a/doc/cs/weechat_quickstart.cs.asciidoc b/doc/cs/weechat_quickstart.cs.asciidoc index 1b583ef82..d6f31d52b 100644 --- a/doc/cs/weechat_quickstart.cs.asciidoc +++ b/doc/cs/weechat_quickstart.cs.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: cs -:toc2: -:max-width: 100% +:toc: left +:sectnums: +:docinfo1: [[start]] |