btrfs-progs: Introduce asciidoc based man page and btrfs man page.
[platform/upstream/btrfs-progs.git] / Documentation / asciidoc.conf
1 ## linkbtrfs: macro
2 #
3 # Usage: linkbtrfs:command[manpage-section]
4 #
5 # Note, {0} is the manpage section, while {target} is the command.
6 #
7 # Show Btrfslink as: <command>(<section>); if section is defined, else just show
8 # the command.
9
10 [macros]
11 (?su)[\\]?(?P<name>linkbtrfs):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
12
13 [attributes]
14 asterisk=&#42;
15 plus=&#43;
16 caret=&#94;
17 startsb=&#91;
18 endsb=&#93;
19 backslash=&#92;
20 tilde=&#126;
21 apostrophe=&#39;
22 backtick=&#96;
23 litdd=&#45;&#45;
24
25 ifdef::doctype-manpage[]
26 ifdef::backend-docbook[]
27 [header]
28 template::[header-declarations]
29 <refentry>
30 <refmeta>
31 <refentrytitle>{mantitle}</refentrytitle>
32 <manvolnum>{manvolnum}</manvolnum>
33 <refmiscinfo class="source">Btrfs</refmiscinfo>
34 <refmiscinfo class="version">{btrfs_version}</refmiscinfo>
35 <refmiscinfo class="manual">Btrfs Manual</refmiscinfo>
36 </refmeta>
37 <refnamediv>
38   <refname>{manname}</refname>
39   <refpurpose>{manpurpose}</refpurpose>
40 </refnamediv>
41 endif::backend-docbook[]
42 endif::doctype-manpage[]