You need following installed locally
- npm
- Go
- Hugo(Extended version)
- Docker & Docker Compose
Before we start, install the dependencies, Clone the repository and navigate to the directory.
git clone --recurse-submodules --depth 1 https://github.com/spaceone-dev/docs
cd docs
SpaceONE blog uses Docsy Hugo theme. So, we strongly recommend pulling in the submodule and other developmment dependencies by running the following.
# pull in the Docsy submodule
git submodule update --init --recursive --depth 1
To build SpaceONE blog, you also need PostCSS
to create the final asset. If you need install it, you must have recent version of NodeJS installed on your machine so you can use npm.
npm install --no-optional -D --save
Once you've made your own working copy of this repo, from the root folder, run:
hugo server -D
You can run SpaceONE blog by inside a Docker container.
docker-compose up --build
Open you web browser type http://localhost:1313
in your navigation bar.
To stop Docker Compose, on your terminal window, press Ctrl + C.
To remove the produced images run:
docker-compose rm