Create a Docusaurus Site
This is a condensed version of Installation · Docusaurus & Creating your site done on my Windows machine with WSL build environment.
Setting up WSL (optional)
I'm assuming a fresh installation of Ubuntu 16.04 on Windows 10 Version 1803
# Add Nodesource for Node 8.x
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# Add Yarn stable repository 1.7.0
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
# Install Nodejs and yarn
sudo apt-get update && sudo apt-get install -y nodejs yarn
Creating a Docusaurus site
I'm using Hyper™
# Create Empty Repository
cd /mnt/c/stargazer/github
mkdir notes
cd notes
git init
# Installing Docusaurus
npx docusaurus-init
# Rename folders to enable sample-site
mv ./docs-examples-from-docusaurus ./docs
mv ./website/blog-examples-from-docusaurus/ ./website/blog
# Start it, Woohoo!
cd website
yarn start
Build Docusaurus
cd website
yarn install
yarn run build
Upgrade Docusaurus
yarn upgrade docusaurus --latest