Compare commits
2 Commits
d001d6b287
...
5958bbc24f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5958bbc24f | ||
|
|
d9c93d1182 |
30
Makefile
Normal file
30
Makefile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
.PHONY: build events dev stop help prep
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "Available commands:"
|
||||||
|
@echo " make prep - Create venv and install requirements"
|
||||||
|
@echo " make events - Update site from CSV (build pages + images)"
|
||||||
|
@echo " make dev - Start development server"
|
||||||
|
@echo " make stop - Stop development server"
|
||||||
|
@echo " make build - Full website build sequence"
|
||||||
|
@echo " make help - Show this help message"
|
||||||
|
|
||||||
|
prep:
|
||||||
|
python3 -m venv .venv
|
||||||
|
./.venv/bin/pip install --upgrade pip
|
||||||
|
./.venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
|
build:
|
||||||
|
./.venv/bin/python atom_gen.py
|
||||||
|
./.venv/bin/python prep.py
|
||||||
|
./.venv/bin/python build_pages.py
|
||||||
|
|
||||||
|
events:
|
||||||
|
./.venv/bin/python build_pages.py
|
||||||
|
./.venv/bin/python image_poster.py
|
||||||
|
|
||||||
|
dev:
|
||||||
|
nginx -p . -c nginx.dev.conf
|
||||||
|
|
||||||
|
stop:
|
||||||
|
nginx -p . -s stop
|
||||||
42
README.md
42
README.md
@@ -2,41 +2,59 @@
|
|||||||
|
|
||||||
dmz.rs/decentrala.org website
|
dmz.rs/decentrala.org website
|
||||||
|
|
||||||
## Build site
|
## Setup
|
||||||
|
|
||||||
Run
|
First, prepare the virtual environment and install dependencies:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python atom_gen.py
|
make prep
|
||||||
python prep.py
|
|
||||||
python build_pages.py
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Complete website will be contained in `site/`. You can copy this to server.
|
## Build site
|
||||||
|
|
||||||
|
To build the complete website:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make build
|
||||||
|
```
|
||||||
|
|
||||||
|
The complete website will be contained in `site/`. You can copy this to your server.
|
||||||
|
|
||||||
## Development server
|
## Development server
|
||||||
|
|
||||||
To start a development server, first build site, then run (possibly with `sudo`)
|
To start a development server, first build the site, then run (possibly with `sudo`):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nginx -p . -c nginx.dev.conf
|
make dev
|
||||||
```
|
```
|
||||||
|
|
||||||
To stop it:
|
To stop it:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nginx -p . -s stop
|
make stop
|
||||||
```
|
```
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
To update events, update the `events.csv` then run commands
|
To update events, update `dogadjaji.csv` then run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python build_pages.py # builds html out of csv
|
make events
|
||||||
python image_poster.py # generates images for events
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## TODO:
|
||||||
|
|
||||||
|
- [x] create page builder
|
||||||
|
- [x] rename `prep.py` to more informative name (`build_events.py`)
|
||||||
|
- [x] create xmpp bot that connects to events section.
|
||||||
|
- [ ] create blogging system
|
||||||
|
- [ ] webring system
|
||||||
|
- [x] make page
|
||||||
|
- [ ] populate page
|
||||||
|
- [x] make english version
|
||||||
|
- double check spelling and wording
|
||||||
|
- [x] add account and donations page and style them with the site style
|
||||||
|
|
||||||
|
|
||||||
## TODO:
|
## TODO:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user