This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mkrss.html
106 lines (92 loc) · 3.36 KB
/
mkrss.html
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<title>Caltech Library's Digital Library Development Sandbox</title>
<link rel="stylesheet" href="/css/site.css">
</head>
<body>
<header>
<a href="http://library.caltech.edu"><img src="/assets/liblogo.gif" alt="Caltech Library logo"></a>
</header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="../">Up</a></li>
<li><a href="./mkrss.html">mkrss</a></li>
<li><a href="./mkpage.html">mkpage</a></li>
<li><a href="./urlencode.html">urlencode</a></li>
<li><a href="./go-template-recipes.html">Go text/template recipes</a></li>
<li><a href="./titleline.html">titleline</a></li>
<li><a href="./mkslides.html">mkslides</a></li>
<li><a href="./slides/three-slides.html">Title Page</a></li>
<li><a href="./slides/presentation.html">What is mkslides?</a></li>
<li><a href="./byline.html">byline</a></li>
<li><a href="./ws.html">ws</a></li>
<li><a href="./frontmatter.html">frontmatter</a></li>
<li><a href="./mkpongo.html">mkpongo</a></li>
<li><a href="./urldecode.html">urldecode</a></li>
<li><a href="./sitemapper.html">sitemapper</a></li>
<li><a href="./reldocpath.html">reldocpath</a></li>
</ul>
</nav>
<section>
<h1>mkrss</h1>
<h2>USAGE</h2>
<pre><code>mkrss [OPTION] HTDOCS [RSS_FILENAME]
</code></pre>
<h2>SYNOPSIS</h2>
<p>mkrss walks the file system to generate a RSS2 file. It assumes
that the directory for HTDOCS is is the base directory containing
subdirectories in the form of /YYYY/MM/DD/ARTICLE_HTML where
YYYY/MM/DD (Year, Month, Day) corresponds to the publication date
of ARTICLE_HTML.</p>
<h2>OPTIONS</h2>
<pre><code> -b set byline regexp
-byline set byline regexp
-c If non-zero, limit the number of articles in the RSS file
-channel-builddate Build Date for channel (e.g. 2006-01-02 15:04:05 -0700)
-channel-category category for channel
-channel-copyright Copyright for channel
-channel-description Description of channel
-channel-generator Name of RSS generator
-channel-language Language, e.g. en-ca
-channel-link link to channel
-channel-pubdate Pub Date for channel (e.g. 2006-01-02 15:04:05 -0700)
-channel-title Title of channel
-d set date regexp
-date-format set date regexp
-e A colon delimited list of path exclusions
-h display help
-help display help
-i set input filename
-input set input filename
-l display license
-license display license
-o set output filename
-output set output filename
-t set title regexp
-title set title regexp
-v display version
-version display version
</code></pre>
<h2>EXAMPLE</h2>
<p>If our htdocs folder is our document root and out blog is
htdocs/myblog.</p>
<pre><code class="language-shell"> mkrss -channel-title="This Great Beyond" \
-channel-description="Blog to save the world" \
-channel-link="http://blog.example.org" \
htdocs htdocs/rss.xml
</code></pre>
<p>This would build an RSS 2 file in htdocs/rss.xml from the
articles in htdocs/myblog/YYYY/MM/DD.</p>
</section>
<footer>
<span><h1><A href="http://caltech.edu">Caltech</a></h1></span>
<span>© 2020 <a href="https://www.library.caltech.edu/copyright">Caltech library</a></span>
<address>1200 E California Blvd, Mail Code 1-32, Pasadena, CA 91125-3200</address>
<span>Phone: <a href="tel:+1-626-395-3405">(626)395-3405</a></span>
<span><a href="mailto:library@caltech.edu">Email Us</a></span>
<a class="cl-hide" href="sitemap.xml">Site Map</a>
</footer>
</body>
</html>