homebrewserver.club/README.md

73 lines
1.4 KiB
Markdown
Raw Normal View History

2019-06-12 15:02:15 +02:00
# nooo-hbsc
The new homebrewserver.club website.
> https://homebrewserver.club/
2019-06-12 15:02:15 +02:00
## Build the site locally
2019-07-01 12:39:12 +02:00
### Get a local copy
```bash
$ git clone --recurse-submodules https://git.vvvvvvaria.org/varia/nooo-hbsc
```
### System requirements
2019-06-12 15:02:15 +02:00
Install the system requirements:
2019-06-12 15:02:15 +02:00
```bash
$ apt install -y python3 python3-dev python3-venv
2019-06-12 15:02:15 +02:00
```
### Python requirements
2019-06-12 15:02:15 +02:00
Then create a virtual environment and activate it:
2019-06-12 15:02:15 +02:00
```bash
$ python3 -m venv .venv
$ source .venv/bin/activate
```
Then install the requirements:
```bash
$ pip install -r requirements.txt
2019-06-12 15:02:15 +02:00
```
2019-06-12 15:19:05 +02:00
### Generating the site
Generate the content and run the server:
```bash
$ pelican content
2019-06-19 14:38:36 +02:00
$ pelican --listen --relative-urls
```
2019-06-12 15:19:05 +02:00
Then the site is available at the following URL:
> http://localhost:8000
## Working with the site
2019-06-12 15:19:05 +02:00
2019-06-17 11:54:25 +02:00
* Website articles and content are in [content](./content)
* The website theme is in [themes/homebrewtheme](./themes/homebrewtheme)
2019-06-19 12:36:44 +02:00
* Images are stored in [content/images](./content/images)
2019-06-19 12:37:57 +02:00
* Configs are stored in [content/downloads](./content/downloads)
While working on the site, you can run the following:
2019-06-12 15:19:05 +02:00
```bash
2019-06-19 14:38:36 +02:00
$ pelican --autoreload --listen --relative-urls
```
2019-06-17 12:20:20 +02:00
### Writing drafts
Use `Status: draft` in the article metadata. When the site is generated, the
`output/drafts` folder will be created with your new draft article. This allows
us to work on new articles and still store the pages here in the repository.
## Deploying the site
2019-07-01 12:43:04 +02:00
TODO.