Merge setup and run into makefile

This commit is contained in:
Luke Murphy 2021-01-19 22:16:57 +01:00
parent aa24011007
commit 506a8a85a4
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 18 additions and 20 deletions

View File

@ -2,34 +2,17 @@
> https://varia.zone
## Getting Started
### Clone
## Hackity Hack Hack
```
$ git clone https://git.vvvvvvaria.org/varia/varia.website.git
$ cd varia.website
$ git clone https://github.com/getpelican/pelican-plugins/
$ git clone https://git.vvvvvvaria.org/varia/plugins-custom
```
### Install
```
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
```
### Serve
```
$ pelican --autoreload
$ make
```
Visit the website at [localhost:8000](http://localhost:8000)
## Tools
## Our Tools
The Varia website is made with Pelican, a static site generator written in
Python. This means that the website is first generated on a computer (using

15
makefile Normal file
View File

@ -0,0 +1,15 @@
default: run
core-plugins:
@if [ ! -d "pelican-plugins" ]; then git clone https://github.com/getpelican/pelican-plugins; fi
custom-plugins:
@if [ ! -d "plugins-custom" ]; then git clone https://git.vvvvvvaria.org/varia/plugins-custom; fi
dependencies:
@if [ ! -d ".venv" ]; then python3 -m venv .venv && .venv/bin/pip install -r requirements.txt; fi
run: core-plugins custom-plugins dependencies
@.venv/bin/pelican --autoreload
.PHONY: core-plugins custom-plugins dependencies run