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