https://github.com/mark8s/solarmesh-website
https://github.com/mark8s/solarmesh-website
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mark8s/solarmesh-website
- Owner: mark8s
- License: other
- Created: 2023-10-29T14:56:35.000Z (about 2 years ago)
- Default Branch: solarmesh
- Last Pushed: 2024-05-22T10:40:52.000Z (over 1 year ago)
- Last Synced: 2024-05-22T10:57:31.636Z (over 1 year ago)
- Language: JavaScript
- Size: 35.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solarmesh.cn
The [solarmesh.cn](https://solarmesh.cn) website, built using [Hugo](https://gohugo.io) and hosted on [Netlify](https://www.netlify.com/).
## Build
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:
```console
$ nvm install --lts
```
### Setup
1. Clone this repo.
2. From a terminal window, change to the cloned repo directory.
3. Get NPM packages and git submodules, including the the [Docsy](https://www.docsy.dev/) theme:
```console
$ npm install
```
### Build or serve the site
To locally serve the site at [localhost:1313 ](http://localhost:1313), run the following command:
```console
$ npm run serve
```
To build and check links, run these commands:
```console
$ npm run build
$ npm run check-links
```
You can also locally serve using [Docker](https://docker.com):
```console
$ make docker-serve
```
### Build Image
```shell
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/mark8s/solarmesh-website.git
cp hugo ./solarmesh-website
cd solarmesh-website
docker build -t ${Image} .
```
### Docker start
```shell
docker run -d -p 8888:8888 --restart always ${Image}
```