fix(ci): fix tests for guide in root (#19526)

This commit is contained in:
mrugesh mohapatra
2018-10-16 22:12:46 +05:30
committed by Quincy Larson
parent 6e7aeeda2f
commit 164d900e96
7 changed files with 10 additions and 10 deletions

View File

@ -51,7 +51,7 @@ You can help us:
Guide articles help you get a quick understanding of a technology concept. These are short, plain-English explanations that you can read before going on to more in-depth resources. Guide articles help you get a quick understanding of a technology concept. These are short, plain-English explanations that you can read before going on to more in-depth resources.
You can find an [example article about HTML Anchor Elements here](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/client/src/pages/guide/english/html/elements/a-tag/index.md). You can find an [example article about HTML Anchor Elements here](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/guide/english/html/elements/a-tag/index.md).
**What can I write an article about?** **What can I write an article about?**

View File

@ -5,7 +5,7 @@ const commonREs = require('../../utils/regEx');
const readDir = require('../../utils/readDir'); const readDir = require('../../utils/readDir');
const { isAStubRE } = commonREs; const { isAStubRE } = commonREs;
const pagesDir = path.resolve(__dirname, '../../src/pages/guide/english/'); const pagesDir = path.resolve(__dirname, '../../../guide/english/');
function withGuidePrefix(str) { function withGuidePrefix(str) {
return `/guide${str}`; return `/guide${str}`;

View File

@ -25,7 +25,7 @@ describe('fcc-create-nav-data', () => {
}, },
fileAbsolutePath: path.resolve( fileAbsolutePath: path.resolve(
__dirname, __dirname,
'../../src/pages/guide/english/php/functions/files/file-writing/index.md' '../../../guide/english/php/functions/files/file-writing/index.md'
) )
}; };

View File

@ -35,7 +35,7 @@ Watch the video demonstration or follow the steps below it:
![GIF showing the GitHub interface steps](#) ![GIF showing the GitHub interface steps](#)
1. Go into the **"pages"** folder (located in [`client/src/pages/guide`](/client/src/pages/guide)) and find the article stub you'd like to write or edit. 1. Go into the **"pages"** folder (located in [`guide`](/guide)) and find the article stub you'd like to write or edit.
> All stubs will be in an index.md file > All stubs will be in an index.md file

View File

@ -31,11 +31,11 @@ Há duas maneiras para propor uma mudança num repositório, depois de editares
Vê a demonstração em vídeo ou segue os passos abaixo: Vê a demonstração em vídeo ou segue os passos abaixo:
**[A FAZER]** Atualizar a gravação do GIF. **[A FAZER]** Atualizar a gravação do GIF.
![GIF a mostrar os passos do GitHub interface](#) ![GIF a mostrar os passos do GitHub interface](#)
1. Ir à pasta **"pages"** (localizada no [`client/src/pages/guide`](/client/src/pages/guide)) e encontrar o artigo que gostarias de escrever ou editar. 1. Ir à pasta **"pages"** (localizada no [`guide`](/guide)) e encontrar o artigo que gostarias de escrever ou editar.
> Todos os <i>stubs</i> estarão num ficheiro index.md > Todos os <i>stubs</i> estarão num ficheiro index.md
@ -111,7 +111,7 @@ Reviewers farão todos os esforços para resolver estes conflitos e combinar os
Se um <i>pull requests</i> não é perfeito, o revisor poderá: Se um <i>pull requests</i> não é perfeito, o revisor poderá:
- pedir mudanças ao contribuidor e adicionar a label *changes requested* - pedir mudanças ao contribuidor e adicionar a label *changes requested*
- resolver problemas menores e fazer um <i>commit> no topo do PR - resolver problemas menores e fazer um <i>commit> no topo do PR
#### Travis CI Build #### Travis CI Build
@ -358,7 +358,7 @@ It seems that similar changes have already been accepted earlier for this articl
If you feel you have more to add, please feel free to open up a new PR. If you feel you have more to add, please feel free to open up a new PR.
Thanks again! 😊 Thanks again! 😊
> Hey @username > Hey @username

View File

@ -35,7 +35,7 @@ Mira este vídeo de demostración o sigue los siguientes pasos:
![GIF showing the GitHub interface steps](#) ![GIF showing the GitHub interface steps](#)
1. Ve a la carpets **"páginas"** (situado en [`client/src/pages/guide`](/client/src/pages/guide)) donde encontrarás el artículo raiz que quieras editar. 1. Ve a la carpets **"páginas"** (situado en [`guide`](/guide)) donde encontrarás el artículo raiz que quieras editar.
> Todas las raíces estarán en un archivo index.md > Todas las raíces estarán en un archivo index.md

View File

@ -9,7 +9,7 @@ In case these assumptions are untrue, you might want to take a look at this <a>w
But it would be unfair if we completely ignore the <a href='http://docs.python-guide.org/en/latest/starting/which-python/#the-state-of-python-2-vs-3' target='_blank' rel='nofollow'>Python 2 vs Python 3</a> debate. But it would be unfair if we completely ignore the <a href='http://docs.python-guide.org/en/latest/starting/which-python/#the-state-of-python-2-vs-3' target='_blank' rel='nofollow'>Python 2 vs Python 3</a> debate.
If you do not have Python already installed check out our <a href='https://github.com/freeCodeCamp/freeCodeCamp/blob/master/client/src/pages/guide/english/python/installing-and-using-python-3/index.md'>Python Installation Guide</a> If you do not have Python already installed check out our <a href='https://github.com/freeCodeCamp/freeCodeCamp/blob/master/guide/english/python/installing-and-using-python-3/index.md'>Python Installation Guide</a>
## Virtual environment ## Virtual environment