aboutsummaryrefslogtreecommitdiff
path: root/files/fr/mdn/guidelines/code_guidelines/shell/index.html
diff options
context:
space:
mode:
authortristantheb <tristantheb@users.noreply.github.com>2021-05-25 20:47:40 +0200
committerGitHub <noreply@github.com>2021-05-25 20:47:40 +0200
commit2a41c9c3d9c4660702c31bb68562958ecb44ee3e (patch)
tree6cc7a7ac6e0b21d48787798f8d2cbd52e45122c9 /files/fr/mdn/guidelines/code_guidelines/shell/index.html
parent88b7b3760b34284f9ba01333052d49710ce77904 (diff)
downloadtranslated-content-2a41c9c3d9c4660702c31bb68562958ecb44ee3e.tar.gz
translated-content-2a41c9c3d9c4660702c31bb68562958ecb44ee3e.tar.bz2
translated-content-2a41c9c3d9c4660702c31bb68562958ecb44ee3e.zip
L10N: Update the MDN Guideline (important pages only) with Yari and Git/GitHub (#371)
* UPDATE: Code guideline page is now up-to-date from the US version * CREATE: Add the general code guildeline page * CREATE: Add the CSS code guideline page * CREATE: Add the HTML code guideline page * FIX: Fix some elements on pages * CREATE: Add the JavaScript code guideline page * Pre-Creaate english version of other Guildelines pages * L10N: Update translation of the Javascript code guildeline page * L10N: Update translation of the Shell code guildeline page * FIX: Add missing class on the Code Guideline * UPDATE: Up-to-date the Feedback page * UPDATE: Up-to-date the Getting started page * L10N: Translate the Github for beginners page * UPDATE: Update indexes of Guideline and Contribute * L10N: Translation of the two Github additional guide pages * L10N: Translation of the Help for beginners page * L10N: Translation of the Localize page * L10N: Translation of the Open_source_etiquette rules * UPDATE: Remove wrong html element and update title for Processes page * L10N: Translation of the Where is everything page * L10N: Important translation of the Documentation priorities page * Meta - Review priority * Meta - Review feedback * Meta - Review Getting started * Review - minor edits * Review - minor typos * Review - few rewordings * Review - minor rewordings * Review - minor lint * Review - Consistency with MDN vs le MDN * Review - update / ko / link ks * Review - minor rewordings * Review - Complement since no subpage * Review - minor typo * Review - rm cssxref * Review - minor fixes * Review - minor fixes * Review - minor fixes * Review - minor fixes * Review - minor fixes * Review - Complete translation of doc * Review - Complete translation * Review - complete translation * Review - complete translation * Review - minor rewording * Review - Complete translation * Review - Localization of style guide in Fr Co-authored-by: julieng <julien.gattelier@gmail.com>
Diffstat (limited to 'files/fr/mdn/guidelines/code_guidelines/shell/index.html')
-rw-r--r--files/fr/mdn/guidelines/code_guidelines/shell/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/files/fr/mdn/guidelines/code_guidelines/shell/index.html b/files/fr/mdn/guidelines/code_guidelines/shell/index.html
new file mode 100644
index 0000000000..d00ea40c41
--- /dev/null
+++ b/files/fr/mdn/guidelines/code_guidelines/shell/index.html
@@ -0,0 +1,37 @@
+---
+title: Lignes directrices des exemples de lignes de commande
+slug: MDN/Guidelines/Code_guidelines/Shell
+tags:
+ - Code
+ - Guide
+ - Guidelines
+ - MDN Meta
+ - Shell
+translation_of: MDN/Guidelines/Code_guidelines/Shell
+---
+<div>{{MDNSidebar}}</div>
+
+<p class="summary">Les directives suivantes expliquent comment rédiger des exemples de lignes de commande sur MDN.</p>
+
+<h2 id="Shell_prompts_in_brief">Les commandes Shell en bref</h2>
+
+<p>Un <i>shell</i> est un programme qui attend que vous tapiez une commande et que vous appuyiez sur la touche retour. Pour indiquer les commandes que vous devez taper, la documentation MDN les répertorie dans un bloc de code, similaire aux exemples de code. Un tel bloc ressemble à ceci :</p>
+
+<pre class="brush: bash example-good"># Cela peut prendre un certain temps…
+hg clone https://hg.mozilla.org/mozilla-central/ firefox
+cd firefox</pre>
+
+<h2 id="Guidelines">Directives</h2>
+
+<p>Il existe quelques directives à suivre lors de l'écriture d'un bloc de code shell :</p>
+
+<ul>
+ <li>N'incluez pas de "$" ou de "&gt;" au début d'une instruction shell. Cela perturbe plus qu'il n'aide et n'est pas utile pour copier les instructions.</li>
+ <li>Les commentaires commencent par "#".</li>
+ <li>Choisissez la coloration syntaxique "bash".</li>
+</ul>
+
+<h2 id="Good_shell_prompt_examples_on_MDN">De bons exemples de commandes shell sur le MDN</h2>
+
+<p>Nos <a href="/fr/docs/Learn/Server-side/Django">Documents de développement côté serveur de Django</a> montrent une bonne pratique de présentation des commandes de l'invite shell, etc. sur le MDN. Regardez <a href="/fr/docs/Learn/Server-side/Django/development_environment">Configurer un environnement de développement Django</a> par exemple.</p>
+