1
0
mirror of https://tildegit.org/solderpunk/gemfeed synced 2024-11-08 19:59:22 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
Solderpunk
2c58b4a576 Add --mtime option to use file modification time, not creation/update time, as that can be manually set via touch. 2020-07-07 14:00:18 +02:00
Solderpunk
91d6d075bc Bump version for dev. 2020-05-20 19:20:52 +02:00
Solderpunk
e9d04c5fd5 Bump version for 1.1.0 2020-05-20 19:17:15 +02:00
Solderpunk
47033c9cd1 Extract datestamps from filename if possible. 2020-05-20 19:16:45 +02:00
Solderpunk
0e76336905 Bump version number to 1.0.0. 2020-03-19 20:09:21 +01:00
Solderpunk
dd03bf3593 Add hashbang line. 2020-03-18 21:32:52 +01:00
Solderpunk
73b7b188e2 Add setup.py 2020-03-18 21:32:04 +01:00
Solderpunk
9509bb9429 Format entry links correctly when --directory is used. 2020-03-18 19:01:32 +01:00
Solderpunk
d43bd2b0bf Add trailing slash to base URL if necessary. 2020-03-18 18:14:28 +01:00
Solderpunk
08ba6b0ff2 Fix index file detection when using --directory. 2020-03-18 15:29:10 +01:00
Solderpunk
56cff3febb Fix another default feed name bug! 2020-03-17 21:19:28 +01:00
Solderpunk
44d0e7139d Fix bug introduced by changes to default feed title handling. 2020-03-17 21:09:45 +01:00
Solderpunk
352de60a16 Advise user of feed title and URL when run interactively. 2020-03-17 21:05:30 +01:00
Solderpunk
a033b73640 Use directory as default feed title even when not run as a command line tool. 2020-03-17 21:05:03 +01:00
Solderpunk
835a7a0ac8 Update README. 2020-03-17 20:57:35 +01:00
Solderpunk
7c72eeba91 When run from the command line, use the directory name as a default feed title. 2020-03-17 19:27:26 +01:00
Solderpunk
e116e5e154 Enable processing of directories other than pwd. 2020-03-17 19:05:13 +01:00
Solderpunk
acbee0af9e Only write to stdout when asked, to facilitate use in scripts instead of as a command line tool. 2020-03-17 18:50:21 +01:00
Solderpunk
333cc83282 Separate out argument parsing and sanitising from actual feed construction logic. 2020-03-17 17:30:45 +01:00
Solderpunk
802326058e Add docstrings for all functions except main(). 2020-03-17 15:45:49 +01:00
Solderpunk
cb2bca2edb Remove support for .gem extension, as the Best Practices document mentions only .gmi and .gemini. 2020-03-17 15:12:11 +01:00
Solderpunk
63365f0742 Don't produce empty feeds. 2020-03-17 13:35:37 +01:00
Solderpunk
3fdaabb810 Remove old debugging print(). 2020-03-17 13:35:26 +01:00
Solderpunk
eff47ef24f Take advantage of the fact that find_files now sorts files by timestamp. 2020-03-17 13:33:38 +01:00
Solderpunk
5d95fed964 Include only 10 (by default) most recent files in the feed. 2020-03-17 13:26:32 +01:00
Solderpunk
63f7622d4c Extract feed title from index.gmi if it exists and is world readable. 2020-03-17 13:09:51 +01:00
Solderpunk
b5cc680fbc Fix stat nonsense, git can die in a fire. 2020-03-16 22:44:33 +01:00
Solderpunk
43a3858c89 Merge branch 'master' of https://tildegit.org/solderpunk/gemfeed 2020-03-16 22:24:54 +01:00
Solderpunk
6584b37cba Merge branch 'master' of https://tildegit.org/solderpunk/gemfeed 2020-03-16 22:24:33 +01:00
Solderpunk
a3b463e3a2 Merge branch 'master' of https://tildegit.org/solderpunk/gemfeed 2020-03-16 22:22:47 +01:00
Solderpunk
abe72a0d09 Include only world readable files. 2020-03-16 22:21:37 +01:00
Solderpunk
a3e9eadc8f Include only world readable files. 2020-03-16 22:18:37 +01:00
Solderpunk
af6caf2369 Better URL handling. 2020-03-16 20:29:52 +01:00
Solderpunk
113d75f1db Add command line options for feed subtitle and author details. 2020-03-16 20:09:17 +01:00
Solderpunk
76d6efcb83 Pay attention to user-specified output filename when constructing feed URL. 2020-03-16 20:02:21 +01:00
Solderpunk
a08de42c36 Add rel attribute for entry links. 2020-03-16 20:01:55 +01:00
Solderpunk
f61fa0a82e Add command line options for base URL and feed title. 2020-03-16 19:51:14 +01:00
Solderpunk
7798412d74 Break into functions. 2020-03-16 18:54:49 +01:00
Solderpunk
fac6f4ad73 Initial proof-of-concept implementation. 2020-03-16 18:42:58 +01:00
solderpunk
93283c56c5 Initial commit 2020-03-16 13:39:09 -04:00