From 7ff56a91247c181832d549895d26500814d5e72d Mon Sep 17 00:00:00 2001 From: Ana Carolina Date: Thu, 11 Oct 2018 23:59:08 -0300 Subject: [PATCH] Translate how-to-work-on-coding-challenges.md to Portuguese --- .../how-to-work-on-coding-challenges.md | 107 +++++++++++++++++- 1 file changed, 104 insertions(+), 3 deletions(-) diff --git a/docs/portuguese/how-to-work-on-coding-challenges.md b/docs/portuguese/how-to-work-on-coding-challenges.md index 6413201ac3..89be1834b0 100644 --- a/docs/portuguese/how-to-work-on-coding-challenges.md +++ b/docs/portuguese/how-to-work-on-coding-challenges.md @@ -10,8 +10,109 @@ -# Contribution Guidelines + + + + + + + + + + +
Read these guidelines in English 中文 русский عربى Español Português
-Hello 👋 ! +# Como trabalhar nos desafios de código -These instructions have not been translated yet. Please check this issue for details: [`#18312`](https://github.com/freeCodeCamp/freeCodeCamp/issues/18312) \ No newline at end of file +### Fazendo mudanças no GitHub + +Cada desafio está guardado em seu próprio arquivo markdown. Isso torna fácil editar os desafios diretamente de dentro do GitHub. + +Você pode fazer mudanças sem ter nada rodando em seu sistema local. + +Depois que encontrar o arquivo que deseja modificar pela interface do GitHub, clique no ícone de lápis para começar a editar. Isto ira criar um fork do projeto automaticamente, se você já não tem um. + +Você também pode clonar o projeto e editar localmente no seu computador. Para ajuda com isso, leia o artigo [Orientações de Contribuição](/docs/portuguese/CONTRIBUTING.md). + +### Modelo de Desafio + +Aqui um modelo de como é um arquivo markdown do desafio. + + +````md +--- +id: Unique identifier (alphanumerical, MongoDB _id) +title: Challenge Title +challengeType: 0 +guideUrl: 'url of guide article' +videoUrl: 'url of video explaination' +--- + +## Description +
+A Description of the challenge and what is required to pass +
+ +## Instructions +
+Instructions about what exactly needs to be done. +
+## Tests +
+ +``` yml +- text: Should return "foo". + testString: 'A stringified function using Chai asserts' +``` + +
+ +
+ +```js +Code desplayed in the editor by default. +``` + +
+ +### Before Test +
+ +```js +Test setup code. +``` + +
+ + + +### After Test +
+ +```js +Test tear down code. +``` + +
+ + + +## Solution +
+ +```js +Challenge solution code. +``` + +
+```` + +### Links Úteis + +Criando e Editando Desafios: + +1. [Guia de Estilo dos Desafios](/docs/style-guide-for-curriculum-challenges.md) - como criar e formatar desafios. + +2. [Tipos de Desafio](https://github.com/freeCodeCamp/learn/blob/a5cb25704168aa37f59a582f0bb5a19b7bd89b46/utils/challengeTypes.js) - o que o número do tipo de desafio significa (enum). + +3. [Contributing to FreeCodeCamp - Writing ES6 Challenge Tests](https://www.youtube.com/watch?v=iOdD84OSfAE#t=2h49m55s) - um vídeo acompanhando [Ethan Arrowood](https://twitter.com/ArrowoodTech) enquanto ele contribui com uma versão antiga do currículo.