From 5f5cdb4aa8662b2110aafae74a12f5561d8a21ae Mon Sep 17 00:00:00 2001 From: Jay Martin Date: Fri, 26 Jul 2019 00:24:18 -0700 Subject: [PATCH] docs: say that a page is a text file and link to editors (#1708) A few extra details to help noobs. --- docs/tutorial-create-pages.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/tutorial-create-pages.md b/docs/tutorial-create-pages.md index ab288dbacd..9cc4f3ce57 100644 --- a/docs/tutorial-create-pages.md +++ b/docs/tutorial-create-pages.md @@ -7,9 +7,9 @@ In this section, we will learn about creating two types of pages in Docusaurus: Docusaurus MacBook -## Creating a Regular Page +## Create a Regular Page -1. Go into the `pages/en` directory and create a file called `hello-world.js` with the following contents: +1. In the `website/pages/en` directory of your repository, save a text file called `hello-world.js` with the following contents: ``` const React = require('react'); @@ -33,8 +33,10 @@ function HelloWorld(props) { module.exports = HelloWorld; ``` +> Use any text editor to make the file, such as [Microsoft Visual Studio Code](https://code.visualstudio.com/download) or [Komodo Edit](https://www.activestate.com/komodo-edit). + 2. Go to http://localhost:3000/hello-world and you should be able to see the new page. -1. Change the text within the `

...

` to "I can write JSX here!". The browser should refresh automatically to reflect the changes. +1. Change the text within the `

...

` to "I can write JSX here!" and save the file again. The browser should refresh automatically to reflect the change. ```diff -

This is my first page!