SOP 000-Documentation » Historique » Version 41
Patrice Nadeau, 2018-03-31 14:40
1 | 17 | Patrice Nadeau | # SOP 000-Documentation |
---|---|---|---|
2 | 1 | Patrice Nadeau | |
3 | Établir un style de documentation unifié pour les items suivants : |
||
4 | 41 | Patrice Nadeau | |
5 | 1 | Patrice Nadeau | * Documents |
6 | * Présentations |
||
7 | * Wikis |
||
8 | |||
9 | {{lastupdated_at}} {{lastupdated_by}} |
||
10 | |||
11 | --- |
||
12 | |||
13 | {{toc}} |
||
14 | |||
15 | 17 | Patrice Nadeau | ## Termes |
16 | 1 | Patrice Nadeau | |
17 | Les termes français équivalents au document "RFC2119":http://tools.ietf.org/html/rfc2119 seront utilisés dans les documents : |
||
18 | * MUST, SHALL, REQUIRED : DOIT, REQUIS |
||
19 | * MUST NOT, SHALL NOT : NE DOIT (DOIVENT) PAS |
||
20 | * SHOULD, RECOMMENDED : DEVRAIS, RECOMMANDÉ |
||
21 | * SHOULD NOT : NE DEVRAIS PAS, NON RECOMMANDÉ |
||
22 | * MAY, OPTIONAL : PEUX (PEUVENT), OPTIONNEL |
||
23 | |||
24 | Ces termes sont utilisés pour indiquer un choix quand plusieurs options sont disponibles. |
||
25 | |||
26 | 17 | Patrice Nadeau | ## Généralités |
27 | 1 | Patrice Nadeau | |
28 | La documentation DOIT être générée avec des outils « open-source ». |
||
29 | |||
30 | 17 | Patrice Nadeau | ### Formats utilisés |
31 | 1 | Patrice Nadeau | |
32 | Il existe deux type de documentation avec chacun leur outils : |
||
33 | 19 | Patrice Nadeau | |
34 | 1 | Patrice Nadeau | * « stand-alone » : fichier XeTeX |
35 | 19 | Patrice Nadeau | |
36 | > Ils DOIVENT être exportés en format PDF. |
||
37 | |||
38 | 1 | Patrice Nadeau | * « live » : wiki (Redmine) |
39 | |||
40 | L’écriture se fait : |
||
41 | 19 | Patrice Nadeau | |
42 | * Redmine : Écrit en format *Markdown* |
||
43 | |||
44 | |||
45 | 17 | Patrice Nadeau | # Description |
46 | 1 | Patrice Nadeau | |
47 | > Explication supplémentaires (si nécessaires) |
||
48 | |||
49 | {{lastupdated_at}} {{lastupdated_by}} |
||
50 | |||
51 | ---- |
||
52 | |||
53 | {{toc}} |
||
54 | |||
55 | 17 | Patrice Nadeau | ## Premier titre |
56 | 1 | Patrice Nadeau | |
57 | 17 | Patrice Nadeau | ### Sous-titre |
58 | 20 | Patrice Nadeau | |
59 | 1 | Patrice Nadeau | * XeTeX : Le contenu du fichier _tex_ DOIT être fait de la manière suivante : |
60 | 20 | Patrice Nadeau | * Format : Lettre. |
61 | * Orientation : Portrait. |
||
62 | * Langue : Français |
||
63 | * Type : Article |
||
64 | * Format : UTF-8 |
||
65 | * Lignes : longueur de 80 caractères |
||
66 | * Retrait : de 4 espaces dans les sections _\begin{} ... \end(}_ |
||
67 | * Les gabarits déjà établis DOIVENT être utilisés. |
||
68 | 1 | Patrice Nadeau | |
69 | 17 | Patrice Nadeau | ### Typographie |
70 | 1 | Patrice Nadeau | |
71 | 17 | Patrice Nadeau | #### Type de caractères |
72 | 1 | Patrice Nadeau | |
73 | |_. Effet |_. Signification |_. XeTeX |_. Textile | |
||
74 | | *Gras* | doit être indiqué comme tel | \textbf{...} | @*...*@ | |
||
75 | | _Italique_ | doit être substitué par la bonne valeur | \textit{...} | @_..._@ | |
||
76 | | _Emphase_ | emphase | \emph{...} | @_..._@ | |
||
77 | | -Barré- | non valide | \sout{...} | @-...-@ | |
||
78 | |||
79 | 17 | Patrice Nadeau | #### Code source |
80 | 1 | Patrice Nadeau | |
81 | Le code source doit toujours être mis en évidence avec un outil de «syntax highlight» |
||
82 | |||
83 | * Redmine : «class» étant : *c*, *bash*, *latex*, *php* (voir [[Redmine:wiki#Redmine-Rouge|Redmine Rouge]]) |
||
84 | |||
85 | 34 | Patrice Nadeau | <pre><code class="c"> |
86 | ... |
||
87 | </code></pre> |
||
88 | |||
89 | |||
90 | 1 | Patrice Nadeau | * XeTeX : Le module _lstlisting_ est utilisé. Des titres et emphases peuvent être utilisées. |
91 | |||
92 | 34 | Patrice Nadeau | \begin{lstlisting}[language=xxx, title=yyy, emph=serveur] |
93 | ssh serveur |
||
94 | \end{lstlisting} |
||
95 | |||
96 | |||
97 | 1 | Patrice Nadeau | #### Guillemets |
98 | |||
99 | 18 | Patrice Nadeau | Les [guillemets](http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks#French) (« & ») DOIVENT être utilisés dans les document français. |
100 | 1 | Patrice Nadeau | > Il DOIT y avoir un espace entre les guillemets et le mot. |
101 | 30 | Patrice Nadeau | |
102 | 1 | Patrice Nadeau | Ils sont faits de cette façon : |
103 | 34 | Patrice Nadeau | |
104 | 1 | Patrice Nadeau | * Redmine : Unicode U+00AB (171), U+00BB (187) |
105 | 34 | Patrice Nadeau | > Sous GNU/Linux, il peuvent être fait avec la combinaison *ALT-z* et *ALT-x* en mode français (utiliser la touche ALT de droite). |
106 | |||
107 | 1 | Patrice Nadeau | * XeTeX : |
108 | 34 | Patrice Nadeau | Ils DOIVENT être faits avec **\enquote{}** |
109 | 1 | Patrice Nadeau | |
110 | 18 | Patrice Nadeau | #### Police |
111 | 1 | Patrice Nadeau | |
112 | La police de caractère et son poids sont générés par Redmine et XeTeX. |
||
113 | |||
114 | 18 | Patrice Nadeau | ### Images |
115 | 1 | Patrice Nadeau | |
116 | Les images DOIVENT être de format PNG |
||
117 | |||
118 | 39 | Patrice Nadeau | * XeTeX : Elles DOIVENT être enregistrées dans le même dossier que le fichier _.tex_. |
119 | 1 | Patrice Nadeau | |
120 | 18 | Patrice Nadeau | ## Documents |
121 | 1 | Patrice Nadeau | |
122 | Conventions utilisées dans les documents. |
||
123 | |||
124 | 18 | Patrice Nadeau | ## Découpage du document |
125 | 1 | Patrice Nadeau | |
126 | Sections minimum pour différents type de documents : |
||
127 | 31 | Patrice Nadeau | |
128 | 1 | Patrice Nadeau | * Documentation de logiciel (guides) : |
129 | 31 | Patrice Nadeau | * Introduction. |
130 | * Installation. |
||
131 | * Configuration. |
||
132 | * Utilisation. |
||
133 | * Problèmes connus. |
||
134 | * Todo (XeTeX). |
||
135 | 1 | Patrice Nadeau | |
136 | ### Style |
||
137 | 18 | Patrice Nadeau | |
138 | 31 | Patrice Nadeau | Le document est séparés au moyen de : |
139 | |||
140 | 1 | Patrice Nadeau | * XeTeX : *section*, *subsection* et *subsubsection* (*\section{}* DOIT être précédée de *\newpage*) |
141 | * Textile : *h2.* @ *h3.* (suivie d'une ligne vide) |
||
142 | |||
143 | La table des matières seras faites automatiquement avec ces items. |
||
144 | |||
145 | Chaque section DOIT commencer par une brève description. |
||
146 | 18 | Patrice Nadeau | |
147 | 1 | Patrice Nadeau | ### Listes |
148 | |||
149 | Les listes sont faites avec : |
||
150 | |||
151 | * Redmine : |
||
152 | 31 | Patrice Nadeau | * *<notextile>*</notextile>* : pour des items ayant une description. |
153 | * *<notextile>#</notextile>* : pour des « étapes ». |
||
154 | 1 | Patrice Nadeau | * XeTeX : |
155 | 31 | Patrice Nadeau | * \begin{xxx} ... \end{xxx}, xxx représentant: |
156 | 35 | Patrice Nadeau | * **description** : pour des items ayant une description. |
157 | * **enumerate** : pour des «étapes». |
||
158 | * **itemize** : le type le plus fréquent. |
||
159 | 1 | Patrice Nadeau | |
160 | ### Hyperliens |
||
161 | |||
162 | L’utilisation des hyperliens ce fait avec : |
||
163 | 31 | Patrice Nadeau | |
164 | 1 | Patrice Nadeau | * Textile : (voir http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting) |
165 | 35 | Patrice Nadeau | * _Documents_ : **document\#nb** |
166 | 31 | Patrice Nadeau | * _Files_ : *<notextile>"titre":/attachments/do </notextile>* |
167 | 35 | Patrice Nadeau | * XeTeX : **\label{}**, **\ref{}**, **\pageref{}** |
168 | 31 | Patrice Nadeau | * Les étiquettes sont faites selon cette convention (_xxx_:étiquette), _xxx_ étant un des choix : |
169 | 35 | Patrice Nadeau | * **chap:** : chapitre |
170 | * **sec:** : section |
||
171 | * **subsec:** : sous-section |
||
172 | * **fig:** : figure |
||
173 | * **tab:** : table |
||
174 | * **eq:** : équation |
||
175 | * **lst:** : code |
||
176 | * **itm:** : liste énumérée |
||
177 | * **app:** : sous-section d’appendice |
||
178 | 1 | Patrice Nadeau | |
179 | ### Items à faire |
||
180 | |||
181 | Les notes pour les items à faire plus tard DOIVENT être décrites comme suit : |
||
182 | 31 | Patrice Nadeau | |
183 | 40 | Patrice Nadeau | * Redmine : Un lien sur un « issue » |
184 | * XeTex (**todonotes** est utilisé) |
||
185 | 1 | Patrice Nadeau | |
186 | 35 | Patrice Nadeau | \todo[inline]{Texte de ce qu'il y a à faire} |
187 | |||
188 | \todo\missingfigure{Texte de l'image manquante} |
||
189 | |||
190 | |||
191 | > Une section DOIT aussi êtres ajoutée avant la toute fin du document : |
||
192 | |||
193 | \newpage |
||
194 | \section{Todo} |
||
195 | \listoftodos[] |
||
196 | 1 | Patrice Nadeau | |
197 | ### Paragraphes spéciaux |
||
198 | |||
199 | 32 | Patrice Nadeau | Les items nécessitant une attention particulière de la part du lecteur, sont identifiés avec : |
200 | |||
201 | * Redmine : un retrait fait avec **>** : |
||
202 | |||
203 | item |
||
204 | > Texte |
||
205 | |||
206 | 1 | Patrice Nadeau | * XeTeX |
207 | |||
208 | 32 | Patrice Nadeau | \paragraph{item :} |
209 | Texte |
||
210 | |||
211 | |||
212 | 1 | Patrice Nadeau | _item_ étant une des valeurs : |
213 | 32 | Patrice Nadeau | |
214 | 18 | Patrice Nadeau | * *Note* : explications non critiques sur un point |
215 | 7 | Patrice Nadeau | * *Avertissement* : un point qui mérite une grande attention |
216 | 18 | Patrice Nadeau | * *Ex.* : un exemple |
217 | 8 | Patrice Nadeau | |
218 | ## Standards |
||
219 | 26 | Patrice Nadeau | |
220 | 8 | Patrice Nadeau | ### Tableau |
221 | |||
222 | Un tableau est fait de la manière suivante : |
||
223 | 25 | Patrice Nadeau | |
224 | * La tableau et les cellules DOIVENT avoir une bordure |
||
225 | * Les données DOIVENT être en ordre (alphabétique ou numérique, selon le cas) |
||
226 | 8 | Patrice Nadeau | * La première ligne DOIT |
227 | 18 | Patrice Nadeau | * contenir le nom des colonnes |
228 | 1 | Patrice Nadeau | * être centrées |
229 | 9 | Patrice Nadeau | * en caractères gras |
230 | 1 | Patrice Nadeau | |
231 | ### Couleurs |
||
232 | |||
233 | 36 | Patrice Nadeau | Abréviations selon [IEC 60757](https://webstore.iec.ch/publication/3406) |
234 | 1 | Patrice Nadeau | |
235 | * *BK* : Noir |
||
236 | * *BU* : Bleu |
||
237 | * *BN* : Brun |
||
238 | 16 | Patrice Nadeau | * *RD* : Rouge |
239 | 27 | Patrice Nadeau | * *YE* : Jaune |
240 | * *VT* : Violet |
||
241 | * *GR* : Gris |
||
242 | 1 | Patrice Nadeau | * *WH* : Blanc |
243 | 18 | Patrice Nadeau | * *CL* : Transparent |
244 | 1 | Patrice Nadeau | |
245 | > Ne fait pas partie du standard |
||
246 | |||
247 | 28 | Patrice Nadeau | ### Dates et heures |
248 | |||
249 | 1 | Patrice Nadeau | L’heure des documents généraux est inscrite en format français (xx h yy.) |
250 | |||
251 | Les documents technique eux sont inscrits dans le format [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) : |
||
252 | 18 | Patrice Nadeau | |
253 | 1 | Patrice Nadeau | * Date : 2014-08-24 |
254 | * Heure : 13:28 |
||
255 | |||
256 | ### Notation |
||
257 | |||
258 | 37 | Patrice Nadeau | Règles d’affichage des nombres et des unités. |
259 | 1 | Patrice Nadeau | |
260 | Les règles suivantes DOIVENT être utilisées : |
||
261 | 36 | Patrice Nadeau | |
262 | 1 | Patrice Nadeau | * le séparateur décimal DOIT être un point, |
263 | * le séparateur pour les milliers DOIT être un (demi-)espace, |
||
264 | * le nombre est suivit d’un (demi-)espace et du préfixe et de l’unité de mesure |
||
265 | 29 | Patrice Nadeau | |
266 | Sous _XeTex_, l’utilisation de _siunitx_ EST requise. |
||
267 | Ex. : |
||
268 | 1 | Patrice Nadeau | > Pour avoir 10 000.01 μA : |
269 | 18 | Patrice Nadeau | |
270 | 1 | Patrice Nadeau | \SI{10000.01}{\micro\A} |
271 | |||
272 | ### Symboles |
||
273 | |||
274 | Les symboles sont fait de la façon suivantes : |
||
275 | |||
276 | |_. Symbole |_. Signification |_. HTML |_. Textile |_. XeTex | |
||
277 | | ≈ | Approximativement | <notextile>≈</notextile> | | \approx | |
||
278 | | ± | Plus ou moins (tolérance) | <notextile> ± </notextile> | | | |
||
279 | | > | Plus grand | <notextile> > </notextile> | | | |
||
280 | 14 | Patrice Nadeau | | ≥ | Plus grand ou égale | <notextile> ≥ </notextile> | | | |
281 | 12 | Patrice Nadeau | | < | Plus petit | <notextile> < </notextile> | | | |
282 | 1 | Patrice Nadeau | | ≤ | Plus petit ou égale | <notextile> ≤ </notextile> | | | |
283 | 18 | Patrice Nadeau | | o | octet (unité) | | o | \octet | |
284 | 1 | Patrice Nadeau | | Ω | Ohm (unité) | <notextile> Ω </notextile> | | \si{\ohm} | |
285 | | µ | micro (préfixe) | <notextile>µ</notextile> | | \si{\micro} | |
||
286 | 4 | Patrice Nadeau | |
287 | 1 | Patrice Nadeau | ### Unité de mesure |
288 | |||
289 | 15 | Patrice Nadeau | Les unités de mesure à utiliser : |
290 | 38 | Patrice Nadeau | > [Le _byte_ n'est pas une unité officielle](http://en.wikipedia.org/wiki/Octet_%28computing%29). |
291 | 15 | Patrice Nadeau | |
292 | 1 | Patrice Nadeau | |_. Mesure |_. Unité |_. Symbole | |
293 | | Longueur | mètre | m | |
||
294 | | Masse | kilogramme | kg | |
||
295 | | Courant électrique | ampère | A | |
||
296 | | Donnés | bit | bit | |
||
297 | | Donnés | octet | o | |
||
298 | 15 | Patrice Nadeau | | Résistance | ohm | Ω | |
299 | 1 | Patrice Nadeau | | Capacitance | farad | F | |
300 | 18 | Patrice Nadeau | | Voltage | volt | V | |
301 | 1 | Patrice Nadeau | | Fréquence | hertz | Hz | |
302 | 18 | Patrice Nadeau | | Puissance | watt | W | |
303 | 1 | Patrice Nadeau | |
304 | ### Préfixes |
||
305 | 24 | Patrice Nadeau | |
306 | #### Base 10 |
||
307 | |||
308 | <table> |
||
309 | <tr> |
||
310 | <td style="text-align:center;"> Préfixe </td> |
||
311 | 23 | Patrice Nadeau | <td> Symbole </td> |
312 | <td> Notation </td> |
||
313 | <td> Représentation</td> |
||
314 | 24 | Patrice Nadeau | </tr> |
315 | 22 | Patrice Nadeau | </table> |
316 | 21 | Patrice Nadeau | |
317 | 1 | Patrice Nadeau | |
318 | 21 | Patrice Nadeau | | tera | T | 10<notextile></notextile>^12^ | 1 000 000 000 000 | </td> |
319 | | giga | G | 10<notextile></notextile>^9^ | 1 000 000 000 | |
||
320 | | mega | M | 10<notextile></notextile>^6^ | 1 000 000 | |
||
321 | | kilo | k | 10<notextile></notextile>^3^ | 1 000 | |
||
322 | | deci | d | 10<notextile></notextile>^1^ | 0.1 | |
||
323 | 24 | Patrice Nadeau | | milli | m | 10<notextile></notextile>^-3^ | 0.001 | |
324 | 21 | Patrice Nadeau | | micro | µ | 10<notextile></notextile>^-6^ | 0.000 001 | |
325 | 18 | Patrice Nadeau | | nano | n | 10<notextile></notextile>^-9^ | 0.000 000 001 | |
326 | 1 | Patrice Nadeau | | pico | p| 10<notextile></notextile>^-12^ | 0.000 000 000 001 | |
327 | 5 | Patrice Nadeau | |
328 | 1 | Patrice Nadeau | |
329 | #### Base 2 |
||
330 | |||
331 | Pour les données informatiques (1024). |
||
332 | |||
333 | |_. Préfixe |_. Symbole |_. Représentation | |
||
334 | | tebi | Ti | 1 099 511 627 776 octets | |
||
335 | 18 | Patrice Nadeau | | gibi | Gi | 1 073 741 824 octets | |
336 | 1 | Patrice Nadeau | | mebi | Mi | 1 048 576 octets | |
337 | | kibi | Ki | 1024 octets | |
||
338 | |||
339 | ## Référence |
||
340 | |||
341 | 33 | Patrice Nadeau | [How To Read Command Syntax](http://pcsupport.about.com/od/commandlinereference/a/command-syntax.htm) |
342 | 1 | Patrice Nadeau | |
343 | 33 | Patrice Nadeau | [Les unités de mesure du système métrique - Le français sans secrets - Portail linguistique du Canada](http://www.noslangues-ourlanguages.gc.ca/bien-well/fra-eng/typographie-typography/metrique-metric-fra.html) |
344 | 1 | Patrice Nadeau | |
345 | 33 | Patrice Nadeau | [Office québécois de la langue française](http://www.oqlf.gouv.qc.ca/) |
346 | 1 | Patrice Nadeau | |
347 | 33 | Patrice Nadeau | [8e édition de la brochure du Système international d’unités](http://www.bipm.org/utils/common/pdf/si_brochure_8_fr.pdf) |
348 | 1 | Patrice Nadeau | |
349 | 33 | Patrice Nadeau | [Date et heures en français](http://servicesdedition.com/fr/langue/chroniques/coordonnees.html) |
350 | 1 | Patrice Nadeau | |
351 | 33 | Patrice Nadeau | [IEC_80000-13](http://en.wikipedia.org/wiki/IEC_80000-13) |
352 | 1 | Patrice Nadeau | |
353 | 33 | Patrice Nadeau | [IEEE 1541-2002](http://en.wikipedia.org/wiki/IEEE_1541-2002) |