1 Proxmox VE Documentation
2 ========================
3 include::attributes.txt[]
5 We try to generate high quality documentation for
6 {website}[{pve}], and choose to use
7 http://www.methods.co.nz/asciidoc/[AsciiDoc] as base format.
9 The basic idea is to generate high quality manual pages, and assemble
10 them into a complete book, called link:pve-admin-guide.adoc[Proxmox VE
11 Administration Guide]. So we have one source, and generate several
12 documents from that. It is also possible to generate printable PDF
13 files, or ebook formats ('.epub').
15 When possible, we provide scripts to extract API definitions,
16 configuration or command line options from the source code.
18 To simplify the documentation task, we keep all Documentation within
19 this repository. It is possible to generate the docs without installing
20 any additional Proxmox packages with:
24 To update the auto-generate API definitions use:
28 NOTE: you need a fully installed development environment for that.
34 We generate a development package called 'pve-doc-generator', which is
35 used by other Proxmox VE package to generate manual pages at package
38 Another package called 'pve-docs' is used to publish generated
39 '.html' and '.pdf' files on our web servers. You can generate
40 those Debian packages using:
45 Common Macro definition in link:attributes.txt[]
46 ------------------------------------------------
48 'asciidoc' allows us to define common macros, which can then be
49 referred to using `{macro}`. We try to use this mechanism to improve
50 consistency. For example, we defined a macro called `pve`, which
51 expands to "Proxmox VE".
53 For URLs which are used more than once, two macros should be defined:
55 * `{name-url}`, which just contains the http(s) URL
56 * `{name}`, which contains the complete link including the canonical
59 For example, the macro `{forum-url}` expands to {forum-url}, and the macro
60 `{forum}` expands to {forum}.
62 The plan is to add more such definitions for terms which are used more than once.
64 WARNING: When asciidoc encounters a misspelled macro name, it will silently drop
67 WARNING: Never use macros in document titles or the ``NAME'' section of man pages,
68 as these get parsed before the `attributes.txt` file gets included.
70 Autogenerated CLI Command Synopsis
71 ----------------------------------
73 We generate the command line synopsis for all manual pages
74 automatically. We can do that, because we have a full declarative
75 definition of the {pve} API. I added those generated files
76 ('*-synopsis.adoc') to the git repository, so that it is possible to
77 build the documentation without having a fully installed {pve}
78 development environment.
83 'asciidoc' uses a fairly simple markup syntax for formatting content.
84 The following basic principles should be followed throughout our
91 Sections are formatted using `two-line titles', by adding a line of
92 the appropriate characters and of the same length as the section title
95 Level 0 (top level): ======================
96 Level 1: ----------------------
97 Level 2: ~~~~~~~~~~~~~~~~~~~~~~
98 Level 3: ^^^^^^^^^^^^^^^^^^^^^^
99 Level 4 (bottom level): ++++++++++++++++++++++
101 Section titles should always be preceded by two empty lines. Each word
102 in a title should be capitalized except for ``articles, coordinating
103 conjunctions, prepositions, and the word to in infinitives unless they
104 appear as the first or last word of a title'' (see
105 http://web.mit.edu/course/21/21.guide/capitals.htm[Mayfield Electronic Handbook of Technical & Scientific Writing]).
114 Numbered lists should be created using the implicit numbering format:
130 Bulleted lists should be created using the '*' symbol:
146 Labeled lists should be used to make lists of key-value style text
147 more readable, such as command line parameters or configuration options:
149 .Regular labeled lists
153 Element text paragraph
157 Another element text paragraph.
162 Element text paragraph
166 Another element text paragraph.
168 .Horizontal labeled lists
171 First Label Text:: Element text paragraph
173 Second Label Text:: Another element text paragraph.
179 First Label Text:: Element text paragraph
181 Second Label Text:: Another element text paragraph.
183 The FAQ section uses a special questions and answers style for
187 Text and Block Styles
188 ~~~~~~~~~~~~~~~~~~~~~
190 'asciidoc' offers a wide range of default text styles:
192 * 'Emphasized text': created using \'text', used for emphasizing words
194 * `Monospaced text`: created using \`text`, used for command / program
195 names, file paths, in-line commands, option names and values
196 * *Strong text*: created using \*text*, used for emphasizing concepts
197 or names when first introduced in a section.
199 There are also different built-in block styles that are used in
202 Complete paragraphs can be included literally by prepending each
203 of their lines with whitespace. Use this for formatting complete
204 commands on their own line, such as:
206 pct set ID -option value
209 By surrounding a paragraph with lines containing at least four '-'
210 characters, its content is formatted as listing.
212 Use this for formatting file contents or command output.
215 Specially highlighted 'notes', 'warnings' and 'important' information
216 can be created by starting a paragraph with `NOTE:`, `WARNING:` or
221 WARNING: this is warning
223 IMPORTANT: this is important information
225 For each of these blocks (including lists and paragraphs), a block header
226 can be defined by prepending the block with a `.' character and the header
241 For example, block headers can be used to add file names/paths to file
248 Copyright (C) 2016 Proxmox Server Solutions Gmbh
250 Permission is granted to copy, distribute and/or modify this document
251 under the terms of the GNU Free Documentation License, Version 1.3 or
252 any later version published by the Free Software Foundation; with no
253 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
254 copy of the license is included in the link:LICENSE[LICENSE] file.