-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
86 lines (71 loc) · 2.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
## everything : rebuild all data files and then the site
## make sure `site` target is last in the list as it depends on all
## the other ones
everything:
@make workshops
@make members
@make amy_curricula
@make newsletter
@make plots
@make incubator
@make help-wanted
@make lessons
@make memberships
@make website_stats
@make site
## website_stats : quick stats for bubbles on website
website_stats:
./bin/make_website_stats_feed.sh _data/
## workshops : workshop JSON feeds from AMY data accessed from redash
workshops :
./bin/make_workshop_feeds.sh _data/
python3 python/workshop_stats.py
## members : feeds with information about our community members
members:
./bin/make_members_feeds.sh _data/
./bin/make_active_roles.sh _data/
## amy_curricula : feeds with information about our curricula as recorded in AMY
amy_curricula:
./bin/make_amy_curricula.sh _data/
## newsletter: pulls newsletters from Mailchip
newsletter:
./bin/make_newsletter_feed.sh _data/
## memberships
memberships:
./bin/make_membership_feed.sh _data/
## plots: plot summaries
plots:
R -q -e "source('R/workshop_summary.R')"
python3 python/lesson_contributor_count.py
python3 python/instructor_training_completion_rates.py
# Drop seat usage feed/plot for now - does not work well
# python3 python/instructor_training_seat_usage.py
# Drop curriculum frequency for now - needs to be updated
# python3 python/curriculum_teaching_frequency.py
python3 python/instructor_teaching_frequency.py
python3 python/checkout_steps.py
python3 python/membership_trends.py
## incubator : carpentries-incubator lesson feed
incubator:
R -q -e "source('R/community_lessons.R')"
## help-wanted: list of issues that have the label "help wanted"
help-wanted:
R -q -e "source('R/help_wanted_issues.R')"
## lessons : data feed for the repository information for all "official" lessons
lessons:
R -q -e "source('R/curriculum_feed.R')"
## site : build files but do not run a server.
## some files created from the Redash query need to be copied to the
## `_site` folder to make them publicly available.
site :
bundle exec jekyll build
find _data -name '*.json' -exec cp {} _site/ \;
find _images -iregex ".*.\(svg\|html\|png\|jpg\|jpeg\)" -exec cp {} _site/ \;
./bin/make_index.sh
## install : install missing Ruby gems using bundle.
install :
bundle install
#-------------------------------------------------------------------------------
## clean : clean up junk files.
clean :
rm -rf _site