tg-z / wikidaily

this repo makes use of a one-liner created by everest pipkin in a twitter thread.

Home Page:https://tg-z.github.io/wikidaily/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wikidaily

this repo makes use of a one-liner created by everest pipkin in a twitter thread.

been having some motivation troubles recently (god who hasn't) so i'm gonna pick a tiny personal project off my ideas list and see if i can get it working by morning. tonight - a lil bash script that emails me the summaries of 5 random wikipedia articles each morning

— everest (@everestpipkin) Jan 13, 2021

setup

requirements: tree, jq, grep, git, curl

  1. create your own repo by cloning:
# clone repo
$ git clone https://github.com/tg-z/wikidaily
 # enter repo
$ cd wikidaily
# remove example data
$ rm -rf docs/posts
# view help options
$ ./wikidaily
  1. download install.sh file:
# enter directory to create wikidaily in
$ cd repos
$ curl "https://raw.githubusercontent.com/tg-z/wikidaily/main/install.sh" -o wikidaily/install.sh
$ chmod +x wikidaily/install.sh
$ ./wikidaily/install.sh
  1. execute install.sh script
# warning: always check install script before executing it directly in your shell. confirm it does what you want it to and isn't malicious.
# go to repo you want wikidaily in
$ curl -s "https://raw.githubusercontent.com/tg-z/wikidaily/main/install.sh" | bash

TODO:

  • make a script to generate index file #done:2021-04-25
  • add more options to get-html script #done:2021-05-01
    • list arg #done:2021-03-15
    • help arg #done:2021-03-14
    • update arg #done:2021-03-15
    • index arg #done:2021-04-22
    • push arg #done:2021-04-22
    • full arg #done:2021-05-01
    • version arg #done:2021-05-01
  • index styling options using style.css #done:2021-04-22
  • made compatible w github pages #done:2021-05-01
  • added default commit message to push arg #done:2021-05-01
  • add setup section to readme #done:2021-05-01
  • add demo gif + examples
  • make script usable anywhere (env vars for where wikidaily repo is located)
  • fix wikidaily so it doesn't depend on index script
  • rename get-html to wikidaily #done:2021-05-01
  • create install.sh script #done:2021-05-07

About

this repo makes use of a one-liner created by everest pipkin in a twitter thread.

https://tg-z.github.io/wikidaily/


Languages

Language:Shell 100.0%