peach-devdocs/README.md

52 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2019-10-30 15:10:57 +00:00
# peach-devdocs
2021-03-04 08:47:52 +00:00
[![Build Status](https://travis-ci.com/peachcloud/peach-devdocs.svg?branch=master)](https://travis-ci.com/peachcloud/peach-devdocs) ![Generic badge](https://img.shields.io/badge/version-0.3.2-<COLOR>.svg)
2019-10-30 15:10:57 +00:00
Developer documentation for [PeachCloud](https://github.com/peachcloud) in the form of a Markdown book.
2019-10-30 15:22:23 +00:00
## [Read online here >> :book:](http://docs.peachcloud.org)
2019-10-30 15:22:23 +00:00
2019-11-11 08:43:14 +00:00
![PeachCloud physical interface](./src/assets/peachcloud.jpg)
2019-11-09 08:22:02 +00:00
2019-11-09 07:48:00 +00:00
## Development
2019-10-30 15:22:23 +00:00
2019-11-09 07:48:00 +00:00
Dependencies:
- [mdBook](https://github.com/rust-lang/mdBook) (release binaries or cargo install)
2019-10-30 15:10:57 +00:00
2019-11-09 07:48:00 +00:00
```bash
$ git clone https://github.com/peachcloud/peach-devdocs
$ cd peach-devdocs
$ mdbook serve
```
2019-10-30 15:10:57 +00:00
2019-11-09 07:48:00 +00:00
This serves the current state of the book at [localhost:3000](http://localhost:3000).
When changes to any files are saved, the browser view will automatically refresh to reflect the new state.
2019-10-30 15:10:57 +00:00
2019-11-09 07:48:00 +00:00
**NOTES**:
2019-11-11 08:43:14 +00:00
- this assumes `mdbook` is in your `PATH`
2019-11-09 07:48:00 +00:00
- the command for adding the default cargo bin directory is `export PATH=$PATH:~/.cargo/bin`.
2019-11-11 08:43:14 +00:00
- if you downloaded the prebuilt binary then make sure the directory is in your `PATH`
2019-10-30 15:10:57 +00:00
2019-11-09 07:48:00 +00:00
## Build a release
2019-10-30 15:10:57 +00:00
2019-11-09 07:48:00 +00:00
```
$ mdbook serve
```
This builds the book into a static release ready for publishing.
Currently outputs to `book/` directory.
## Hosting
The PeachCloud developer documentation book is hosted at [docs.peachcloud.org](http://docs.peachcloud.org) using a simple Nginx deployment on a virtual server. HTTPS configuration is pending.
This tutorial from Digital Ocean describes the deployment process: [How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04).
2019-10-30 15:10:57 +00:00
## Production Deployment
Deployment of the documentation book to production is automated using Git Hooks. Refer to the [GITHOOK_DEPLOYMENT.md](./GITHOOK_DEPLOYMENT.md) document for setup and usage instructions.
## Licensing
2019-10-30 15:10:57 +00:00
AGPL-3.0