mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 11:32:39 +02:00
Remove all the fuss from this Makefile
This commit is contained in:
parent
cb49489316
commit
9edcf7ec8a
8 changed files with 20 additions and 58 deletions
56
Makefile
56
Makefile
|
@ -1,52 +1,14 @@
|
|||
PELICANOPTS=
|
||||
|
||||
BASEDIR=$(CURDIR)
|
||||
INPUTDIR=$(BASEDIR)/content
|
||||
OUTPUTDIR=$(BASEDIR)/output
|
||||
CONFFILE=$(BASEDIR)/pelicanconf.py
|
||||
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
||||
|
||||
VENV := $(shell echo $${VIRTUAL_ENV-$(shell pwd)/.venv})
|
||||
VIRTUALENV = python3 -m venv
|
||||
INSTALL_STAMP = $(VENV)/.install.stamp
|
||||
|
||||
PYTHON=$(VENV)/bin/python
|
||||
PELICAN=$(VENV)/bin/pelican
|
||||
PIP=$(VENV)/bin/pip
|
||||
GIT=/usr/bin/git
|
||||
|
||||
install: $(INSTALL_STAMP)
|
||||
$(INSTALL_STAMP): $(PYTHON) requirements.txt
|
||||
$(VENV)/bin/pip install -r requirements.txt
|
||||
touch $(INSTALL_STAMP)
|
||||
install:
|
||||
python3 -m venv .v
|
||||
.v/bin/pip install -r requirements.txt
|
||||
mkdir output
|
||||
|
||||
virtualenv: $(PYTHON)
|
||||
$(PYTHON):
|
||||
$(VIRTUALENV) $(VENV)
|
||||
|
||||
html: install
|
||||
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
|
||||
|
||||
clean:
|
||||
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
|
||||
rm -rf $(VENV)
|
||||
|
||||
serve: install
|
||||
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE)
|
||||
|
||||
regenerate:
|
||||
cd $(OUTPUTDIR) && $(PYTHON) -m pelican.server &
|
||||
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
|
||||
.v/bin/pelican -lr
|
||||
|
||||
publish: install
|
||||
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
|
||||
echo "blog.notmyidea.org" > $(OUTPUTDIR)/CNAME
|
||||
|
||||
github: publish
|
||||
ghp-import -n $(OUTPUTDIR)
|
||||
$(GIT) push origin gh-pages
|
||||
|
||||
up:
|
||||
$(GIT) add content/* && $(GIT) commit -am "Update blog" && $(GIT) push && make github
|
||||
.PHONY: html clean serve devserver publish
|
||||
publish:
|
||||
.v/bin/pelican -s publishconf.py
|
||||
echo "blog.notmyidea.org" > output/CNAME
|
||||
.v/bin/ghp-import -n output
|
||||
git push origin gh-pages
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"sorting":"name-down","virtualDirectories":[]}
|
|
@ -36,7 +36,7 @@ Première étape: **le concassage**. On avait 6kg d'orge maltée à
|
|||
concasser (plus exactement 6kg de malt pâle *7EDC* et 500g de malt cara
|
||||
*50EDC*).
|
||||
|
||||

|
||||

|
||||
|
||||
Attention, pas trop fin dis donc \! On ne veut pas de la poudre, on veut
|
||||
simplement permettre à l'amidon de se dissoudre dans l'eau. Si on
|
||||
|
@ -52,7 +52,7 @@ se relayer sur le moulin, parce que nos petits muscles fatiguaient assez
|
|||
vite; vous pouvez envisager de faire ça tout seul si vous êtes un
|
||||
tennisman).
|
||||
|
||||

|
||||

|
||||
|
||||
La seconde étape, **l'empatage**. Il s'agit de faire chauffer notre orge
|
||||
maltée à différentes températures. Les fois précédentes, on avait
|
||||
|
@ -66,7 +66,7 @@ pas loin de 3h30, inertie quand tu nous tiens\!
|
|||
|
||||
On se rends compte de la taille de la marmite un peu là:
|
||||
|
||||

|
||||

|
||||
|
||||
Une fois l'eau à température (54°C), il faut ajouter le malt et le
|
||||
laisser durant 30mn à cette température, puis augmenter jusqu'à 65°C
|
||||
|
@ -80,7 +80,7 @@ comptant sur le fait qu'elle perdra de sa température (20°C à peu près)
|
|||
en étant utilisée. On a filtré deux fois pour être sûr de ne rien
|
||||
perdre.
|
||||
|
||||

|
||||

|
||||
|
||||
L'étape d'après (la quatrième, vous suivez), c'est **le houblonnage**.
|
||||
On va faire infuser notre "solution aqueuse" (wouah, on dirait de la
|
||||
|
@ -92,13 +92,13 @@ comme ça, mais en fait ça ne l'est pas tant que ça: il faut réussir à
|
|||
passer notre liquide qui était en ébullition à 54°C en un temps
|
||||
acceptable. Pour ça, on a utilisé un serpentin confectionné main.
|
||||
|
||||

|
||||

|
||||
|
||||
Ça nous a permis de passer de 100°C à 54°C en… 35 minutes quand même \!
|
||||
(Nous avions essayé les fois précédentes de gérer ça à coup de baignoire
|
||||
et de glaçons, les temps n'étaient absolument pas au rendez-vous).
|
||||
|
||||

|
||||

|
||||
|
||||
Je disais dernière étape, mais il ne faut pas oublier de rajouter les
|
||||
levures, qui elles vont faire tout le travail et transformer tout ça en…
|
||||
|
|
|
@ -33,7 +33,7 @@ There is no need to register for an account or whatnot, just enter a
|
|||
project name, a secret code and a contact email, invite friends and
|
||||
that's it (this was inspired by doodle)\!
|
||||
|
||||

|
||||

|
||||
|
||||
You can try the project at <http://ihatemoney.notmyidea.org> for now,
|
||||
and the code lives at <https://github.com/spiral-project/ihatemoney/>.
|
||||
|
|
|
@ -22,7 +22,7 @@ In case you wonder, daybed is effectively the name of a couch. We chose
|
|||
this name because of the similarities (in the sound) with **db**, and
|
||||
because we're using **CouchDB** as a backend.
|
||||
|
||||

|
||||

|
||||
|
||||
We mainly hacked on daybed and are pretty close to the release of the
|
||||
first version, meaning that we have something working.
|
||||
|
|
|
@ -16,7 +16,7 @@ donner naissance à
|
|||
[whiskerboard](https://github.com/bfirsh/whiskerboard) (la planche
|
||||
moustachue, pour les non anglophones).
|
||||
|
||||

|
||||

|
||||
|
||||
## Vérifier le statut des services
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ OPTIONS call.
|
|||
|
||||
The server answers, and tell what is available and what isn't:
|
||||
|
||||

|
||||

|
||||
|
||||
- 1a. The User-Agent, rather than doing the call directly, asks the
|
||||
server, the API, the permission to do the request. It does so with
|
||||
|
|
|
@ -2,3 +2,4 @@ pelican
|
|||
markdown
|
||||
datefinder
|
||||
typogrify
|
||||
ghp-import
|
||||
|
|
Loading…
Reference in a new issue