-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fefade6
commit 0b320fc
Showing
6 changed files
with
94 additions
and
79 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
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
--- | ||
description: Preview your documentation changes before submitting them. | ||
sidebar_position: 6 | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Preview the docs | ||
|
||
Use [npm](#npm) or [Yarn](#yarn) to preview your documentation changes locally | ||
before pushing them to your remote branch. | ||
|
||
Make sure you have [Node.js version 16+ and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) | ||
Use [npm](#npm) to preview your documentation changes locally before pushing them to your remote branch. | ||
Make sure you have [Node.js version 18+ and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) | ||
installed. | ||
|
||
:::tip | ||
|
@@ -17,15 +15,14 @@ If you're using Node.js with [nvm](https://github.com/nvm-sh/nvm/blob/master/REA | |
::: | ||
|
||
:::note | ||
If you make changes to a versioned doc site | ||
(for example, [Teku](https://docs.teku.consensys.net/)), | ||
If you make changes to a versioned doc site (for example, [Teku](https://docs.teku.consensys.net/)), | ||
Check failure on line 18 in docs/contribute/preview.md GitHub Actions / LintTrailing spaces
|
||
the changes only appear in the development version of the docs. | ||
Switch to the development version of the preview to see those changes. | ||
::: | ||
|
||
## npm | ||
## Use npm | ||
|
||
In the doc repository, run the following commands to start a local development server and preview | ||
In the root of the doc project, run the following commands to start a local development server and preview | ||
your changes: | ||
|
||
```bash | ||
|
@@ -34,23 +31,6 @@ npm start | |
``` | ||
|
||
:::note | ||
If you make changes to the [redirects](../create/configure-docusaurus.md#redirects), | ||
you can preview them by running `npm run build && npm run serve`. | ||
::: | ||
|
||
## Yarn | ||
|
||
Make sure you have [Yarn](https://yarnpkg.com/getting-started/install) version 3 installed. | ||
|
||
In the doc repository, run the following commands to start a local development server and preview | ||
your changes: | ||
|
||
```bash | ||
yarn install | ||
yarn start | ||
``` | ||
|
||
:::note | ||
If you make changes to the [redirects](../create/configure-docusaurus.md#redirects), | ||
you can preview them by running `yarn build && yarn serve`. | ||
If you make changes to the [redirects](../create/configure-docusaurus.md#redirects), you can preview them by | ||
running `npm run build && npm run serve`. | ||
::: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,6 @@ const config = { | |
docs: { | ||
sidebar: { | ||
hideable: true, | ||
autoCollapseCategories: true, | ||
}, | ||
}, | ||
navbar: { | ||
|
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