forked from varia/varia.website
Merge setup and run into makefile
This commit is contained in:
parent
aa24011007
commit
506a8a85a4
23
README.md
23
README.md
@ -2,34 +2,17 @@
|
|||||||
|
|
||||||
> https://varia.zone
|
> https://varia.zone
|
||||||
|
|
||||||
## Getting Started
|
## Hackity Hack Hack
|
||||||
|
|
||||||
### Clone
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ git clone https://git.vvvvvvaria.org/varia/varia.website.git
|
$ git clone https://git.vvvvvvaria.org/varia/varia.website.git
|
||||||
$ cd varia.website
|
$ cd varia.website
|
||||||
$ git clone https://github.com/getpelican/pelican-plugins/
|
$ make
|
||||||
$ 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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Visit the website at [localhost:8000](http://localhost:8000)
|
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
|
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
|
Python. This means that the website is first generated on a computer (using
|
||||||
|
15
makefile
Normal file
15
makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user