Browse Source

Merge setup and run into makefile

master
Luke Murphy 3 years ago
parent
commit
506a8a85a4
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 23
      README.md
  2. 15
      makefile

23
README.md

@ -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

@ -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
Loading…
Cancel
Save