Skip to content

Commit

Permalink
Update tutorials filename + add redirects for tutorials (#203)
Browse files Browse the repository at this point in the history
* Update first tutorials filename from 'introduction' to less generic 'introduction-to-tutorials'

- Add more redirects that lead to first tutorials introduction.
- close #201
- close #202

* missed a link, thank you tests!
  • Loading branch information
jennifer-shehane authored Nov 2, 2017
1 parent 7235134 commit 0897402
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ alias:
api/commands/cypress-blob.html: api/utilities/blob.html
api/commands/api-server.html: api/cypress-api/cypress-server.html

tutorials/index.html: tutorials/test-a-react-todo-app/introduction.html
tutorials/index.html: tutorials/test-a-react-todo-app/introduction-to-tutorials.html
tutorials/test-a-react-todo-app/introduction/: tutorials/test-a-react-todo-app/introduction-to-tutorials.html
tutorials/test-a-react-todo-app/introduction.html: tutorials/test-a-react-todo-app/introduction-to-tutorials.html
tutorials/test-a-react-todo-app/: tutorials/test-a-react-todo-app/introduction-to-tutorials.html
tutorials/: tutorials/test-a-react-todo-app/introduction-to-tutorials.html

examples/index.html: examples/recipes/unit-testing-recipe.html

Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/main_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ _ = require('lodash')

GUIDES_PATH = "/guides/overview/why-cypress"
API_PATH = "/api/introduction/api"
TUTORIALS_PATH = "/tutorials/test-a-react-todo-app/introduction"
TUTORIALS_PATH = "/tutorials/test-a-react-todo-app/introduction-to-tutorials"
EXAMPLES_PATH = "/examples/recipes/unit-testing-recipe"
DASHBOARD_PATH = "/dashboard/overview/features-dashboard"
FAQ_PATH = "/faq/questions/general-questions-faq"
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/tutorials_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ YAML = require('yamljs')
_ = require('lodash')
{improveUrl} = require('./repo.coffee')

TUTORIALS_PATH = "/tutorials/test-a-react-todo-app/introduction"
TUTORIALS_PATH = "/tutorials/test-a-react-todo-app/introduction-to-tutorials"

describe "Tutorials", ->
beforeEach ->
Expand Down
2 changes: 1 addition & 1 deletion source/_data/main-menu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
guides: /guides/overview/why-cypress.html
api: /api/introduction/api.html
tutorials: /tutorials/test-a-react-todo-app/introduction.html
tutorials: /tutorials/test-a-react-todo-app/introduction-to-tutorials.html
examples: /examples/recipes/unit-testing-recipe.html
dashboard: /dashboard/overview/features-dashboard.html
faq: /faq/questions/general-questions-faq.html
2 changes: 1 addition & 1 deletion source/_data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ api:

tutorials:
test-a-react-todo-app:
introduction: introduction.html
introduction-to-tutorials: introduction-to-tutorials.html
project-setup: project-setup.html
testing-inputs: testing-inputs.html

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ We have a lot of ground to cover, so let's get started!
| -- | -- |
| 1. {% url "Project setup" project-setup %} | {% fa fa-video-camera %} 3:52 |
| 2. {% url "Testing inputs" testing-inputs %} | {% fa fa-video-camera %} 7:17 |
| More tutorials to come! | {% fa fa-video-camera %} -:--|
| More tutorials to come! | |
2 changes: 1 addition & 1 deletion themes/cypress/languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ sidebar:
cypress-server: Server
tutorials:
test-a-react-todo-app: Test a React Todo App
introduction: Introduction
introduction-to-tutorials: Introduction
project-setup: Project setup
testing-inputs: Testing text inputs
examples:
Expand Down

0 comments on commit 0897402

Please sign in to comment.