Skip to content

3 Local Editing

Rakeden edited this page Jun 19, 2023 · 2 revisions

Local Development & Editing

Testing changes locally can be beneficial for a few reasons, but it's not always necessary. Here's an explanation:

Testing changes locally allows contributors to preview their modifications before pushing them to the live site. This way, they can verify that their changes appear and function as intended, ensuring a smoother user experience. It also provides an opportunity to catch and fix any errors or issues before the changes impact the production environment. Local testing is particularly useful for complex modifications that involve multiple pages or interactive elements.

  1. Clone the VuePress site's repository from a version control system like Git onto your local machine.
  2. Install Node.js if you don't have it already.
  3. Open a terminal or command prompt and navigate to the cloned repository's directory.
  4. Run the command npm install to install the necessary dependencies.
  5. Once the installation is complete, run npm run docs:dev to start the local development server.
  6. Access the site in your web browser at http://localhost:8080.
  7. Any changes you make to the content or configuration files will be automatically reflected and updated in the local development server.

For more reference on vuepress, please visit the official vuepress docs

Clone this wiki locally