2016-11-14 15:21:29 +01:00
# Eclipse hawkBit Documentation
2018-08-01 11:01:02 +02:00
The hawkBit documentation is built with [Hugo ](https://www.gohugo.io/ ) using the [Material ](http://github.com/digitalcraftsman/hugo-material-docs )
theme. Compiling the documentation is not included within the regular Maven build.
2016-11-14 15:21:29 +01:00
2018-08-01 11:01:02 +02:00
## Prerequisites
1. **Install Hugo ** : see [installing Hugo ](https://gohugo.io/getting-started/installing/ ) documentation on how to install Hugo.
2023-10-02 11:04:52 +03:00
2. **Install NODE.js and npm ** see [installing Node.js and npm ](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm ) documentation on how to install Node.js and npm
3. **Install Redocly CLI ** see [installing Redocly CLI ](https://redocly.com/docs/cli/installation/ ) documentation on how to install Redocly CLI
4. **Install hawkBit ** : run `mvn install` in the parent directory to generate the latest REST docs for hawkBit.
2016-11-14 15:21:29 +01:00
2018-08-01 11:01:02 +02:00
## Build and Serve documentation
The following Maven targets are available in order to build and serve the documentation:
2018-05-24 16:10:01 +02:00
2018-08-01 11:01:02 +02:00
* `mvn install` : _ i. _ Copies the generated REST docs to `content/rest-api/` and _ ii. _ downloads the required Hugo theme
2023-09-14 15:40:09 +03:00
* `mvn site` : Serve the documentation on [localhost:1313/hawkbit/ ](http://localhost:1313/hawkbit/ )
2016-11-14 15:21:29 +01:00
2023-09-14 15:40:09 +03:00
_ Note _ : the local port could be different. Please, look at the _ mvn site _ command output.
* `mvn clean` : Delete generated artifacts (REST docs, Hugo theme)
2018-05-24 16:10:01 +02:00
2018-08-01 11:01:02 +02:00
## Generate /public folder
In order to generate the `/public` folder, which can be put on a web-server, run the following command:
2018-05-24 16:10:01 +02:00
2018-08-01 11:01:02 +02:00
```bash
$ hugo
```