CAMPHOR- Advent Calendar
- Docker
- docker-compose
- Edit data/authors.yml
- Edit data/entries.yml
If author, title, or url of an entry is not decided, set null.
- Run
docker-compose up -d
- Open http://localhost:8000
Tweet:
$ docker-compose exec advent python -m advent.twitter
OR
$ docker-compose exec advent python -m advent.twitter YYYY-MM-DD
Facebook Post (一部):
$ cat data/entries.yml | sed -E "s;- date: [0-9]{4}-([0-9]{2})-([0-9]{2});\1/\2;" | sed -E "s; author: (.*)$; \1 による;" | sed -E "s; title: (.*)$; 「\1」;" | sed -E "s; url: (.*)$; \1;"