This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/CONTRIBUTING.md
Luke Murphy b529e2f2e8
All checks were successful
continuous-integration/drone/push Build is passing
Point to deploy docs
2020-05-01 13:31:52 +02:00

59 lines
1.5 KiB
Markdown

# Contributing
## What Is Jekyll
For those unfamiliar with how Jekyll works, check out [jekyll.rb] for all the
details, or read up on the basics of [front matter], [writing posts] and
[creating pages]. Alternatively, just dive in and start editing! After all, the
majority of this site is configuration is just flat text, so it's easy to work
with.
[jekyll.rb]: https://jekyllrb.com/
[front matter]: https://jekyllrb.com/docs/frontmatter/
[writing posts]: https://jekyllrb.com/docs/posts/
[creating pages]: https://jekyllrb.com/docs/pages/
## Development
The prerequisites are [Docker](https://www.docker.com/) and [Docker-compose](https://docs.docker.com/compose/).
If you're on Debian, installing is easy.
Install Docker.
```bash
$ curl -fsSL https://get.docker.com -o get-docker.sh # have a look if you want
$ CHANNEL=stable sh get-docker.sh
```
Install Docker-compose.
```bash
$ cd autonomic.zone
$ python3 -m venv .venv
$ pip install -r requirements.txt
```
Then fire up the container with the following.
```bash
$ docker-compose up
```
Then visit the locally running website.
> http://localhost:4000
Then you can edit the files as normal and reload the page.
To stop the container when you're done, you can run:
```bash
$ docker-compose stop
```
## Production
1. Our [drone.autonomic.zone](https://drone.autonomic.zone/autonomic-cooperative/autonomic.zone/) configuration automatically deploys.
1. For a manual deploy guide, see [this documentation](https://git.autonomic.zone/autonomic-cooperative/organising/wiki/working-with-docker-swarm).