-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Create clearer pathways in docs (#9898)
* clarify that VS Code is recommended for consistency throughout the tutorial * some recipe doc consistency * reorg. graphql-reference doesnt make sense in api reference * consistent section title * move quick start from docs landing page to dedicated doc * tweak to tutorial intro * rewrite docs landing page to be a central landing page, and reorg sidebar * style: make the linter happy * style: fix eslint errors in docs/index.js
- Loading branch information
1 parent
339bd1b
commit 11a33c5
Showing
6 changed files
with
129 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: "Quick Start" | ||
--- | ||
|
||
This quick start is intended for intermediate to advanced developers. For a gentler intro to Gatsby, [head to our tutorial](/tutorial/)! | ||
|
||
## Install Gatsby's command line tool | ||
|
||
```bash | ||
npm install --global gatsby-cli | ||
``` | ||
|
||
## Use the Gatsby CLI | ||
|
||
### Create a new site. | ||
|
||
```bash | ||
gatsby new gatsby-site | ||
``` | ||
|
||
### Change directories into site folder. | ||
|
||
```bash | ||
cd gatsby-site | ||
``` | ||
|
||
### Start development server. | ||
|
||
```bash | ||
gatsby develop | ||
``` | ||
|
||
Gatsby will start a hot-reloading development environment accessible by default at `localhost:8000`. | ||
|
||
Try editing the JavaScript pages in `src/pages`. Saved changes will live reload in the browser. | ||
|
||
### Create a production build. | ||
|
||
```bash | ||
gatsby build | ||
``` | ||
|
||
Gatsby will perform an optimized production build for your site, generating static HTML and per-route JavaScript code bundles. | ||
|
||
### Serve the production build locally. | ||
|
||
```bash | ||
gatsby serve | ||
``` | ||
|
||
Gatsby starts a local HTML server for testing your built site. | ||
|
||
### Access documentation for CLI commands. | ||
|
||
To see detailed documentation for the CLI commands, run `gatsby --help` in the terminal. | ||
|
||
For specific commands, run `gatsby COMMAND_NAME --help` e.g. `gatsby develop --help`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters