]> git.proxmox.com Git - pve-docs.git/blame - README.adoc
update proxmox-logo.svg
[pve-docs.git] / README.adoc
CommitLineData
22b0b166
DM
1Proxmox VE Documentation
2========================
8e6e6411 3include::attributes.txt[]
22b0b166 4
0c36e360
DM
5We try to generate high quality documentation for
6http://www.proxmox.com[Proxmox VE], and choose to use
a1ada598
DM
7http://www.methods.co.nz/asciidoc/[AsciiDoc] as base format.
8
0c36e360
DM
9The basic idea is to generate high quality manual pages, and assemble
10them into a complete book, called link:pve-admin-guide.adoc[Proxmox VE
a1ada598
DM
11Administration Guide]. So we have one source, and generate several
12documents from that. It is also possible to generate printable PDF
128b18c0 13files, or ebook formats ('.epub').
22b0b166 14
0c36e360
DM
15When possible, we provide scripts to extract API definitions,
16configuration or command line options from the source code.
17
18To simplify the documentation task, we keep all Documentation within
7aacca6f
DM
19this repository. It is possible to generate the docs without installing
20any additional Proxmox packages with:
0c36e360 21
8ace7110 22 make index
0c36e360 23
7aacca6f
DM
24To update the auto-generate API definitions use:
25
26 make update
27
28NOTE: you need a fully installed development environment for that.
29
8ace7110
DM
30
31Debian Packages
32---------------
33
34We generate a development package called 'pve-doc-generator', which is
35used by other Proxmox VE package to generate manual pages at package
36build time.
37
38Another package called 'pve-docs' is used to publish generated
39'.html' and '.pdf' files on our web servers. You can generate
9d17dbac 40those Debian packages using:
8ace7110
DM
41
42 make deb
0c36e360
DM
43
44
8e6e6411
DM
45Common Macro definition in link:attributes.txt[]
46------------------------------------------------
47
48'asciidoc' allows us to define common macros, which can then be
49referred to using `{macro}`. We try to use this mechanism to improve
50consistency. For example, we defined a macro called `pve`, which
51expands to "Proxmox VE". The plan is to add more such definitions for
52terms which are used more than once.
53
578a3111
DM
54Autogenerated CLI Command Synopsis
55----------------------------------
56
57We generate the command line synopsis for all manual pages
58automatically. We can do that, because we have a full declarative
59definition of the {pve} API. I added those generated files
60('*-synopsis.adoc') to the git repository, so that it is possible to
61build the documentation without having a fully installed {pve}
62development environment.
22b0b166 63
d067c2ad
FG
64Style Guide
65-----------
66
67'asciidoc' uses a fairly simple markup syntax for formatting content.
68The following basic principles should be followed throughout our
69documentation.
70
71
72Sections
73~~~~~~~~
74
75Sections are formatted using `two-line titles', by adding a line of
76the appropriate characters and of the same length as the section title
77below the title text:
78
79 Level 0 (top level): ======================
80 Level 1: ----------------------
81 Level 2: ~~~~~~~~~~~~~~~~~~~~~~
82 Level 3: ^^^^^^^^^^^^^^^^^^^^^^
83 Level 4 (bottom level): ++++++++++++++++++++++
84
9d17dbac 85Section titles should always be preceded by two empty lines. Each word
d067c2ad
FG
86in a title should be capitalized except for ``articles, coordinating
87conjunctions, prepositions, and the word to in infinitives unless they
88appear as the first or last word of a title'' (see
89http://web.mit.edu/course/21/21.guide/capitals.htm[Mayfield Electronic Handbook of Technical & Scientific Writing]).
90
91
92Lists
93~~~~~
94
95Numbered Lists
96^^^^^^^^^^^^^^
97
98Numbered lists should be created using the implicit numbering format:
99
100-----
101. First level
102.. Second level
103. First level again
104-----
105
106. First level
107.. Second level
108. First level again
109
110
111Bulleted Lists
112^^^^^^^^^^^^^^
113
114Bulleted lists should be created using the '*' symbol:
115
116-----
117* First level
118** Second level
119* First level again
120-----
121
122* First level
123** Second level
124* First level again
125
126
127Labeled Lists
128^^^^^^^^^^^^^
129
130Labeled lists should be used to make lists of key-value style text
9d17dbac 131more readable, such as command line parameters or configuration options:
d067c2ad
FG
132
133.Regular labeled lists
134-----
135First Label Text::
136
137Element text paragraph
138
139Second Label Text::
140
141Another element text paragraph.
142-----
143
144First Label Text::
145
146Element text paragraph
147
148Second Label Text::
149
150Another element text paragraph.
151
152.Horizontal labeled lists
153-----
154[horizontal]
155First Label Text:: Element text paragraph
156
157Second Label Text:: Another element text paragraph.
158-----
159
160creates
161
162[horizontal]
163First Label Text:: Element text paragraph
164
165Second Label Text:: Another element text paragraph.
166
167The FAQ section uses a special questions and answers style for
168labeled lists.
169
170
171Text and Block Styles
172~~~~~~~~~~~~~~~~~~~~~
173
174'asciidoc' offers a wide range of default text styles:
175
176* 'Emphasized text': created using \'text', used for emphasizing words
177and phrases
178* `Monospaced text`: created using \`text`, used for command / program
128b18c0 179names, file paths, in-line commands, option names and values
d067c2ad
FG
180* *Strong text*: created using \*text*, used for emphasizing concepts
181or names when first introduced in a section.
182
128b18c0 183There are also different built-in block styles that are used in
d067c2ad
FG
184our documentation:
185
186Complete paragraphs can be included literally by prepending each
187of their lines with whitespace. Use this for formatting complete
188commands on their own line, such as:
189
190 pct set ID -option value
191
192----
193By surrounding a paragraph with lines containing at least four '-'
194characters, its content is formatted as listing.
195
196Use this for formatting file contents or command output.
197----
198
199Specially highlighted 'notes', 'warnings' and 'important' information
200can be created by starting a paragraph with `NOTE:`, `WARNING:` or
201`IMPORTANT:`:
202
203NOTE: this is a note
204
205WARNING: this is warning
206
207IMPORTANT: this is important information
208
209For each of these blocks (including lists and paragraphs), a block header
210can be defined by prepending the block with a `.' character and the header
211text:
212
213-----
214.Title of List
215* First element
216* Second element
217* Third element
218-----
219
220.Title of List
221* First element
222* Second element
223* Third element
224
225For example, block headers can be used to add file names/paths to file
226content listings.
227
228
22b0b166
DM
229Copyright
230---------
231
40152dfd 232Copyright (C) 2016 Proxmox Server Solutions Gmbh
22b0b166
DM
233
234Permission is granted to copy, distribute and/or modify this document
235under the terms of the GNU Free Documentation License, Version 1.3 or
236any later version published by the Free Software Foundation; with no
f1e6bbae
DM
237Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
238copy of the license is included in the link:LICENSE[LICENSE] file.