From e9032fa19c9d7981134e519256a4d934d2c4e5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 3 Apr 2016 17:50:26 +0200 Subject: Update user guide --- guide/asciidoc.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'guide/asciidoc.html') diff --git a/guide/asciidoc.html b/guide/asciidoc.html index ed4222b..c24810f 100644 --- a/guide/asciidoc.html +++ b/guide/asciidoc.html @@ -35,7 +35,10 @@ div.navfooter{margin-bottom:1em}

Chapter 12. AsciiDoc documentation

Erlang.mk provides rules for generating documentation from AsciiDoc files. It can automatically build a user guide PDF, -chunked HTML documentation and Unix manual pages.

12.1. Writing AsciiDoc documentation

AsciiDoc is a text document format for +chunked HTML documentation and Unix manual pages.

12.1. Requirements

It is necessary to have AsciiDoc, +xsltproc and +dblatex installed on your +system for Erlang.mk to generate documentation from AsciiDoc sources.

12.2. Writing AsciiDoc documentation

AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, man page.

The AsciiDoc user guide @@ -45,8 +48,8 @@ file is doc/src/guide/ for the user guide, and doc/src/manual/ for the function reference. In the case of the user guide, the entry point is always doc/src/guide/book.asciidoc.

For manual pages, it is good practice to use section 3 for -modules, and section 7 for the application itself.

12.2. Configuration

All of the AsciiDoc related configuration can be done directly -inside the files themselves.

12.3. Usage

To build all documentation:

$ make docs

To build only the AsciiDoc documentation:

$ make asciidoc

To build only the user guide:

$ make asciidoc-guide

To build only the manual:

$ make asciidoc-manual

To install man pages on Unix:

$ make install-docs

Erlang.mk allows customizing the installation path and sections +modules, and section 7 for the application itself.

12.3. Configuration

All of the AsciiDoc related configuration can be done directly +inside the files themselves.

12.4. Usage

To build all documentation:

$ make docs

To build only the AsciiDoc documentation:

$ make asciidoc

To build only the user guide:

$ make asciidoc-guide

To build only the manual:

$ make asciidoc-manual

To install man pages on Unix:

$ make install-docs

Erlang.mk allows customizing the installation path and sections of the man pages to be installed. The MAN_INSTALL_PATH variable defines where man pages will be installed. It defaults to /usr/local/share/man. The MAN_SECTIONS variable defines -- cgit v1.2.3