From a5b0dbf5f545efa98989d68faf23769ac7b3929d Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Sun, 5 Aug 2018 23:01:49 +0000 Subject: [PATCH] Deploy website Deploy website version based on 29e71ebf535882f35eb7a9bb90d04ca03bc9989c --- docs/en/next/installation.html | 35 ++++++++++++++++--------- docs/en/next/installation/index.html | 35 ++++++++++++++++--------- docs/es-ES/next/installation.html | 29 +++++++++++--------- docs/es-ES/next/installation/index.html | 29 +++++++++++--------- docs/ro/next/installation.html | 29 +++++++++++--------- docs/ro/next/installation/index.html | 29 +++++++++++--------- docs/tr/next/installation.html | 29 +++++++++++--------- docs/tr/next/installation/index.html | 29 +++++++++++--------- docs/zh-CN/next/installation.html | 29 +++++++++++--------- docs/zh-CN/next/installation/index.html | 29 +++++++++++--------- 10 files changed, 182 insertions(+), 120 deletions(-) diff --git a/docs/en/next/installation.html b/docs/en/next/installation.html index c764763079..40314ddcca 100644 --- a/docs/en/next/installation.html +++ b/docs/en/next/installation.html @@ -1,4 +1,4 @@ -Installation · Docusaurus
Edit

Installation

Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly. To install Docusaurus, we have created an easy script that will get all of the infrastructure set up for you:

+
Edit

Installation

Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly.

+

Installing Docusaurus

+

We have created an easy script that will get all of the infrastructure set up for you:

  1. Ensure you have the latest version of Node installed. We also recommend you install Yarn as well.

    You have to be on Node >= 8.x and Yarn >= 1.5.

  2. -
  3. Go into the root of your GitHub repo directory where you will be creating the docs.

  4. -
  5. npx docusaurus-init

    +
  6. Change directory to the root of your project's GitHub repo.

    +

    You will be creating the docs in this directory. The root directory may +contain other files. The Docusaurus installation script will create two new +directories: docs-examples-from-docusaurus and website.

  7. +
  8. Run the Docusaurus installation script: npx docusaurus-init.

    If you don't have Node 8.2+ or if you prefer to install Docusaurus globally, run yarn global add docusaurus-init or npm install --global docusaurus-init. After that, run docusaurus-init.

  9. @@ -83,13 +88,19 @@ ├── siteConfig.js └── static -

    Running the Docusaurus initialization script, docusaurus-init, produces a runnable, example website to base your site upon.

    +

    Running the example website

    +

    After running the Docusaurus initialization script, docusaurus-init as +described in the Installation section, you will have a +runnable, example website to use as your site's base. To run:

      -
    1. In your root, rename docs-examples-from-docusaurus to docs.
    2. -
    3. cd website
    4. -
    5. Rename blog-examples-from-docusaurus to blog.
    6. -
    7. Run the local webserver via yarn start or npm start.
    8. -
    9. Load the example site at http://localhost:3000. You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh.
    10. +
    11. In your root, rename docs-examples-from-docusaurus to docs.

    12. +
    13. cd website

    14. +
    15. Rename blog-examples-from-docusaurus to blog.

    16. +
    17. From within the website directory, run the local webserver using +yarn start or npm start.

    18. +
    19. Load the example site at http://localhost:3000 if it did not already open +automatically.

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh.

    Launching the server behind a proxy

    @@ -98,7 +109,7 @@ yarn start (or npm run start)

    Updating Your Docusaurus Version

    -

    After Docusaurus is installed, moving forward, you can check your current version of Docusaurus by going into the website directory and typing yarn outdated docusaurus or npm outdated docusaurus.

    +

    At any time after Docusaurus is installed, you can check your current version of Docusaurus by going into the website directory and typing yarn outdated docusaurus or npm outdated docusaurus.

    You will see something like this:

    $ yarn outdated
     Using globally installed version of Yarn
    @@ -125,7 +136,7 @@ docusaurus 1.0.9   1.2.0  1.2.0  devDependencies https:temporary directory or run the Docusaurus server (e.g., yarn start) with the BABEL_DISABLE_CACHE=1 environment configuration.

    -