-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathREADME
71 lines (50 loc) · 2.16 KB
/
README
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
Web: http://www.pm.org
Support: support@pm.org
Version control: https://github.com/perlorg/www.pm.org/
Admin manual: http://www.pm.org/faq/admin.html
Directory layout is as follows:
bin/ programs to build the site etc.
lib/ Template Toolkit templates
src/ actual text of the site
www/ output goes here
perl_mongers.xml PM group listing data to build corresponding pages from
perl_mongers.dtd definition for perl_mongers.xml format
You publish to the live site by changing the contents of this git repo:
git@git.develooper.com:www.pm.org-live.git
via running the bin/xml program. e.g.:
PM_ORG_WWW=/Users/jhannah/src/perlorg/www.pm.org-live perl bin/xml
And then pushing those changes to that git repository. A cronjob
is running every 15 minutes that flushes that git repo to www.pm.org.
"bin/xml" takes the source files from src/, applies any templates
(from lib/), and writes the output to the $PM_ORG_WWW directory
(or www/).
lib/layout is the template which is applied to every page.
Note: whenever you refer to a page on our site inside a template,
please use the following mechanism, which changes the link to a
relative one so that we can build the site anywhere we want:
See [% link_to("foo.html", "the best foo") %].
social networks:
<meetup>http://www.meetup.com/The-New-York-Perl-Meetup-Group/</meetup>
<linkedin>http://www.linkedin.com/groups?gid=684</linkedin>
<facebook>http://www.facebook.com/Israeli.Perl.Mongers</facebook>
<googleplus>https://plus.google.com/105209189901369984525</googleplus>
<twitter>https://twitter.com/perlweekly</twitter>
### Validating group URLs
```
./bin/list_groups.pl |
while read group url; do echo -n "$group "; GET -t10 -sd $url; done > /tmp/s
```
`GET` is from LWP.
Deactivate groups without working sites:
```
grep -v 200 /tmp/s | awk '{print $1}' | xargs -n1 bin/deactivate-only.pl
```
Get Last-Modified timestamps
```
./bin/list_groups.pl |
while read group url; do
echo;
echo -n "$group ";
GET -t10 -se $url | grep -i last-modified | cut -d: -f2-;
done | tee /tmp/stamps
```