From 164d900e964d9776a5c9018458616d228d98cbcf Mon Sep 17 00:00:00 2001 From: mrugesh mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Tue, 16 Oct 2018 22:12:46 +0530 Subject: [PATCH] fix(ci): fix tests for guide in root (#19526) --- CONTRIBUTING.md | 2 +- .../plugins/fcc-create-nav-data/create-navigation-node.js | 2 +- .../fcc-create-nav-data/create-navigation-node.test.js | 2 +- docs/how-to-work-on-guide-articles.md | 2 +- docs/portuguese/how-to-work-on-guide-articles.md | 8 ++++---- docs/spanish/how-to-work-on-guide-articles.md | 2 +- .../index.md | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f9405034a7..82abfaf7e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. -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?** diff --git a/client/plugins/fcc-create-nav-data/create-navigation-node.js b/client/plugins/fcc-create-nav-data/create-navigation-node.js index 486c08d49a..d7d230a4c0 100644 --- a/client/plugins/fcc-create-nav-data/create-navigation-node.js +++ b/client/plugins/fcc-create-nav-data/create-navigation-node.js @@ -5,7 +5,7 @@ const commonREs = require('../../utils/regEx'); const readDir = require('../../utils/readDir'); const { isAStubRE } = commonREs; -const pagesDir = path.resolve(__dirname, '../../src/pages/guide/english/'); +const pagesDir = path.resolve(__dirname, '../../../guide/english/'); function withGuidePrefix(str) { return `/guide${str}`; diff --git a/client/plugins/fcc-create-nav-data/create-navigation-node.test.js b/client/plugins/fcc-create-nav-data/create-navigation-node.test.js index d240e0b673..9d3ac412ad 100644 --- a/client/plugins/fcc-create-nav-data/create-navigation-node.test.js +++ b/client/plugins/fcc-create-nav-data/create-navigation-node.test.js @@ -25,7 +25,7 @@ describe('fcc-create-nav-data', () => { }, fileAbsolutePath: path.resolve( __dirname, - '../../src/pages/guide/english/php/functions/files/file-writing/index.md' + '../../../guide/english/php/functions/files/file-writing/index.md' ) }; diff --git a/docs/how-to-work-on-guide-articles.md b/docs/how-to-work-on-guide-articles.md index 37755c139d..261a2471bc 100644 --- a/docs/how-to-work-on-guide-articles.md +++ b/docs/how-to-work-on-guide-articles.md @@ -35,7 +35,7 @@ Watch the video demonstration or follow the steps below it: ![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 diff --git a/docs/portuguese/how-to-work-on-guide-articles.md b/docs/portuguese/how-to-work-on-guide-articles.md index 5838eec730..4b6f59d0d4 100644 --- a/docs/portuguese/how-to-work-on-guide-articles.md +++ b/docs/portuguese/how-to-work-on-guide-articles.md @@ -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: -**[A FAZER]** Atualizar a gravação do GIF. +**[A FAZER]** Atualizar a gravação do GIF. ![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 stubs 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 pull requests 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 commit> no topo do PR #### 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. -Thanks again! 😊 +Thanks again! 😊 > Hey @username diff --git a/docs/spanish/how-to-work-on-guide-articles.md b/docs/spanish/how-to-work-on-guide-articles.md index 4cf5947c2d..aceae69c6c 100644 --- a/docs/spanish/how-to-work-on-guide-articles.md +++ b/docs/spanish/how-to-work-on-guide-articles.md @@ -35,7 +35,7 @@ Mira este vídeo de demostración o sigue los siguientes pasos: ![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 diff --git a/guide/english/python/setting-up-python-web-framework-django-and-flask/index.md b/guide/english/python/setting-up-python-web-framework-django-and-flask/index.md index 345ca323a8..7dfe7915fd 100644 --- a/guide/english/python/setting-up-python-web-framework-django-and-flask/index.md +++ b/guide/english/python/setting-up-python-web-framework-django-and-flask/index.md @@ -9,7 +9,7 @@ In case these assumptions are untrue, you might want to take a look at this w But it would be unfair if we completely ignore the Python 2 vs Python 3 debate. -If you do not have Python already installed check out our Python Installation Guide +If you do not have Python already installed check out our Python Installation Guide ## Virtual environment