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