The solarmesh.cn website, built using Hugo and hosted on Netlify.
To build and serve the site, you'll need the latest [LTS release][] of Node. Like Netlify, we use [nvm][], the Node Version Manager, to install and manage Node versions:
$ nvm install --lts
- Clone this repo.
- From a terminal window, change to the cloned repo directory.
- Get NPM packages and git submodules, including the the Docsy theme:
$ npm install
To locally serve the site at localhost:1313 , run the following command:
$ npm run serve
To build and check links, run these commands:
$ npm run build
$ npm run check-links
You can also locally serve using Docker:
$ make docker-serve
wget https://github.com/gohugoio/hugo/releases/download/v0.89.4/hugo_extended_0.89.4_Linux-64bit.tar.gz
tar -zxvf hugo_extended_0.89.4_Linux-64bit.tar.gz
git clone https://github.com/cloudtogo/solarmesh-docs.git
cp hugo ./solarmesh-website
cd solarmesh-website
docker build -t ${Image} .
docker run -d -p 8888:8888 --restart always ${Image}