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