Skip to main content

Your first contribution

From installing the toolchain to opening a Pull Request. Every step comes with copy-ready commands, per-OS variants and reference links.

github.com/VanSail/VanSail.github.io
  1. Install Z Shell (optional)

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    brew install zsh
  2. Install Git

    brew install git
  3. Install Node.js

    Go to the Node.js download page, pick your OS and version, then run the installer.
    We recommend Yarn for package management.

  4. Fork the repository

    Open the VanSail project page and fork it under your own account.

  5. Clone the source

    Clone your fork to your machine:

    git clone git@github.com:/<your-name>/VanSail.github.io.git
  6. Install dependencies

    Enter the project directory and install dependencies:

    cd VanSail.github.io
    yarn install
  7. Start local preview

    yarn start builds both locales and serves them on one port with auto rebuild; use yarn start:dev for single-locale live reload:

    yarn start
    yarn start:dev
  8. Build the site

    Compile the source into a static site, output to the build directory:

    yarn build
  9. Serve the build

    Serve the compiled static site locally to verify the final result before publishing:

    yarn serve
  10. Edit & open a PR

    After editing, commit your changes and open a Pull Request to the main repo for review.